Re: [Zope] object properties
Matt wrote: I tried a few things and found the following useful : Property ids of dtml-var "PARENTS[0].id" are dtml-var "PARENTS[0].propertyIds()" And of you want to actually see property values, you could try dtml-var propertyItems which generates id/property tuples. Craig -- Craig Allen - Managing Partner - Mutual Alchemy Web Architecture - http://alchemy.nu ___ 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] Change db connect string in python or dtml
Magnus Heino wrote: How can I change the 'Database Connection String' and then then try to connect, either in dtml or python? I think I understand what you are asking, since I am developing a database app and have switched about 20 methods back and forth between two database servers... it gets tedious. I assume you want a more automated way to do this, and it should be possible to write a python script (External method?) to do this, although I'm not sure how you would find all the ZSQL methods where you would do this. Perhaps something like this (the find form): http://www.yourserver.com/yourfolder/manage_findResult?obj_metatypes%3Alist=Z+Gadfly+Database+Connectionobj_ids%3Atokens=obj_searchterm=obj_mspec=%3Cobj_mtime=search_sub%3Aint=1btn_submit=Find As a quick and dirty alternative (untested), just edit your connection parameters in your Mysql connector to point to the different server (you'll want to close the connection first, I expect). -- Craig Allen - Managing Partner - Mutual Alchemy Web Architecture - http://alchemy.nu ___ 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] Batchpeocessing with multiple selection
vikas wrote: display only 10 rows on the page.For this i am using batch processing. But it is giving me errors Such as key error [city],[state] and gives the url of my page where i m using batchprocessing. Can someone help me out how to overcome the problem this problem as this is very urgent for me. I think the varibles are not geting passed again when i click on next sequence. For an example, create a Z Search Interface going against your ZSQL method, them enhance it. As was pointed out, this runs the query again but since you can cache the results, the database is not necessarily hit again. -Craig -- Craig Allen - Managing Partner - Mutual Alchemy Web Architecture - http://alchemy.nu ___ 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] seeking help on roles, authorization, permission
I've largely been able to ignore most of the Zope security mechanisms until now, but I have this new intranet app that's causing me problems. I have a folder called Reuters that has my application's methods; it has a subfolder called Staging that has documents being reviewed and subsequently published. I need to be able to limit the publishing to specific individuals. I created users in the Users Folder in my Reuters directory. I also created an editor role in my Reuters folder, and gave it what I thought were appropriate permissions, including manage_properties. I assigned the editor role to each of my new users. Users work in the Staging folder. When my users try to publish - which invokes a method that changes properties on documents in the Staging folder and also properties of the Reuters folder, they are prompted to log in by their browser. However, their usernames and passwords do not seem to work, and after 3 tries, they get a Zope error page saying they do not have permission to manage_changeProperties. I don't get it. Any clues? Craig -- Craig Allen - Managing Partner - Mutual Alchemy Web Architecture - http://alchemy.nu ___ 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] Re: [ZDP] Re: [Zope] The agony of the ZOPE Documentation
I must apologize in advance, I have not read the entire thread, but here's my answer to your question: So what do you folks think? My advice: be a benevolent despot. I started to get involved with ZDP many months ago, and proposed a structure for documentation, created a folder hierarchy to support the proposed framework (some of which was still evident on the ZDP site for a long time), and generally got zero feedback or support. My perception of the problem was that no one was in charge, no one could say yeah or nay, and no one said "This looks like a good direction for now, let's pursue it". Not that I necessarily thought that my work was the ultimate answer, but no one else was either proposing an alternative or suggesting needed modification. Instead, other folks just did their own thing. Now it looks like individuals get energized, produce a body of work (e.g. ZBook, ZQR) and then get burned out. My suggestions are, in decreasing preference: - consult with experts in learning/documentation design to come up with a framework for documentation; and/or, - find a site, product, book, or documentation set for a comparable product, and copy ideas from it; and/or, - work with ZDP activists and the mailing lists to come up with a framework, identify materials and formats to fit the framework, identify gaps, and then start assembling the structure. This is my least preferred path just because I'm skeptical that a group effort will move fast enough. I recognize that this is counter to Open Source practice, but I really believe inadequate documentation is the main barrier between Zope and world domination! And good luck! Zope remains a great tool with an excellent user/support base, let's make it better. Craig ___ 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 )