version 1.10.2.82, 2012/02/27 09:36:19
|
version 1.10.2.85, 2012/03/22 13:58:50
|
Line 27 import re
|
Line 27 import re
|
from OFS.Cache import Cacheable |
from OFS.Cache import Cacheable |
import urllib2 |
import urllib2 |
import transaction |
import transaction |
|
import SrvTxtUtils |
|
|
from MPIWGHelper import * |
from MPIWGHelper import * |
#ersetzt logging |
#ersetzt logging |
def logger(txt,method,txt2): |
def logger(txt,method,txt2): |
Line 80 class MPIWGStaff(CatalogAware,ZSQLExtend
|
Line 82 class MPIWGStaff(CatalogAware,ZSQLExtend
|
meta_type="MPIWGStaff" |
meta_type="MPIWGStaff" |
default_catalog='MembersCatalog' |
default_catalog='MembersCatalog' |
departmentList=departmentList |
departmentList=departmentList |
_v_cone=None; |
#_v_cone=None; |
security=ClassSecurityInfo() |
security=ClassSecurityInfo() |
|
|
def redirect(self,RESPONSE,url): |
def redirect(self,RESPONSE,url): |
Line 327 class MPIWGStaff(CatalogAware,ZSQLExtend
|
Line 329 class MPIWGStaff(CatalogAware,ZSQLExtend
|
|
|
self.coneService=getattr(self, "coneServiceURL",coneService) |
self.coneService=getattr(self, "coneServiceURL",coneService) |
logging.debug("coneservice:"+self.coneService) |
logging.debug("coneservice:"+self.coneService) |
if self._v_cone==None: |
|
|
if getattr(self,'_v_cone',None)==None: |
try: |
try: |
cone = urllib2.urlopen(self.coneService+self.getPersonID()) |
|
self._v_cone=cone.read() |
self._v_cone=SrvTxtUtils.getHttpData(self.coneService+self.getPersonID()) |
|
#cone = urllib2.urlopen(self.coneService+self.getPersonID()) |
|
#self._v_cone=cone.read() |
|
if self._v_cone==None: |
|
self._v_cone="" |
except: |
except: |
return None |
self._v_cone="" |
|
return "" |
|
|
return self._v_cone |
return self._v_cone |
|
|