[Zope-dev] Parsing of Page Templates and replicating ZMI TreeStructure
Hi All I am working on Zope-2.5.1 running on Linux . I need to create a site Map of my site which needs to be built dynamically. The Site Map needs to consist of all Folders and Sub Folders and Files within these folders as well as anchor Tags within each of these files. Something like the ZMI Tree on the left but more detailed. My SiteMap needs to cover all Folders,SubFolders and Files and also anchor Tags within each files(a name) By going through the examples of Example Folder in Zope I have been able to get an example working for getting all Files and SubFolders within a Folder. But How do I get all files and SubFolders under every Folder in my Sitemap as soon as it loads? Also how do I get all anchor tags within a page to load? I guess it would be like a DO-WHILE loop which will go from one folder to the next and create a view of all subfolders,files and anchor tags(for which I may need to parse through the PageTemplates searching for a name tags... --or is there some other way? ) within each file for every folder in the Root of the Zope . Could you guys please help me out here? All help is greatly appreciated. I hope I have been clear in stating my problem. Kindly help me out here. Thanks for all Anitha _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Reading contents of a Page Template
Hi All, I have a requirement to create a SiteMap for my site. My site is dynamically built from the Zope tree structure. Folder and Sub Folders need to appear as a tree structure and need to be sorted by name and date. I have viewed the examples in the Examples folder in ZMI and gotten a general Idea of how to get the files within a specific folder. But I need to be able to go through the whole set of folders and sub Folders and create the SiteMap and not just for a single folder . Is there some While- Do Loop which I can use to Loop through till I reach the Lowest rung in a Tree for each and every Folder and create a Site Map. Also Each of these folders has an index_html page template which can be linked from the SiteMap that is created. Each of the index_html files has a number of anchor tags. These Tags are for moving within the Page. I need to be able to include these Tage as well in My SiteMap ... CAN I GET THESE ANCHOR TAG LINKS ON EACH PAGE BY READING THROUGH THE CONTENT OF EACH OF THESE PAGE TEMPLATES? IS THERE SOME OTHER WAY TO DO ALL THESE ??? So Totally I need a SiteMap with all Folders and SubFolders and Anchor Tags to be shown in the SiteMap from where I can click and view these Pages ALL help is appreciated.Thanks in advance. Best Regards Anitha George _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] How to encrypt passwords in Zope?
Hi all I have developed an application in Zope and want to store the passwords in encrypted form in the database i.e Postgresql.Please could someone help me out with this.??? Thanks Anitha _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] How to use dtml-sqltest tag in zsql method?
Hi Someone please help me out with this: I am passing a string in this format (215,216) from the python script to the Zsql method. The SQl query should have the following form: select * from employees where id in (215,216) but is as follows: select * from employees where id in '(215,216)' which does not give the required result.The id is of data type string/nb. It doesnt accept integer values. A sample usage is given in the Zope documentation select * from employees dtml-sqlgroup where dtml-sqltest salary op=gt type=float optional dtml-and dtml-sqltest first type=nb multiple optional dtml-and dtml-sqltest last type=nb multiple optional /dtml-sqlgroup If first=Bob and last=Smith, McDonald it renders: select * from employees where (first='Bob' and last in ('Smith', 'McDonald') ) *8 But it is not working when I tried it. I get the following result select * from employees where (first='Bob' and last = 'Smith,McDonald' ) Please help me out!!Is there any other type for declaring the database fields other than int,float,string and nb.I am using Zope version 2.5.1 . The documentation covers Zope 2.5. Thanks Anitha _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] usage of dtml-sqltest tag in Zsql method
Hi Someone please help me out with this: I am passing a string in this format (215,216) from the python script to the Zsql method. The SQl query should have the following form: select * from employees where id in (215,216) but is as follows: select * from employees where id in '(215,216)' which does not give the required result.The id is of data type string/nb. It doesnt accept integer values. A sample usage is given in the Zope documentation select * from employees dtml-sqlgroup where dtml-sqltest salary op=gt type=float optional dtml-and dtml-sqltest first type=nb multiple optional dtml-and dtml-sqltest last type=nb multiple optional /dtml-sqlgroup If first=Bob and last=Smith, McDonald it renders: select * from employees where (first='Bob' and last in ('Smith', 'McDonald') ) *8 But it is not working when I tried it. I get the following result select * from employees where (first='Bob' and last = 'Smith,McDonald' ) Please help me out!!Is there any other type for declaring the database fields other than int,float,string and nb.I am using Zope version 2.5.1 . The documentation covers Zope 2.5. Thanks Anitha _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Request method
Hii Could any of you please tell me what is the request method used in Zope to go back to the page from where I have come. Plss do send a reply soonnn... Thanks Anitha _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] (no subject)
Hi all I am trying to develop a Document Management System in zope.The features that have to be implemented managing folders,maintaining versions of an object,uploading a file,etc.I believe Zope supports all these features. I am planning to build an interface above the Zope ZMI and use these features. For this I have to understand which are the library files which carry out this function of managing folders and maintaining versions. Could any of you please help me out in understanding the Zope API i.e which are the libraries and files used for the above mentioned features so that I can implement it in my appication. Please help me out.I would be really grateful.Thanks in advance.Awaiting a quick response. Regards, Anitha _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )