[Zope] Is it possible to install the Bug Collector Product in my Zope ???
Hi all, I can't find the bug collector product to install it in my zope. Maybe it's not possible... If it is, please tell me where to download it. Frederic ___ 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] How to find items to catalog from a dtml method ???
Hi Chris, No, I don't want to just search the catalog... I want to find items to catalog from a dtml method... Regards Fred Chris Withers wrote: If you're searching the catalog, you probably don't want to be using that method... try: dtml-let setup your search terms here dtml-in yourCatalog do your row display stuff here /dtml-in /dtml-let good luck, Chris Frederic Quin wrote: Hi all, I tried to use the manage_catalogFoundItems( REQUEST, RESPONSE, URL2, URL1, [] ) method of Catalog objects, from a dtml method. But it didn't work... There is still some parameters that I don't understand like URL2 and URL1. Which values do we have to pass ? Is it why it didn't work for me ? Thanks Fred ___ 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 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] How to specify to z sql methods, the connection object to use at runtime...time...
Thanks to yall... Finally, I thought like you Randy... I created as many folders as many servers I have. Each folder contains a connection object called "con" every where. Each folder contains also Z SQL Methods. Some of them contains the same Z SQL Methods. So, I just have to specify the server I want to connect to and use directly the Z SQL Method I want. My folders (called like my servers) are Transparent Folder. So, I can call directly some Z SQL Methods which are available only on one server... Fred Randall Kern wrote: I haven't actually tried this, but it seems it should work: / /db1- folder connection- a DB connection object to db 1 /db2- folder connection- a DB connection object to db 2 query- a ZSqlMethod, set to use the connection 'connection'. Note, you may have to add a temporary DB connection to the root, to allow you to setup these methods. After you have created your methods, remove the /connection object. Then use urls like http://your.server/db1/query to run the query using the first database connection, and http://your.server/db2/query to run query using the second database connection. -Randy - Original Message - From: "Tino Wildenhain" [EMAIL PROTECTED] To: "Frederic Quin" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 05, 2000 4:56 AM Subject: Re: [Zope] How to specify to z sql methods, the connection object to use at runtime...time... Hi Frederic, Frederic Quin schrieb: Hi all, I have the same querry to execute on different servers. I don't want to create as many z sql methods as servers I have. I would like to specify to my z sql method, the connection object to use at run time. Do I have to patch the files of z sql methods ? Can I use directly the connection object ?? A clean approach would be subclassing the zsql-method for your purpose. I would not recommend a free-form string as argument for the Datasource. May be an integer index (first, second, third... database server) or something like that? Regards Tino ___ 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 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] How to find items to catalog from a dtml method ???
Hi all, I tried to use the manage_catalogFoundItems( REQUEST, RESPONSE, URL2, URL1, [] ) method of Catalog objects, from a dtml method. But it didn't work... There is still some parameters that I don't understand like URL2 and URL1. Which values do we have to pass ? Is it why it didn't work for me ? Thanks Fred ___ 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] How to specify to z sql methods, the connection object to use at runtime...time...
Hi all, I have the same querry to execute on different servers. I don't want to create as many z sql methods as servers I have. I would like to specify to my z sql method, the connection object to use at run time. Do I have to patch the files of z sql methods ? Can I use directly the connection object ??? Thanks Frederic Quin ___ 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] A new Zope Product for the documentation of databases...
Hi all, I made a new Zope Product for the automatisation of the display and the management of databases documentation. This product was developed for my company, for internal use only. We decided to propose this product to the Zope Community. It is open-source and for non-commercial use only... You will find it at the adress : http://www.zope.org/Members/fquin/ZDBDocManager/index_html If you try it, let me know what you think about this product Frederic Quin Profile For you SARL, France ___ 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] I can't find a way to give parameters to the getDtmlData of a ZGDChartobjectobject
Hi all, I can't find a way to give parameters to the getDtmlData of a ZGDChart object. Please, help... 'Cause I don't want to duplicate the same chart one hundred times... Fred ___ 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 with Zope 2.2.0 and Z SQL Method : NO MODULE NAMED ZDBASE...
Hi all, I have some problem using Z SQL Method on Zope 2.2.0. I have a Zope error clicking on the item "Advanced". I have the same error when trying to find an object... Here is the error : Thanks Fred Error Zope has encountered an error while publishing this resource. See below for details. Error Type: ImportError Error Value: No module named ZDBase Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Version 2.0.3 -- © 2000 Profile For You -- Internal use only. Traceback (innermost last): File /usr/local/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.0-linux2-x86/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: essai) File /usr/local/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_advancedForm) File /usr/local/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_advancedForm) File /Zope2/lib/python/App/special_dtml.py, line 120, in __call__ (Object: manage_advancedForm) (Info: /Zope/lib/python/Shared/DC/ZRDB/advanced.dtml) File /Zope2/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: manage_advancedForm) File /Zope2/lib/python/Shared/DC/ZRDB/DA.py, line 508, in manage_product_zclass_info (Object: essai) File /Zope2/lib/python/ZODB/Connection.py, line 447, in setstate ImportError: (see above) ___ 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 with Z SQL Method associated with a class...
Hi all, I associated a Z SQL Method to a class. This class MUST have attributes but I obtain a Zope error on them. Did anyone know why and what I can do ??? Thanks Fred HERE IS THE ERROR Error Zope has encountered an error while publishing this resource. See below for details. Error Type: AttributeError Error Value: interests_founded Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Version 2.0.1 -- © 2000 Profile For You -- Internal use only. Traceback (innermost last): File /usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: index_html) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/OFS/DTMLDocument.py, line 166, in __call__ (Object: index_html) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: index_html) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/OFS/DTMLMethod.py, line 146, in __call__ (Object: dmProfileCompare) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: dmProfileCompare) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: sqlSiteProfileDetails( WEBSITEID=REQUEST.id, PAGEID=REQUEST.pg )) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: XMLToDict(REQUEST.pstor)) (Info: REQUEST) File string, line 0, in ? File /Zope/Extensions/IntranetToolKit.py, line 132, in XMLToDict (Object: Profile4uXMLParser) AttributeError: (see above) HERE IS MY CLASS import string import sys from Shared.DC.xml import * from Shared.DC.xml.pyexpat import * class Profile4uXMLParser: # Necessary method to make the pyexpat module works def start_element(self, name, attrs): self.current_name = name # Simple tag for which we just want to store the attributes or the value situated just after the tag if ((name != 'interests') and (self.interests_founded == 0)): for i in range(len(attrs)): if ((i % 2) == 0): self.datas[attrs[i]] = attrs[i+1] # If we have a value just after the tag, it will be associate with the name of the tag after if (name != 'profile'): self.datas[name] = '' # We find the tag interests so... elif (self.interests_founded == 0): self.interests_founded = 1 # Tag founded in the tag interests else: tmp = {} tmp['level'] = string.replace(name,'l','') for i in range(len(attrs)): if ((i % 2) == 0): tmp[attrs[i]] = attrs[i+1] self.interests.append(tmp) # Necessary method to make the pyexpat module works def end_element(self, name): # End of interests : we can find others simple tags if (name == 'interests'): self.interests_founded = 0 # Necessary method to make the pyexpat module works def char_data(self, data): # Association of the value founded just after the tag with the name of the tag if ((self.current_name != 'interest') and (self.interests_founded == 0)): # If the data need to be decoded... if (string.find(data,':') = 0): tmp2 = {} tmp = string.split(data,':') for i in range(len(tmp)): if ((i % 3) == 0): tmp2[tmp[i]] = [tmp[i+1],tmp[i+2]] self.datas[self.current_name] = tmp2
[Zope] In a python method, I want to convert a XML string into a dictionary...
Hi all, I would like to create a python method which take a parameter xml_string and return a dictionary containing all tags, values and attributes. I know that it exists some modules for xml conversions but I don't know very much how to use them. I am novice in Python so it's a little bite difficult for me to understand the codes... Thanks Fred ___ 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] A temporary python object defined in a dtml-let tag ???
Hi all, I wonder if it's possible to create temporary a python object in a dtml-let tag. If someone knows more about how to do this, please, help me... Thanks Fred Quin ___ 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 anyone know when Zope was born ???
Is anyone know when Zope was born ??? ___ 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] RE: What is the best method to enter more attributes about DTL Document?
Hi Marcin, you can write a new HTML page which add a new document. This page must contains a form which post the datas to the method "AddDTMLDocument", responsible for the creation of this object. But, if you need for example, to associate new properties to the new Document, you have to rewrite also the method "AddDTMLDocument". The destination of your form is now "AddMyDoc" and this new method must contains a line similar to : dtml-call "manage_AddDTMLDocument(...)" Just write me for more details Bye Frederic ___ 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 with ZClasses and Permissions
Hi all, I created a ZClass. Automaticly, Zope has created a new Permission called "Add MyZClass". I activated this Permission for a role called "simple user". But, when a user connected has a "simple user" try to add an object from "MyZClass", he can't. Zope return an error... Is there any other Permissions that I should activate ? Do I need to change the configuration of "MyZClass" ? Thanks Frederic ___ 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] RE : Redirect when not authenticated
Hi, I am not sure to understand your problem but maybe you can use the following meta HTML tag which redirect the user where you want... head meta http-equiv="Refresh" CONTENT="0 ; URL=new_url_html" /head If the DTML Method containing those lines is in a secured folder, you can add a Proxy Manager Role to your method... I Hope to be helpful Fred ___ 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] How to undo the last transaction from a DTML Method ?
Hi all, I would like to know how to undo the last transaction from a DTML Method and I have no idea of how I can do that. Help ! Thanks Frederic ___ 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 )