Changeset 363
- Timestamp:
- 7 Aug 2006, 15:47:52 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 5 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/exportimport.py
r351 r363 55 55 pm = site.portal_membership 56 56 pm.setLocalGroupRoles(site,['role:Authenticated',],'SectionReader') 57 58 importObjects(site.portal_accomodation, '', context) 59 57 60 ## if hasattr(site,'campus'): 58 61 ## pm.setLocalGroupRoles(site.campus,['role:Authenticated',],'SectionReader') 59 62 #setupStructure(site,context) 60 63 #import pdb; pdb.set_trace() 61 pass62 64 #site = context.getSite() 63 65 #tool = getToolByName(site, TOOL) 64 66 #importObjects(tool, '', context) 65 67 68 69 from Products.GenericSetup.ZCatalog.exportimport import ZCatalogXMLAdapter 70 71 from interfaces import IWAeUPTable 72 73 class WAeUPTableXMLAdapter(ZCatalogXMLAdapter): 74 75 __used_for__ = IWAeUPTable 76 77 _LOGGER_ID = 'waeup_table' 78 79 name = 'accomodation' 66 80 67 81 # This the XMLAdapter itself. It encodes the im- / export logic that is specific -
WAeUP_SRP/trunk/interfaces.py
r274 r363 16 16 """WAeUP_SRP 17 17 """ 18 19 class IWAeUPTable(Interface): 20 """Tables to store object relational data 21 """ 22 23 def addRecord(**data): 24 """Adds a record, with the data expressed in the data mapping. 25 26 Raises an error if the uid exists. 27 """ 28 29 def deleteRecord(uid): 30 """Deletes the record specified by the uid""" 31 32 def modifyRecord(uid, **data): 33 """Modifies a record, with the data expressed in the data mapping. 34 35 Raises an error if the uid does not exist. 36 """ 37
Note: See TracChangeset for help on using the changeset viewer.