version 1.133, 2010/02/15 19:10:23
|
version 1.136, 2010/09/22 08:57:26
|
Line 448 class ZSQLExtendFolder(Folder,Persistent
|
Line 448 class ZSQLExtendFolder(Folder,Persistent
|
logger.addHandler(loghandler) |
logger.addHandler(loghandler) |
options.use_logger_instance = logger |
options.use_logger_instance = logger |
|
|
|
try: |
|
err = None |
importFMPXML(options) |
importFMPXML(options) |
logging.info("importXMLFileFMP: done") |
logging.info("importXMLFileFMP: done") |
|
except Exception, err: |
|
logging.error("Error importing: %s"%err) |
|
|
if RESPONSE and log_to_response: |
if RESPONSE and log_to_response: |
loghandler.flush() |
loghandler.flush() |
|
if err is not None: |
|
RESPONSE.write("\n\nERROR while importing: %s"%err) |
|
else: |
RESPONSE.write("\n\n DONE!") |
RESPONSE.write("\n\n DONE!") |
|
|
elif RESPONSE and redirect_url: |
elif RESPONSE and redirect_url: |
Line 930 class ZSQLExtendFolder(Folder,Persistent
|
Line 937 class ZSQLExtendFolder(Folder,Persistent
|
else: |
else: |
storename="foundCount" |
storename="foundCount" |
|
|
|
|
|
|
if args: |
if args: |
argTmp=args |
argTmp=args |
else: |
else: |
Line 949 class ZSQLExtendFolder(Folder,Persistent
|
Line 954 class ZSQLExtendFolder(Folder,Persistent
|
if x: |
if x: |
value=x |
value=x |
else: |
else: |
|
try: |
value=str(argTmp[a]) |
value=str(argTmp[a]) |
qs.append(aFiltered+"="+urllib.quote(value)) |
except: |
|
value=utf8ify(argTmp[a]) |
|
|
|
qs.append(aFiltered+"="+urllib.quote(value)) |
|
logging.debug("InlineSearch:"+string.join(qs,",")) |
|
|
#return [] |
#return [] |
|
|
Line 1852 class ZSQLExtendFolder(Folder,Persistent
|
Line 1860 class ZSQLExtendFolder(Folder,Persistent
|
return "<a href='%s'>%s</a>"%(self.REQUEST['URL']+"?"+newquerystring,html) |
return "<a href='%s'>%s</a>"%(self.REQUEST['URL']+"?"+newquerystring,html) |
|
|
|
|
|
def pydev_settrace(self): |
|
"""do settrace to start debugging""" |
|
import pydevd |
|
pydevd.settrace() |
|
|
|
|
manage_addZSQLExtendFolderForm=DTMLFile('ZSQLExtendFolderAdd', globals()) |
manage_addZSQLExtendFolderForm=DTMLFile('ZSQLExtendFolderAdd', globals()) |
Line 2165 def manage_addZSQLBibliography(self, id,
|
Line 2177 def manage_addZSQLBibliography(self, id,
|
|
|
|
|
|
|
|
|