Re: [Zope] zope-2.8.4 and ZopeXMLMethods

2006-04-22 Thread Andreas Jung



--On 21. April 2006 12:46:31 +0100 Milos Negovanovic 
<[EMAIL PROTECTED]> wrote:



It happens when i try to add 'XSLT Method' (as described in short
tutorial provided with the product).

Something similar has already been reported in this thread:
http://mail.zope.org/pipermail/zope/2005-September/161412.html




Your error is different from the one cited. You could send a bugreport
to the developer of the product. However this software seems to be more
than 3 yrs old and it is possibly unmaintained...perhaps time to search
for a replacement (ZopeXMLMethods is an uncommon product).

-aj



--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting


pgpcP7o2yXP8K.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] zope-2.8.4 and ZopeXMLMethods

2006-04-22 Thread Milos Negovanovic
Hi,

i am having trouble with running ZopeXMLMethods on zope-2.8.4. Error is:


*  Module ZPublisher.Publish, line 113, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 40, in call_object
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.PageTemplates.PageTemplateFile, line 110, in _exec
* Module Products.PageTemplates.PageTemplate, line 104, in pt_render
  
* Module TAL.TALInterpreter, line 206, in __call__
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 651, in do_loop_tal
* Module Products.PageTemplates.TALES, line 206, in setRepeat
* Module Products.PageTemplates.TALES, line 221, in evaluate
  URL: create
  Line 70, Column 6
  Expression: standard:'here/availableProcessors'
  Names:

  {'container': , 'context': object at 0xb68bb06c>,
   'default': , 'here': at 0xb68bb06c>,
   'loop': , 'modules':
0xb481980c>instance at 0xb712402c>,
   'nothing': None,
   'options': {'args': ()},
   'repeat': , 'request': URL=http://piccolo:8080/scratch/manage_addProduct/ZopeXMLMethods/create>,
   'root': ,
   'template': ,
   'traverse_subpath': [],
   'user': z00root}

* Module Products.PageTemplates.Expressions, line 185, in __call__
* Module Products.PageTemplates.Expressions, line 180, in _eval
* Module Products.PageTemplates.Expressions, line 85, in render



It happens when i try to add 'XSLT Method' (as described in short
tutorial provided with the product).

Something similar has already been reported in this thread:
http://mail.zope.org/pipermail/zope/2005-September/161412.html


Any way that i can fix this?

Regards
Milos
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Rendering Product by index_html

2006-04-22 Thread Andreas Jung



--On 22. April 2006 14:17:00 +0200 Thomas Adams 
<[EMAIL PROTECTED]> wrote:



Hello,

on an own product (derived from ObjectManager) I try to code a render
method, therefore I've coded this first

def index_html(self):
return Globals.DTMLFile('dtml/viewKBArticle',globals())


usually you define

 index_html = Globals.DTMLFile('dtml/...', globals())

This is supposed to work and very common in almost all Zope 2 based 
products.


-aj



--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting


pgpp9zoReIzIh.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Rendering Product by index_html

2006-04-22 Thread Thomas Adams

Hello,

on an own product (derived from ObjectManager) I try to code a render 
method, therefore I've coded this first


def index_html(self):
   return Globals.DTMLFile('dtml/viewKBArticle',globals())

the result of calling an URLl like this .../MyArticle/index_html
was that the above mentioned DTML-File was completely rendered
as html quoted text like this :

lt;?xml version="1.0" encoding="iso-8859-1"?> 
; 
;

... etc.

Then I made a search in the mailing list and try this:

myIndex = Globals.DTMLFile('dtml/viewKBArticle',globals())

def index_html(self):
   return self.myIndex(self, self.REQUEST)

this results in :
*Error Type: TypeError*
*Error Value: unsubscriptable object
*

Traceback (innermost last):
 Module ZPublisher.Publish, line 101, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 39, in call_object
 Module Products.KBProducts.kbarticle_impl, line 440, in index_html
 Module Shared.DC.Scripts.Bindings, line 306, in __call__
 Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
 Module App.special_dtml, line 175, in _exec
 Module DocumentTemplate.DT_In, line 685, in renderwob
 Module OFS.ObjectManager, line 656, in __getitem__
 Module OFS.ObjectManager, line 241, in _getOb
TypeError: unsubscriptable object


At last I try this:

index_html = None
__call__ = Globals.DTMLFile('dtml/viewKBArticle',globals())

This results also in a TypeError (traceback see above)

Has anyboby any ideas??

Current Zope is 2.7.3, Python 2.3.4 on Windows XP SP2

Thanks in advance

Thomas Adams










begin:vcard
fn:Thomas Adams
n:Adams;Thomas
adr;quoted-printable:;;Richard-Strauss-Str. 27;M=C3=BCnchen;Bayern;81677;Deutschland
email;internet:[EMAIL PROTECTED]
tel;work:089 55 186 500
tel;home:089 470 270 19
tel;cell:0178 544 83 05
note;quoted-printable:Handy Interone:=0D=0A=
	=0D=0A=
	0163 432 9608
version:2.1
end:vcard

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )