RE: [Zope] Strange behaviour on authorization
now, i have defined same owner to every document in that folder, but it did'nt help me. I cranked litle bit my pages and discovered little more where is the problem. Problem isn't POSTING data, it's the return value that Zope doesn't want to publish. clip font face="Verdana, Arial" color="#ff" dtml-let resDTML="Imap('Authentication',REQUEST,1)" h2User dtml-var "resDTML.cn" dtml-var title_or_id/h2 /font FORM ACTION="email_headers" METHOD="POST" /TDTDfont color="#00" face="Verdana, Arial, Helvetica" size="1"dtml-var "resDTML.account"nbsp; /TD /clip Problem tag is dtml-var "resDTML.cn" that that causes following traceback, when i remove this tag. Traceback bugs me about Unauthorized: account, which is 2nd value from external methods returned object resDTML. So problem is publishing contest of resDTML called in DTML-LET-tags. This don't make any sense if i have to validate every return value from external method, it's just unacceptable. In external method, i have simple class and instance of that class is return value of method. I repeat this again, ALL THIS THINGS DID work with Zope 2.1.6. How can i fix this? Traceback (innermost last): File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/OFS/DTMLDocument.py, line 171, in __call__ (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: resDTML="Imap('Authentication',REQUEST,1)") File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: resDTML.cn) (Info: resDTML) File string, line 0, in ? File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Util.py, line 142, in careful_getattr File /usr/local/Zope-2.2.0/lib/python/OFS/DTMLMethod.py, line 194, in validate (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /usr/local/Zope-2.2.0/lib/python/AccessControl/ZopeSecurityPolicy.py, line 159, in validate Unauthorized: cn jarkkov try so POST data to email_headers with login form, popups Authorization failed window. I have tried to use my manager and superuser name and same values that i submitted, but nothing is accepted to auth. window. ... so i have authenticated user and i still can't login. All these documents work like they're supposed to in Zope 2.1.6, but not anymore when i installed Zope 2.2.0 on Solaris. Why is Zopesecurity trying to validate 'cn', which is value that i submit to another document. What went wrong here and how i fix this problem? Aha, it worked in 2.1.6 eh? That's the tip off. A *major* change between 2.1.x and 2.2.x is in the security dept. 2.2.x runs all methods using the security level of the _owner_ of the method, regardless of whether this is a lower or higher level than the currently authenticated user. My guess is that your method has no owner (which is what pre-2.2.x objects default to when run under 2.2.x). This means it is running as anonymous which does not have rights to do what you want. Specify an owner for the method that has sufficient rights to do what you want and try it again. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Strange behaviour on authorization
i have been trying to figure this out and get help to this almost one week... i have login form called login: clip form name="LoginForm" action="email_accounts" method="post" div align="center"centerpUsername or ID br input type="text" name="cn" size="10" maxlength="20"br Passwordbr input type="password" name="password" size="10" br br input type="submit" value="Select this button to continue" br /form /clip email_accounts is a DTML document: clip font face="Verdana, Arial" color="#ff" dtml-let resDTML="Imap('Authentication',REQUEST,1)" h2User dtml-var "resDTML.cn" dtml-var title_or_id/h2 /font TABLE border="1" bgcolor="#b0bf30" width=80% cellpadding=2 cellspacing=0 valign=top FORM ACTION="email_headers" METHOD="POST" TRTDfont color="#00" face="Verdana, Arial, Helvetica" size="1"Check?/TD TDfont color="#00" face="Verdana, Arial, Helvetica" size="1"Account/TD TDfont color="#00" face="Verdana, Arial, Helvetica" size="1"New messages/TD TDfont color="#00" face="Verdana, Arial, Helvetica" size="1"Total messages/TD /TR TRTDINPUT TYPE="CHECKBOX" NAME="checkbox[]" VALUE="imap" CHECKED="yes" /TDTDfont color="#00" face="Verdana, Arial, Helvetica" size="1"dtml-var "resDTML.account"nbsp; /TD TDfont color="#00" face="Verdana, Arial, Helvetica" size="1"dtml-var "resDTML.recent"nbsp;/TD TDfont color="#00" face="Verdana, Arial, Helvetica" size="1"dtml-var "resDTML.msgcount"nbsp;/TD /TR TRTDINPUT TYPE="CHECKBOX" NAME="checkbox[]" VALUE="pop" /TDTDfont color="#00" face="Verdana, Arial, Helvetica" size="1"dtml-var "resDTML.popaccount"nbsp; /TD TDfont color="#00" face="Verdana, Arial, Helvetica" size="1"nbsp;/TD TDfont color="#00" face="Verdana, Arial, Helvetica" size="1"nbsp;/TD /TR TRTDnbsp;/TDTDfont color="#00" face="Verdana, Arial, Helvetica" size="1"Check selected mailboxes:/TDTD INPUT TYPE="submit" VALUE="Go!"/TDTDnbsp;/TD/TR /FORM/TABLE /dtml-let /clip Zope loads login form with no problem (it's basicly static page) but when i try so POST data to email_headers with login form, popups Authorization failed window. I have tried to use my manager and superuser name and same values that i submitted, but nothing is accepted to auth. window. here's the traceback: Zope Error Zope has encountered an error while publishing this resource. Unauthorized Sorry, a Zope error occurred. Traceback (innermost last): File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/OFS/DTMLDocument.py, line 171, in __call__ (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: resDTML="Imap('Authentication',REQUEST,1)") File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: resDTML.cn) (Info: resDTML) File string, line 0, in ? File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Util.py, line 142, in careful_getattr File /usr/local/Zope-2.2.0/lib/python/OFS/DTMLMethod.py, line 194, in validate (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /usr/local/Zope-2.2.0/lib/python/AccessControl/ZopeSecurityPolicy.py, line 159, in validate Unauthorized: cn by the way resDTML="Imap('Authentication',REQUEST,1) is on External method called on email_headers document. I cathed REQUEST from login form and it shows: request form password 1234 cn 66 AUTHENTICATION_PATH proto_test password 1234 dtpref_rows 20 tree-s eJzTiFZ3hANPW/VYHU0ALlYElA AUTHENTICATED_USER jarkkov so i have authenticated user and i still can't login. All these documents work like they're supposed to in Zope 2.1.6, but not anymore when i installed Zope 2.2.0 on Solaris. Why is Zopesecurity trying to validate 'cn', which is value that i submit to another document. What went wrong here and how i fix this problem? jarkkov ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross
[Zope] Old Zope packages
Where can i download older versions of Zope. I need Zope 2.1.6. on solaris. I previously did my project on RH6.2 / Zope 2.1.6 and i have this week to get my project work on Zope 2.2.0 with solaris. It doesn't work (it doesn't pass authentication, when i try post data to another dtml document) and i'm in hurry to test my project on Solaris, so please tell me quickly where can i download older Zopes. look also : 33. Is this a bug? Posting data to another DTML document (Jarkko Veijalainen) on Zope digest, Vol 1 #934 jarkkov ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Is this a bug? Posting data to another DTML document
I developed my project on Zope 2.1.6 on NT environment. Last week i installed Zope 2.2.0 on Solaris 8. i transferred my project to 'new' Zope. But when i try to access my DTML document comes authentication window. I can't authenticate it in any of my usernames. Traceback (innermost last): File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/OFS/DTMLDocument.py, line 170, in __call__ (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: resDTML="Imap('Authentication',REQUEST,1)") File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: resDTML.cn) (Info: resDTML) File string, line 0, in ? File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Util.py, line 142, in careful_getattr File /usr/local/Zope-2.2.0/lib/python/OFS/DTMLMethod.py, line 189, in validate (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /usr/local/Zope-2.2.0/lib/python/AccessControl/ZopeSecurityPolicy.py, line 159, in validate Unauthorized: cn case is that i have login window which passes user information to another DTML document. User information is different than my zope user. ex. i log into my Zope management as jarkkov (so that stays at my browsers cache, until i restart browser) i type in my login document '66' and 'password', these values are submitted to another document called email_accounts, which uses external method with submitted parametres and return values into email_accounts document. Above error message is shown. in zope 2.1.6 environment it did'nt happen. I tied to create all kind of users on users folder and tried to give all permissions to anonymous user and tried to access anonymously thrue another browser, but nothing seems to work. This is essential that i can anonymously access to this DTML documents and submit any kind of values on my REQUEST. All the documents are on subfolder called testweb and i noticed that Zope 2.2.0, i have ownership in all documents and folders. testweb is owned directly by jarkkov (testweb/acl_users) and all documents in that folder. I also tried post data to email_accounts thrue browser like this: http://194.42.57.17:8080/proto_test/email_acounts?cn=66password=1234 on Zope 2.1.6 it worked, but with Zope 2.2.0, ZServer asked authentication. I can't remove ownership or can i? Is it the blocking my access anonymously to documents? What i have to do to make my project work on new Zope version? jarkkov ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Problem to access my DTML files
Hi! I developed my project on Zope 2.1.6 on NT environment. Last week i installed Zope 2.2.0 on Solaris 8. i transferred my project to 'new' Zope. But when i try to access my DTML document comes authentication window. I can't authenticate it in any of my usernames. Traceback (innermost last): File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/OFS/DTMLDocument.py, line 170, in __call__ (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: resDTML="Imap('Authentication',REQUEST,1)") File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: resDTML.cn) (Info: resDTML) File string, line 0, in ? File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Util.py, line 142, in careful_getattr File /usr/local/Zope-2.2.0/lib/python/OFS/DTMLMethod.py, line 189, in validate (Object: email_accounts) File /usr/local/Zope-2.2.0/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /usr/local/Zope-2.2.0/lib/python/AccessControl/ZopeSecurityPolicy.py, line 159, in validate Unauthorized: cn case is that i have login window which passes user information to another DTML document. User information is different than my zope user. ex. i log into my Zope management as jarkkov (so that stays at my browsers cache, until i restart browser) i type in my login document '66' and 'password', these values are submitted to another document called email_accounts, which uses external method with submitted parametres and return values into email_accounts document. Above error message is shown. in zope 2.1.6 environment it did'nt happen. I tied to create all kind of users on users folder and tried to give all permissions to anonymous user and tried to access anonymously thrue another browser, but nothing seems to work. This is essential that i can anonymously access to this DTML documents and submit any kind of values on my REQUEST. All the documents are on subfolder called testweb and i noticed that Zope 2.2.0, i have ownership in all documents and folders. testweb is owned directly by jarkkov (testweb/acl_users) and all documents in that folder. I can't remove ownership or can i? Is it the blocking my access anonymously to documents? What i have to do to make my project work on new Zope version? jarkkov ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Problems with LDAPmodule on sunos5
I have created Zope site on Linux wich uses external methods to access LDAP. I transferred my site to Solaris8/sunos5 but i can't manage to get LDAPmodule working on sunos. Finally after two days of work and with pretty slick manouvers, i managed to build LDAPmodule (archive.csee.uq.edu.au/~leonard/dc-prj/ldapmodule/) on sunos, but there something wrong in the module. On linux there no problems and building is easy as taking candy from children. I did excatly the same on Sunos but module just won't work. with simple python script, i get following error: File "test_ldap_lib.py", line 1, in ? import sys,ldap,pprint ImportError: ld.so.1: python: fatal: relocation error: file ./ldapmodule.so: symbol ber_init: reference d symbol not found and from Zope: Error Type: ImportError Error Value: ld.so.1: /usr/local/Zope-2.2.0/bin/python: fatal: relocation error: file /usr/local/Zope-2.2.0/lib/python1.5/ldapmodule.so: symbol ber_init: referenced symbol not found has anobody managed to build LDAPmodule on sunos5? or can anoby give me some advice, what went wrong? jarkkov ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
re: [Zope] Zope performance ratios
I'm doing a performance comparance between Zserver and Iplanet servers packages in next couple of weeks, maybe with Apache and Netscape servers too. We have building a prototype with four different sripting languages, including Zope. Goal is to find out wich combination is most effective. Maybe i can post some results here, when my reasearch is done. jarkkov -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 24. heinäkuuta 2000 20:54 To: [EMAIL PROTECTED] Subject: [Zope] Zope performance ratios I'm interested in getting performance statistics for Zope. I'm scouring the mailing lists for previous messages but I would also be interested in anything else people may want to say about it. For example, what is the record for average web hits from a Zope site? Does someone have a feel for useful ratios like: "a Zope page takes, on average, twice as a static page to serve"? I'm not interested in being anal about the numbers, seat of the pants estimates are what I'm looking for. -- Andres Corrada-Emmanuel Email: [EMAIL PROTECTED] -- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Zope performance ratios
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 24. heinäkuuta 2000 20:54 To: [EMAIL PROTECTED] Subject: [Zope] Zope performance ratios I'm interested in getting performance statistics for Zope. I'm scouring the mailing lists for previous messages but I would also be interested in anything else people may want to say about it. For example, what is the record for average web hits from a Zope site? Does someone have a feel for useful ratios like: "a Zope page takes, on average, twice as a static page to serve"? I'm not interested in being anal about the numbers, seat of the pants estimates are what I'm looking for. -- Andres Corrada-Emmanuel Email: [EMAIL PROTECTED] -- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-in with sequence problems
i have this external method called Imap_methods. Why zope refused to pass '[EMAIL PROTECTED]' string to my method. Is there something wrong with my syntax. dtml-in Imap_methods('[EMAIL PROTECTED]') ... do my stuff here (question 2) /dtml-in results following error message Error Type: KeyError Error Value: Imap_methods('[EMAIL PROTECTED]') Traceback (innermost last): File C:\Boothill\lib\python\ZPublisher\Publish.py, line 214, in publish_module File C:\Boothill\lib\python\ZPublisher\Publish.py, line 179, in publish File C:\Boothill\lib\python\Zope\__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\Boothill\lib\python\ZPublisher\Publish.py, line 165, in publish File C:\Boothill\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: email_headers) File C:\Boothill\lib\python\ZPublisher\Publish.py, line 102, in call_object (Object: email_headers) File C:\Boothill\lib\python\OFS\DTMLDocument.py, line 166, in __call__ (Object: email_headers) File C:\Boothill\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: email_headers) File C:\Boothill\lib\python\DocumentTemplate\DT_In.py, line 630, in renderwob (Object: Imap_methods('[EMAIL PROTECTED]')) KeyError: (see above) question 2: Whats is best way to return following tuples from that method tuple formation: [index,[from,to,subject,date]] and sequence them to table between TD tags. jarkkov ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Fetching data from external methods
Hi! I've been trying almost two weeks with this problem. I have read 'tons' on zope documentation and mailing lists. I have this dtml form, which submits two values to external method. External method searches LDAP directory with submitted values and returns an object(class) with 5-30 values. I know only how to return plain text to Zope (return obj.__dict__ or return obj.value1). How i return those values in zope and embed those values into dtml file. I have some kind of clue, how i want to do this (or do i?): can i make Zclass and return values into that and call Zclass variables in dtml? in fact only problem here is how i return values from external method like obj.value1 , obj.value2 into zope and use them in dtml or/and in Zclass instances. Please, somobody save my nerves and help me figure solution with this problem. JarkkoV ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Fetching data from external methods
sorry but your example did'nt work: in external method: return (obj1, obj2,) in DTML: dtml-in external_method(your,params) dtml-var value1 dtml-var value2 /dtml-in here is my submit forms code to explain my case form action="LDAPsearch" method=POST ENCTYPE="multipart/form-data" cn: br input name="cn" size="10"br objectclass: br input name="objectclass" size="15"brbr input type="SUBMIT" name="send" value=" Search " /form LDAPsearch is my external method (object in zope which points to .py module) My method outputs are: res = (contains search result using forms input values) sn = res.sn (one of the values in res-object) return sn and i try to embed in dtml like this dtml-in "LDAPsearch('66','*',REQUEST)" dtml-var sn /dtml-in Zope returns error: Error Type: InError Error Value: Strings are not allowed as input to the in tag. if i try to return res.__dict__ in external method zope returns this kind of error: Error Type: KeyError Error Value: 0 this works dtml-var "LDAPsearch('66','*',REQUEST)" but it lefs me with two problems 1) how i can input values in LDAPsearch(how i input here) 2) i don't have any control of return value, it returns list like this ('Ukko', '66', 'oEmail') If you are submitting to your external method from an HTML form, you will need to return the HTML to be def my_external_method(self,param1,param2): ...do stuff... string = 'HTMLBODY' string = string + ...render your results here... string = string + '/BODY/HTML' return string this solution worked, but it's not what i really want to do. I don't want include return HTML-file in my python script, like in that example. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Fetching data from external methods
FINALY, your code sould look like: In externalMethod: return res #ENTIRE obj DTML code: dtml-let resDTML="LDAPsearch('66','*',REQUEST)" dtml-var "resDTML.cn" dtml-var "resDTML.otherAttributes" /dtml-let yeah, thanks a lot, it works, but i have still a liitle problem this might sound like newbie question ( but i don't really know) how i can dtml-res with input values like this dtml-let resDTML="LDAPsearch(myinput,myinput2,REQUEST)" myinput is data that i can type like search criteria in my search-form should i make somekind on handler-DTML? which picks up submitted datafrom my submitted form and puts them in dtml-let? PM jarkkov ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope-dev] How to use document templates
Hi! Where can i find S_I_M_P_L_E example of using document templates with zope/python. I have this external method, wich return several variables from object class. I want to embed to results in DTML page. The method is called from Zope by HTML form with 3 input attributes. Right now i have only managed to get obj.member in return plain screen. I can't use dtml-var tag, because i need to send those input values to the external method. ( i must be sound like real newbie, in fact i'm :) ) How i get those results in DTML page? Is the templates the answer or this there better way to this. jarkko ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )