Re: Zope Digest, Vol 3, Issue 34
Dear everybody I created a folder with some documents in there. My purpose is give only one role can list this folder that have some private file on this folder. Could you show me how to configure this problem. Thank your ----- Original Message ----- From: <zope-request@zope.org> To: <zope@zope.org> Sent: Tuesday, October 21, 2003 4:23 AM Subject: Zope Digest, Vol 3, Issue 34
Send Zope mailing list submissions to zope@zope.org
To subscribe or unsubscribe via the World Wide Web, visit http://mail.zope.org/mailman/listinfo/zope or, via email, send a message with subject or body 'help' to zope-request@zope.org
You can reach the person managing the list at zope-owner@zope.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of Zope digest..."
Today's Topics:
1. Re: imagemap zpt (Frederik Vos) 2. creating objects in dtml? (Ted holden) 3. Re: Is there an APE mailing list? (Shane Hathaway) 4. Re: APE and version control? (Shane Hathaway) 5. Re: Project management solution (Duncan McGreggor) 6. Re: creating objects in dtml? (Dylan Reinhardt) 7. rss feeds within zope (Katie Legere) 8. Migration Strategy (Edward Pollard) 9. Re: Project management solution (george donnelly) 10. Zope and attribute tag question (John Slate) 11. Re: APE and version control? (Johan Carlsson) 12. Re: Migration Strategy (Jake (aka BZ)) 13. Re: problem with python-ldap and ZLDAP in scripts (Dieter Maurer) 14. Re: Python syntax error (Dieter Maurer) 15. Re: Running ZEO on a single server -- advisable? Why? (Dieter Maurer) 16. Re: [HELP] PDF and IE (Jim Washington) 17. RE: Corrupt database after packing with Zope 2.6.2 (Dieter Maurer) 18. Re: APE and version control? (Shane Hathaway) 19. Re: APE and version control? (Johan Carlsson) 20. Re: Migration Strategy (Paul Winkler) 21. RE: deleting objects through a dtml-call (Katie Legere) 22. RE: deleting objects through a dtml-call (Andreas Jung) 23. Re: storages comparation (Toby Dickenson) 24. BTreeFolder2 add speed with 10k objects (Jeff Youel) 25. Soap and Zope and DMOZ data dump? (Sean Kelley) 26. Re: storages comparation (Josef Meile) 27. RE: Problem with alternate path and request (Fernando Martins) 28. Re: Re: storages comparation (Paul Winkler) 29. Working with sqlvar type=float (Mike Doanh Tran) 30. Zope Advice for Java Man (Jon Whitener) 31. help with groups support (Matthew Thorley) 32. ZopeVersionControl (was: Re: APE and version control?) (Johan Carlsson) 33. Re: Zope Advice for Java Man (Mitch Pirtle) 34. Re: ZopeVersionControl (was: Re: APE and version control?) (Shane Hathaway) 35. Zope Corp. career opportunity (Brian Lloyd) 36. Re: ZopeVersionControl (Johan Carlsson) 37. creating objects in dtml? (Ted holden)
----------------------------------------------------------------------
Message: 1 Date: Mon, 20 Oct 2003 18:10:29 +0200 (CEST) From: "Frederik Vos" <fvos@vosberg.be> Subject: Re: [Zope] imagemap zpt To: zope@zope.org Message-ID: <42038.212.100.163.131.1066666229.squirrel@webmail.vosberg.be> Content-Type: text/plain;charset=iso-8859-1
Paul Winkler said:
On Mon, Oct 20, 2003 at 03:36:44PM +0200, Frederik Vos wrote:
Hello all,
I have a zpt question:
i have a imagemap, with several links to other images. And this moment (i'm busy with migrating my website from pure html to zope) every image have his own html pages (just because the layout), a little bit overkilled i think. Somehow i have the feeling that zpt can handle this very easy. I found several postings on the mailinglist which are more or less related to my question, but didn't find a solution :(
the question is a bit vague. I think that you want to avoid the need to maintain a separate html page for each linked image?
yes
You can create a single template called show_image that takes an image id as a parameter. Your image map links then look like this:
<area shape="rect" coords="0,0,100,300" href="show_image?img_id=cabbage.jpg" /> <area shape="rect" coords="0,100,200,300" href="show_image?img_id=tomatoes.jpg" />
then create a template called show_image. The contents of show_image are pretty simple ZPT and I don't feel like writing it for you ;-) Read the ZPT chapters in the online Zope Book, including the Advanced chapter.
tnx !!! just what i want to know !!!
-- m. vr. gr. Frederik Vos L4L & VosBerg@SuSE http://www.vosberg.be
------------------------------
Message: 2 Date: Mon, 20 Oct 2003 11:50:20 -0400 From: Ted holden <medved@fcc.net> Subject: [Zope] creating objects in dtml? To: zope@zope.org Message-ID: <200310201150.20068.medved@fcc.net> Content-Type: text/plain; charset="us-ascii"
I have a python class which I've set up as a zope product and which shows up as such.
Now, products installed this way don't show up on menus, so I've more or less followed the instructions and created a product with a zclass which subclasses the installed python product and, sure enough, this zclass shows up on menus.
The next step was to create a folder with a dtml page and an instance of the zclass in it, and use the instance of the zclass in the dtml page, and that works.
Nonetheless, ultimately, that doesn't seem to be what I want. Unless I'm missing something, that creates a single instance (object) of the class for good and all. I see print statements from the constructor the first time I ever bring the page up; afterwards, the object is still there, but it isn't being created. The systems seems to be saving it.
What I really need is for a user to open a dtml page and create (his/her) object in doing so, and then use it. I assume it's possible to do that in dtml but I don't see any descriptions of how to do it. I'd appreciate hearing from anyone who knows how this is done.
------------------------------
Message: 3 Date: Mon, 20 Oct 2003 12:09:26 -0400 (EDT) From: Shane Hathaway <shane@zope.com> Subject: [Zope] Re: Is there an APE mailing list? To: Johan Carlsson <johanc@easypublisher.com> Cc: zope@zope.org Message-ID: <Pine.LNX.4.50.0310201209000.9271-100000@shane.zope.com> Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 20 Oct 2003, Johan Carlsson wrote:
Hi Shane, Is there an APE mailing list? If not, shouldn't it be one :-)
Best Reagrds, Johan Carlsson
PS. APE - Great work (as always :-)
Thanks. We've been using zodb-dev@zope.org as the mailing list.
Shane
------------------------------
Message: 4 Date: Mon, 20 Oct 2003 12:13:04 -0400 (EDT) From: Shane Hathaway <shane@zope.com> Subject: [Zope] Re: APE and version control? To: Johan Carlsson <johanc@easypublisher.com> Cc: zope@zope.org Message-ID: <Pine.LNX.4.50.0310201209460.9271-100000@shane.zope.com> Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 20 Oct 2003, Johan Carlsson wrote:
I'm a bit interested in what you meen by "apply version control to your objects". How would this work?
Ape/doc/outline.txt : """ Finally, the framework is useful for many purposes outside ZODB. Once you have built a system of mappers, you can use those mappers to import and export objects, synchronize with a data store, and apply version control to your objects. The concepts behind ApeLib open exciting possibilities. """
Well, there is a strong distinction between the ZODB parts of Ape and the actual serialization layer. You can use the serialization layer for purposes other than storing in a database. You could write some code that listens to events notifying that objects have changed. The event handler could serialize the objects to a version control system.
Shane
------------------------------
Message: 5 Date: Mon, 20 Oct 2003 12:44:42 -0400 From: Duncan McGreggor <cms@adytumsolutions.com> Subject: Re: [Zope] Project management solution To: "Derek S. Wilson" <dwilson@abrazohealth.com> Cc: zope@zope.org, Alessandro Fran?a Dantas <afdantas@brturbo.com> Message-ID: <3F9410FA.4010807@adytumsolutions.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
I did a little work on the 1.x versions of phpCollab, and if I had the time, I would LOVE to port this to Zope. It really wouldn't be that difficult... just a matter of sitting down and hammering out the (simple) code.
It's got one of the nicest interfaces I have seen for PM OS software; you guys might want to check it out.
Duncan
Derek S. Wilson wrote:
Well, I'm writing my own , though it's not a project, just a bunch of SQL methods, some TAL pages and stuff. I've been looking for the same thing. People usually tell you to run a 'collector'. While those are fine for software projects, they are not a proper project management solution for anything else.
Thanks, Derek Wilson
-----Original Message----- From: Alessandro França Dantas [mailto:afdantas@brturbo.com] Sent: Saturday, October 18, 2003 9:14 PM To: zope@zope.org Subject: [Zope] Project management solution
Is there any open source project management solution that uses Zope?
Alessandro F Dantas
_______________________________________________ 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 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 )
------------------------------
Message: 6 Date: 20 Oct 2003 09:46:56 -0700 From: Dylan Reinhardt <zope@dylanreinhardt.com> Subject: Re: [Zope] creating objects in dtml? To: medved@fcc.net Cc: Zope Users <zope@zope.org> Message-ID: <1066668416.3779.64.camel@ida.dylanreinhardt.com> Content-Type: text/plain
On Mon, 2003-10-20 at 08:50, Ted holden wrote:
I have a python class which I've set up as a zope product and which shows up as such.
Super.
Now, products installed this way don't show up on menus, so I've more or
less
followed the instructions and created a product with a zclass which subclasses the installed python product and, sure enough, this zclass shows up on menus.
That shouldn't be necessary... did you register the class correctly in your product's __init__ module?
The next step was to create a folder with a dtml page and an instance
of the
zclass in it, and use the instance of the zclass in the dtml page, and that works.
If it works, I suppose that's something... but if you can do it all in your external product code, you might get better results & easier maintainability.
Nonetheless, ultimately, that doesn't seem to be what I want. Unless
I'm
missing something, that creates a single instance (object) of the class for good and all.
Yep.
I see print statements from the constructor the first time I ever bring the page up; afterwards, the object is still there, but it isn't being created. The systems seems to be saving it.
Correct... because you've created a persistent object, it is being persisted.
What I really need is for a user to open a dtml page and create
(his/her)
object in doing so, and then use it.
That's certainly possible... but then what? You want this object to only exist during the time the user has a session?
To answer the first part, the URL to create a new instance of a product is usually something of the form:
container/manage_addProduct/product_name/product_nameAdd
As for collecting unused objects, you'll probably want to create a python script that steps over the instances of your product and deletes those that are deemed expired (however you choose to determine that). Then call that script from a cron job or something that can fire it off regularly.
With a system that's adding and deleting instances with any regularity, you'll want to be sure to have a cron job pack your database regularly too.
HTH,
Dylan
------------------------------
Message: 7 Date: Mon, 20 Oct 2003 13:23:45 -0400 From: "Katie Legere" <klegere@kfpl.ca> Subject: [Zope] rss feeds within zope To: "Zope" <zope@zope.org> Message-ID: <KMELIGGHOBDKPAEAEMFMGEHJCAAA.klegere@kfpl.ca> Content-Type: text/plain; charset="iso-8859-1"
We have a nice working blog (stores entries in unique files and then iterates over them to display) and a rss file that seems to connect well. We've set up an aggregator and it seems ok but not quite what we expected as the files are html and not xml.
There seem to be several Zope products for making rss compatable documents but I'm wondering if anyone has used any of them and can recommend something.
Katie Legere Kingston Frontenac Public Library
------------------------------
Message: 8 Date: Mon, 20 Oct 2003 11:28:51 -0600 From: Edward Pollard <pollej@uleth.ca> Subject: [Zope] Migration Strategy To: zope@zope.org Message-ID: <DF1128AA-0322-11D8-B09E-000A959AF200@uleth.ca> Content-Type: text/plain; charset=US-ASCII; format=flowed
We're moving some content from Zope 2.6 to 2.6.2, and I'm wondering what the best way to do this would be.
In the fantasy world that is my mind, I think I'd be looking for a way to safely lock the ZODB in the 2.6 instance, so we can migrate to 2.6.2 while still serving (unchangeable) content from 2.6.
Does such a concept exist?
--- Edward J. Pollard University of Lethbridge Web Development
------------------------------
Message: 9 Date: Mon, 20 Oct 2003 12:42:03 -0500 From: george donnelly <list@zettai.net> Subject: Re: [Zope] Project management solution To: "Derek S. Wilson" <dwilson@abrazohealth.com>, Alessandro Fran ? a Dantas <afdantas@brturbo.com>, <zope@zope.org> Message-ID: <BBB9889B.1042%list@zettai.net> Content-Type: text/plain; charset="US-ASCII"
[Derek S. Wilson wrote (dwilson@abrazohealth.com) on 10/20/03 10:26 AM]
Well, I'm writing my own , though it's not a project, just a bunch of SQL methods, some TAL pages and stuff. I've been looking for the same thing. People usually tell you to run a 'collector'. While those are fine for software projects, they are not a proper project management solution for anything else.
You should talk to richard amerman of 7technw.com as he gave a talk on project management with plone last week.
<--> george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting" Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites Yahoo, AIM: zettainet ~ ICQ: 51907738 ~ Sales (USA): 1-866-967-3669
Sent using the Entourage X Test Drive.
------------------------------
Message: 10 Date: Mon, 20 Oct 2003 10:43:15 -0700 From: John Slate <jbslate@ucdavis.edu> Subject: [Zope] Zope and attribute tag question To: "'mailinglist'" <zope@zope.org> Message-ID: <B59C4EA90A030443A4402A44FE6E37A601BE987C@hrrm.ucdavis.edu> Content-Type: text/plain; charset="us-ascii"
Good day,
Our company has been using a ZOPE driven website for over a year now ( http://www.hr.ucdavis.edu/Emp/All <http://www.hr.ucdavis.edu/Emp/All> ) but recently switched to a database driven page that you can see at the enclosed link. My question is pretty simple: I have submitted some attribute tags to the website that only defined some color tags to the table. I have been told that because this page is "database driven", the changes cannot take effect.
This seems absolutely ridiculous to me and totally unsupported by logic. Does anyone more familiar with ZOPE have any ideas as to why simple attribute tags could possibly cause such problems?
***************************** John Slate, jbslate@ucdavis.edu UC Davis Human Resources Employment & Outreach Services (530) 752-5029 ***************************** I dwell in Possibility-- A fairer House than Prose-- More numerous of Windows-- Superior--for Doors-- *****************************
also sprach Chy Ty <chyty@hipt.com.vn> [2003.10.22.1242 +0200]:
I created a folder with some documents in there. My purpose is give only one role can list this folder that have some private file on this folder. Could you show me how to configure this problem.
Could you please not quote the entire digest, and *not* ask questions on the top of quoted text. http://www.uwasa.fi/~ts/http/quote.html Thanks, -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver! "we have a firm commitment to nato, we are a part of nato. we have a firm commitment to europe. we are a part of europe." - george w. bush
participants (2)
-
Chy Ty -
martin f krafft