Contact: fumanchu@aminus.org

Log in as guest/dejavu to create tickets

I think I've seen this ORM somewhere before...

Changeset 436

Show
Ignore:
Timestamp:
04/26/07 19:10:48
Author:
umaxx
Message:

do not mix up ldap entry represeted as storage and the whole directory represented as database

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/ldap/storage/storeldap.py

    r435 r436  
    1212http://python-ldap.cvs.sourceforge.net/python-ldap/python-ldap/Demo/schema_tree.py?view=log 
    1313 
    14 ldap can work completly asynchronous lets only use synchronous 
    15 functions marked by an '_s' for now to keep things simple 
     14ldap can work completly asynchronous 
     15but for now lets only use synchronous functions 
     16marked by an '_s' for to keep things simple 
    1617 
    1718""" 
     
    145146 
    146147    def create_database(self): 
     148        """It is not possible to create the whole directory on the server 
     149        from a client. 
     150 
     151        Directory should be created by administrator on the server. 
     152 
     153        """ 
     154        pass 
     155 
     156    def drop_database(self): 
     157        """It is not possible to drop the whole directory on the server 
     158        from a client. 
     159 
     160        Directory should be deleted by administrator on the server. 
     161 
     162        """ 
     163        pass 
     164 
     165    def create_storage(self, cls): 
    147166        clsname = cls.__name__ 
    148167        ## todo: clstype is something like 'ou', 'o' or any other ldap type 
     
    156175            raise QueryError("ldap create error", error, query, query_parameters) 
    157176 
    158     def drop_database(self): 
     177## todo: implement has_storage functions 
     178 
     179##    def has_storage(self, cls):) 
     180 
     181    def drop_storage(self, cls): 
    159182        query = "%s=%s, %s" % (clstype, clsname, self.basedn) 
    160183        try: 
     
    163186            raise QueryError("ldap drop error", error, query) 
    164187 
    165 ## todo: implement storage functions 
    166  
    167 ##    def create_storage(self, cls): 
    168  
    169 ##    def has_storage(self, cls):) 
    170  
    171 ##    def drop_storage(self, cls): 
     188## todo: implement drop_property functions 
    172189 
    173190##    def drop_property(self, cls, name):