/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Classes | Public Member Functions | Static Public Attributes
NonDbi::dj::dataset::models::Dataset Class Reference

List of all members.

Classes

class  Meta
 calling "subsets" leads to clashes More...

Public Member Functions

def __unicode__
def add_path
def add_file
def remove_file

Static Public Attributes

tuple label = models.CharField(max_length=255)
tuple files = models.ManyToManyField(File, through='DatasetFile')
tuple others = models.ManyToManyField("self", symmetrical=False, through='DatasetRelate', )

Detailed Description

Definition at line 31 of file models.py.


Member Function Documentation

def NonDbi::dj::dataset::models::Dataset::__unicode__ (   self)

Definition at line 38 of file models.py.

00039                          :
00040         return "label='%s'" % self.label

def NonDbi::dj::dataset::models::Dataset::add_path (   self,
  path 
)
Creates a `File` object  corresponding to `path` (or accesses pre-existing) 
and relates that to this `Dataset` via creation of `DatasetFile` object (if not pre-existing)  

Definition at line 41 of file models.py.

00042                              :
00043         """
00044         Creates a `File` object  corresponding to `path` (or accesses pre-existing) 
00045         and relates that to this `Dataset` via creation of `DatasetFile` object (if not pre-existing)  
00046         """ 
00047         f,cr_f     = File.objects.get_or_create( path=path )              
00048         dsf,cr_dsf = DatasetFile.objects.get_or_create( dataset=self, file=f ) 
00049         return dsf 

def NonDbi::dj::dataset::models::Dataset::add_file (   self,
  f 
)

Definition at line 50 of file models.py.

00051                            :
00052         dsf,create = DatasetFile.objects.get_or_create( dataset=self, file=f ) 
        return dsf
def NonDbi::dj::dataset::models::Dataset::remove_file (   self,
  f 
)

Definition at line 53 of file models.py.

00054                              :
00055         DatasetFile.objects.filter( dataset=self, file=f ).delete()
00056 


Member Data Documentation

tuple NonDbi::dj::dataset::models::Dataset::label = models.CharField(max_length=255) [static]

Definition at line 32 of file models.py.

tuple NonDbi::dj::dataset::models::Dataset::files = models.ManyToManyField(File, through='DatasetFile') [static]

Definition at line 33 of file models.py.

tuple NonDbi::dj::dataset::models::Dataset::others = models.ManyToManyField("self", symmetrical=False, through='DatasetRelate', ) [static]

Definition at line 34 of file models.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:50:09 for NonDbi by doxygen 1.7.4