version 1.9, 2004/03/03 13:02:54
|
version 1.11, 2005/05/04 14:06:32
|
Line 17 import xml.dom.minidom
|
Line 17 import xml.dom.minidom
|
from Products.PageTemplates.PageTemplateFile import PageTemplateFile |
from Products.PageTemplates.PageTemplateFile import PageTemplateFile |
from Products.PageTemplates.PageTemplate import PageTemplate |
from Products.PageTemplates.PageTemplate import PageTemplate |
import tempfile |
import tempfile |
tempfile.tempdir="/var/tmp/archiver" |
tempfile.tempdir="/var/tmp" |
|
|
exclusion=[".HSResource","lost+found","Network Trash Folder","TheFindByContentFolder","TheVolumeSettingsFolder"] |
exclusion=[".HSResource","lost+found","Network Trash Folder","TheFindByContentFolder","TheVolumeSettingsFolder"] |
class fsentry(Implicit, Persistent, RoleManager): |
class fsentry(Implicit, Persistent, RoleManager): |
Line 583 class archive(Implicit, Persistent, Role
|
Line 583 class archive(Implicit, Persistent, Role
|
|
|
if type(path)==StringType: |
if type(path)==StringType: |
self.filenames[path]=tempfile.mktemp() |
self.filenames[path]=tempfile.mktemp() |
f = os.popen("/usr/local/mpiwg/archive/archiver "+path+" > "+self.filenames[path]+" &","r") |
f = os.popen("/usr/local/mpiwg/archive/archiver "+path+" -premigrate > "+self.filenames[path]+" &","r") |
else: |
else: |
for singlepath in path: |
for singlepath in path: |
self.filenames[singlepath]=tempfile.mktemp() |
self.filenames[singlepath]=tempfile.mktemp() |
f = os.popen("/usr/local/mpiwg/archive/archiver "+singlepath+" > "+self.filenames[singlepath]+" &","r") |
f = os.popen("/usr/local/mpiwg/archive/archiver "+singlepath+" -premigrate > "+self.filenames[singlepath]+" &","r") |
|
|
security.declarePublic('messages') |
security.declarePublic('messages') |
def messages(self): |
def messages(self): |