| Revision 91,
962 bytes
checked in by jon, 4 years ago
(diff) |
|
Moving utils directory to utilities directory and varous housekeeping activities
|
| Line | |
|---|
| 1 | from zope.interface import Interface |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | class IIMSTransportUtility(Interface): |
|---|
| 5 | """ A utility for the import/export of IMS packages. """ |
|---|
| 6 | |
|---|
| 7 | def importPackage(context, package, packagetype): |
|---|
| 8 | """ Import an IMS Package. """ |
|---|
| 9 | |
|---|
| 10 | def exportPackage(package): |
|---|
| 11 | """ Export a package. """ |
|---|
| 12 | |
|---|
| 13 | def getReaders(): |
|---|
| 14 | """ Get configured reader names. """ |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | class IIMSObjectCreator(Interface): |
|---|
| 18 | """ A utility for creating objects from IMS packages. """ |
|---|
| 19 | |
|---|
| 20 | def createObject(data): |
|---|
| 21 | """ Create an object """ |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | class IIMSManifestReader(Interface): |
|---|
| 25 | """ Read manifest data and content from an IMS Package. """ |
|---|
| 26 | |
|---|
| 27 | def getPackageName(): |
|---|
| 28 | """ Return the desciptive name of the package type. """ |
|---|
| 29 | |
|---|
| 30 | def readManifest(file): |
|---|
| 31 | """ Read IMS CC manifest """ |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | class IIMSManifestWriter(Interface): |
|---|
| 35 | """ Write the IMS Common Cartridge Manifest """ |
|---|
| 36 | |
|---|
| 37 | def createPackage(self): |
|---|
| 38 | """ Writes the IMS CC Manifest """ |
|---|
Note: See
TracBrowser
for help on using the repository browser.