|
Voici le traceback observé à chaque fois qu'un portlet est affiché (
cf. code en bleu, GRC_LDAPDirectory est un directory spécifique pour le projet) GRC_LDAPDirectory --> _searchEntries, trace=
[('C:\\Pr ogram Files\\Zope-2.8.1-final\\lib\\python\\TAL\\TALInterpreter.py',
675, 'do_co ndition', 'self.interpret(block)'), ('C:\\Program
Files\\Zope-2.8.1-final\\lib\\ python\\TAL\\TALInterpreter.py', 250, 'interpret',
'handlers[opcode](self, args) '), ('C:\\Program Files\\Zope-2.8.1-final\\lib\\python\\TAL\\TALInterpreter.py', 426, 'do_optTag_tal', 'self.do_optTag(stuff)'),
('C:\\Program Files\\Zope-2.8.1 -final\\lib\\python\\TAL\\TALInterpreter.py', 411, 'do_optTag',
'return self.no_ tag(start, program)'), ('C:\\Program
Files\\Zope-2.8.1-final\\lib\\python\\TAL\\ TALInterpreter.py', 406, 'no_tag',
'self.interpret(program)'), ('C:\\Program Fil
es\\Zope-2.8.1-final\\lib\\python\\TAL\\TALInterpreter.py', 250, 'interpret',
'h andlers[opcode](self, args)'), ('C:\\Program
Files\\Zope-2.8.1-final\\lib\\pytho n\\TAL\\TALInterpreter.py', 426, 'do_optTag_tal',
'self.do_optTag(stuff)'), ('C: \\Program
Files\\Zope-2.8.1-final\\lib\\python\\TAL\\TALInterpreter.py', 411, 'd o_optTag', 'return self.no_tag(start, program)'),
('C:\\Program Files\\Zope-2.8. 1-final\\lib\\python\\TAL\\TALInterpreter.py', 406,
'no_tag', 'self.interpret(pr ogram)'), ('C:\\Program
Files\\Zope-2.8.1-final\\lib\\python\\TAL\\TALInterprete r.py', 250, 'interpret', 'handlers[opcode](self,
args)'), ('C:\\Program Files\\Z
ope-2.8.1-final\\lib\\python\\TAL\\TALInterpreter.py', 709, 'do_useMacro',
'self .interpret(macro)'), ('C:\\Program
Files\\Zope-2.8.1-final\\lib\\python\\TAL\\TA LInterpreter.py', 250, 'interpret',
'handlers[opcode](self, args)'), ('C:\\Progr am
Files\\Zope-2.8.1-final\\lib\\python\\TAL\\TALInterpreter.py', 426, 'do_optTa
g_tal', 'self.do_optTag(stuff)'), ('C:\\Program
Files\\Zope-2.8.1-final\\lib\\py thon\\TAL\\TALInterpreter.py', 411, 'do_optTag',
'return self.no_tag(start, prog ram)'), ('C:\\Program
Files\\Zope-2.8.1-final\\lib\\python\\TAL\\TALInterpreter. py', 406, 'no_tag', 'self.interpret(program)'),
('C:\\Program Files\\Zope-2.8.1- final\\lib\\python\\TAL\\TALInterpreter.py', 250,
'interpret', 'handlers[opcode] (self, args)'), ('C:\\Program
Files\\Zope-2.8.1-final\\lib\\python\\TAL\\TALInte rpreter.py', 675, 'do_condition',
'self.interpret(block)'), ('C:\\Program Files\
\Zope-2.8.1-final\\lib\\python\\TAL\\TALInterpreter.py', 250, 'interpret',
'hand lers[opcode](self, args)'), ('C:\\Program
Files\\Zope-2.8.1-final\\lib\\python\\ TAL\\TALInterpreter.py', 426, 'do_optTag_tal',
'self.do_optTag(stuff)'), ('C:\\P rogram
Files\\Zope-2.8.1-final\\lib\\python\\TAL\\TALInterpreter.py', 411, 'do_o
ptTag', 'return self.no_tag(start, program)'), ('C:\\Program
Files\\Zope-2.8.1-f inal\\lib\\python\\TAL\\TALInterpreter.py', 406, 'no_tag',
'self.interpret(progr am)'), ('C:\\Program
Files\\Zope-2.8.1-final\\lib\\python\\TAL\\TALInterpreter.p y', 250, 'interpret', 'handlers[opcode](self, args)'),
('C:\\Program Files\\Zope -2.8.1-final\\lib\\python\\TAL\\TALInterpreter.py',
477, 'do_setLocal_tal', 'sel f.engine.setLocal(name,
self.engine.evaluateValue(expr))'), ('C:\\Program Files\ \Zope-2.8.1-final\\lib\\python\\Products\\PageTemplates\\TALES.py',
221, 'evalua te', 'return _expression_(self)'), ('C:\\Program
Files\\Zope-2.8.1-final\\lib\\pyt
hon\\Products\\PageTemplates\\ZRPythonExpr.py', 47, '__call__', 'return
eval(cod e, g, {})'), ('Python _expression_ "content.render_cache(shield=shield, context_ob j=here, enable_esi=enable_esi,
boxedit=boxedit)"', 1, '<_expression_>', None), ('D
:\\CMarfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSSkins\\PortalBoxGroup .py', 309, 'render_cache', 'return self.render(shield=shield,
enable_esi=enable_ esi, **kw)'),
('D:\\CMarfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSSkin s\\PortalBoxGroup.py', 244, 'render', 'rendered =
portlet.render_cache(**kw)'),
('D:\\CMarfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSPortlets\\CPSPortl et.py', 419, 'render_cache',
'return self.render(**kw)'), ('D:\\CMarfil\\Swam\\Z
ope-2.8.1-Instance-Locale\\Products\\CPSDocument\\CPSDocument.py', 63,
'render', 'return self.getTypeInfo().renderObject(self, **kw)'), ('D:\\CMarfil\\Swam\\Zop
e-2.8.1-Instance-Locale\\Products\\CPSDocument\\FlexibleTypeInformation.py', 850 , 'renderObject', 'dm = self.getDataModel(ob,
proxy=proxy)'), ('D:\\CMarfil\\Swa
m\\Zope-2.8.1-Instance-Locale\\Products\\CPSDocument\\FlexibleTypeInformation.py ', 578, 'getDataModel', 'dm._fetch()'), ('D:\\CMarfil\\Swam\\Zope-2.8.1-Instance -Locale\\Products\\CPSSchemas\\DataModel.py', 247,
'_fetch', 'data.update(adapte r.getData())'),
('D:\\CMarfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSSc hemas\\StorageAdapter.py', 139, 'getData', 'return
self._getData()'), ('D:\\CMar
fil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSSchemas\\StorageAdapter.py', 155, '_getData', 'value =
self._getFieldData(field_id, field, **kw)'), ('D:\\CM
arfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSSchemas\\StorageAdapter.py ', 323, '_getFieldData', 'return getattr(ob, field_id)()'), ('D:\\CMarfil\\Swam\
\Zope-2.8.1-Instance-Locale\\Products\\Swam\\document_creation\\patchDefaultDubl inCoreImpl.py', 84,
'CreatorName', 'return self._getCreatorName()'), ('D:\\CMarf
il\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\Swam\\document_creation\\patchDe faultDublinCoreImpl.py', 137,
'_getCreatorName', 'MemberPseudo = members_dir.get Entry(uidOwner)'), ('D:\\CMarfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CP SDirectory\\BaseDirectory.py', 383, 'getEntry',
'return self._getEntryKW(id)'),
('D:\\CMarfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSDirectory\\BaseDir ectory.py', 407, '_getEntryKW', 'dm =
self._getDataModel(id, **kw)'), ('D:\\CMar
fil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSDirectory\\BaseDirectory.py' , 814, '_getDataModel', 'dm._fetch()'), ('D:\\CMarfil\\Swam\\Zope-2.8.1-Instance -Locale\\Products\\CPSSchemas\\DataModel.py', 247,
'_fetch', 'data.update(adapte r.getData())'),
('D:\\CMarfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSDi rectory\\StackingDirectory.py', 417, 'getData',
'password=self._password)'), ('D
:\\CMarfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSDirectory\\StackingDi rectory.py', 306, '_getEntryFromBacking', 'entry =
b_dir._getEntryKW(id)'), ('D: \\CMarfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSDirectory\\BaseDirecto ry.py', 407, '_getEntryKW', 'dm =
self._getDataModel(id, **kw)'), ('D:\\CMarfil\ \Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSDirectory\\BaseDirectory.py', 81 4, '_getDataModel', 'dm._fetch()'), ('D:\\CMarfil\\Swam\\Zope-2.8.1-Instance-Loc ale\\Products\\CPSSchemas\\DataModel.py', 247, '_fetch',
'data.update(adapter.ge tData())'), ('D:\\CMarfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSDirect ory\\StackingDirectory.py', 417, 'getData',
'password=self._password)'), ('D:\\C
Marfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\CPSDirectory\\StackingDirect ory.py', 318, '_getEntryFromBacking', "entries =
b_dir._searchEntries(return_fie lds=['*'],"),
('D:\\CMarfil\\Swam\\Zope-2.8.1-Instance-Locale\\Products\\H2HObje ctMapper\\GRC_LDAPDirectory.py', 134,
'_searchEntries', '# typ, val, tb = exc_info()')] /TH -----Message d'origine----- haessle thomas wrote: > Bonjour, > > Dès qu’un portlet est affiché, CPSPortlet va rechercher le « Owner
» > du portlet ce qui provoque des requêtes inutiles, le nom du owner > n’étant pas affiché au niveau des portlet. > > Cela a-t-il un intérêt particulier ou est que ça vient juste du
fait > qu’il utilise des methodes « render » héritées de CPSDocument,
auquel > cas il serait possible d’inhiber ce fonctionnement pour les
portlets? > > Merci, > Bonjour, A quel endroit dans le code? /JM |
_______________________________________________ cps-users-fr Adresse de la liste : [email protected] Gestion de l'abonnement : <http://lists.nuxeo.com/mailman/listinfo/cps-users-fr>
