version 1.35, 2004/10/11 14:49:46
|
version 1.36, 2004/10/11 15:41:51
|
Line 79 class MPIWGRoot(ZSQLExtendFolder):
|
Line 79 class MPIWGRoot(ZSQLExtendFolder):
|
xmlPath=os.path.join(package_home(globals()), "updateSQL/%s"%fileName) |
xmlPath=os.path.join(package_home(globals()), "updateSQL/%s"%fileName) |
|
|
os.popen("java -classpath %s -Djava.awt.headless=true Convert %s"%(fmJarPath,xmlPath),"r").read() |
os.popen("java -classpath %s -Djava.awt.headless=true Convert %s"%(fmJarPath,xmlPath),"r").read() |
|
|
return 1 |
return 1 |
|
|
def patchProjects(self,RESPONSE): |
def patchProjects(self,RESPONSE): |
Line 365 class MPIWGRoot(ZSQLExtendFolder):
|
Line 366 class MPIWGRoot(ZSQLExtendFolder):
|
|
|
|
|
manage_options = Folder.manage_options+( |
manage_options = Folder.manage_options+( |
{'label':'Import Persons','action':'importNamesForm'}, |
{'label':'Update Personal Homepages','action':'updateHomepages'}, |
{'label':'Main config','action':'changeMPIWGRootForm'}, |
{'label':'Main config','action':'changeMPIWGRootForm'}, |
{'label':'Edit Historical Persons','action':'editHistoricalPersonsForm'}, |
{'label':'Edit Historical Persons','action':'editHistoricalPersonsForm'}, |
{'label':'Store Historical Persons','action':'storeHistoricalPersons'}, |
{'label':'Store Historical Persons','action':'storeHistoricalPersons'}, |
Line 399 class MPIWGRoot(ZSQLExtendFolder):
|
Line 400 class MPIWGRoot(ZSQLExtendFolder):
|
if RESPONSE is not None: |
if RESPONSE is not None: |
RESPONSE.redirect('manage_main') |
RESPONSE.redirect('manage_main') |
|
|
|
def updateHomepages(self,RESPONSE): |
|
"""lege members an""" |
|
self.upDateSQL('personalwww.xml') |
|
founds=self.ZSQLInlineSearch(_table='personal_www') |
|
project=getattr(self,'members') |
|
for found in founds: |
|
|
|
if not (found.e_mail==""): |
|
newObj=MPIWGStaff.MPIWGStaff(found.username,found.name,found.vorname) |
|
|
|
try: |
|
project._setObject(found.username,newObj) |
|
RESPONSE.write("<p>new:%s</p>\n"%found.username) |
|
except: |
|
RESPONSE.write("<p>old:%s (%s,%s)</p>\n"%(found.username,found.name,found.vorname)) |
|
|
|
|
|
|
|
if RESPONSE is not None: |
|
RESPONSE.redirect('manage_main') |
|
|
|
|
def getAllMembers(self): |
def getAllMembers(self): |
"""give list of all members""" |
"""give list of all members""" |
ret=[] |
ret=[] |