version 1.92, 2010/02/15 19:03:28
|
version 1.93, 2010/09/14 12:44:57
|
Line 17 from types import *
|
Line 17 from types import *
|
from Globals import package_home |
from Globals import package_home |
import transaction |
import transaction |
import Acquisition |
import Acquisition |
|
import re |
|
import logging |
|
|
from Products.ECHO_content.ECHO_collection import * |
from Products.ECHO_content.ECHO_collection import * |
from vlp_xmlhelpers import * |
from vlp_xmlhelpers import * |
Line 499 class VLP_collection(ECHO_collection,Acq
|
Line 501 class VLP_collection(ECHO_collection,Acq
|
|
|
|
|
implements(IPublishTraverse) |
implements(IPublishTraverse) |
|
|
|
|
|
def foxridgePath2vlp(self,url,mk,RESPONSE=None): |
|
"""convertiert einen pfad zu einer url in vlp""" |
|
litRe = re.match(r".*lit([0-9]*)",url) |
|
logging.debug("foxridgePath2vlp URL:"+repr(url)) |
|
lit = "lit"+litRe.group(1) |
|
splitted=url.split("/") |
|
path=splitted[-1].split(".")[0] |
|
newUrl=lit+"?p=%s&mk=%s"%(path,mk) |
|
|
|
if RESPONSE: |
|
RESPONSE.redirect(newUrl) |
|
return |
|
|
|
return newUrl |
|
|
def findObjFromLitName(self,fileName): |
def findObjFromLitName(self,fileName): |
if not fileName[0:3]=="lit": |
if not fileName[0:3]=="lit": |
logging.error("getOrCreateFolder wrong filename: %s"%fileName) |
logging.error("getOrCreateFolder wrong filename: %s"%fileName) |
Line 838 class VLP_resource(ECHO_resource,Cacheab
|
Line 857 class VLP_resource(ECHO_resource,Cacheab
|
logging.debug(title) |
logging.debug(title) |
return title |
return title |
|
|
|
|
|
|
def getImagePath(self): |
def getImagePath(self): |
"""Pfad zu den Images""" |
"""Pfad zu den Images""" |
path=None |
path=None |