Changeset 436
- Timestamp:
- 04/26/07 19:10:48
- Files:
-
- branches/ldap/storage/storeldap.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/ldap/storage/storeldap.py
r435 r436 12 12 http://python-ldap.cvs.sourceforge.net/python-ldap/python-ldap/Demo/schema_tree.py?view=log 13 13 14 ldap can work completly asynchronous lets only use synchronous 15 functions marked by an '_s' for now to keep things simple 14 ldap can work completly asynchronous 15 but for now lets only use synchronous functions 16 marked by an '_s' for to keep things simple 16 17 17 18 """ … … 145 146 146 147 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): 147 166 clsname = cls.__name__ 148 167 ## todo: clstype is something like 'ou', 'o' or any other ldap type … … 156 175 raise QueryError("ldap create error", error, query, query_parameters) 157 176 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): 159 182 query = "%s=%s, %s" % (clstype, clsname, self.basedn) 160 183 try: … … 163 186 raise QueryError("ldap drop error", error, query) 164 187 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 172 189 173 190 ## def drop_property(self, cls, name):
