[Zope] Re: Zope Digest, Vol 3, Issue 34

Chy Ty chyty at hipt.com.vn
Wed Oct 22 06:42:41 EDT 2003


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 at zope.org>
To: <zope at zope.org>
Sent: Tuesday, October 21, 2003 4:23 AM
Subject: Zope Digest, Vol 3, Issue 34


> Send Zope mailing list submissions to
> zope at 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 at zope.org
>
> You can reach the person managing the list at
> zope-owner at 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 at vosberg.be>
> Subject: Re: [Zope] imagemap zpt
> To: zope at zope.org
> Message-ID:
> <42038.212.100.163.131.1066666229.squirrel at 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 at SuSE
> http://www.vosberg.be
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 20 Oct 2003 11:50:20 -0400
> From: Ted holden <medved at fcc.net>
> Subject: [Zope] creating objects in dtml?
> To: zope at zope.org
> Message-ID: <200310201150.20068.medved at 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 at zope.com>
> Subject: [Zope] Re: Is there an APE mailing list?
> To: Johan Carlsson <johanc at easypublisher.com>
> Cc: zope at zope.org
> Message-ID: <Pine.LNX.4.50.0310201209000.9271-100000 at 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 at zope.org as the mailing list.
>
> Shane
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 20 Oct 2003 12:13:04 -0400 (EDT)
> From: Shane Hathaway <shane at zope.com>
> Subject: [Zope] Re: APE and version control?
> To: Johan Carlsson <johanc at easypublisher.com>
> Cc: zope at zope.org
> Message-ID: <Pine.LNX.4.50.0310201209460.9271-100000 at 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 at adytumsolutions.com>
> Subject: Re: [Zope] Project management solution
> To: "Derek S. Wilson" <dwilson at abrazohealth.com>
> Cc: zope at zope.org, Alessandro Fran?a Dantas <afdantas at brturbo.com>
> Message-ID: <3F9410FA.4010807 at 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 at brturbo.com]
> > Sent: Saturday, October 18, 2003 9:14 PM
> > To: zope at zope.org
> > Subject: [Zope] Project management solution
> >
> >
> > Is there any open source project management solution that uses Zope?
> >
> > Alessandro F Dantas
> >
> >
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope at 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 at 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 at dylanreinhardt.com>
> Subject: Re: [Zope] creating objects in dtml?
> To: medved at fcc.net
> Cc: Zope Users <zope at zope.org>
> Message-ID: <1066668416.3779.64.camel at 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 at kfpl.ca>
> Subject: [Zope] rss feeds within zope
> To: "Zope" <zope at zope.org>
> Message-ID: <KMELIGGHOBDKPAEAEMFMGEHJCAAA.klegere at 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 at uleth.ca>
> Subject: [Zope] Migration Strategy
> To: zope at zope.org
> Message-ID: <DF1128AA-0322-11D8-B09E-000A959AF200 at 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 at zettai.net>
> Subject: Re: [Zope] Project management solution
> To: "Derek S. Wilson" <dwilson at abrazohealth.com>, Alessandro Fran ? a
> Dantas <afdantas at brturbo.com>, <zope at zope.org>
> Message-ID: <BBB9889B.1042%list at zettai.net>
> Content-Type: text/plain; charset="US-ASCII"
>
> [Derek S. Wilson wrote (dwilson at 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 at ucdavis.edu>
> Subject: [Zope] Zope and attribute tag question
> To: "'mailinglist'" <zope at zope.org>
> Message-ID:
> <B59C4EA90A030443A4402A44FE6E37A601BE987C at 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 at 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--
> *****************************
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
http://lists.zope.org/pipermail/zope/attachments/20031020/b01d1043/attachmen
t-0001.html
>
> ------------------------------
>
> Message: 11
> Date: Mon, 20 Oct 2003 19:51:30 +0200
> From: Johan Carlsson <johanc at easypublisher.com>
> Subject: [Zope] Re: APE and version control?
> To: Shane Hathaway <shane at zope.com>,  zope at zope.org
> Message-ID: <3F9420A2.6000900 at easypublisher.com>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> Shane Hathaway wrote:
> > 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?
> >
> > 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.
>
> Ok. Let me put it in this way :-)
>
> What I'm looking for is the possibility to implement an application
> level version control inside Zope.
> I guess revision could be handle in the same way as OID are handled and
> guide the gateways what revision to get?
>
> Would this be possible with the scenario you describe?
>
> Also would it be possible to use a ZODB storage from the gateways? In
> other words stack a version-aware storage on top of another storage that
> implements the revision repository.
>
> Regards,
> Johan
>
>
> PS. I keep this discussion on zope at zope.org, but next question I will
> send to zodb-dev at zope.org.
>
> --
> Johan Carlsson          Tel: + 46 8 31 24 94
> Colliberty              Mob: + 46 70 558 25 24
> Torsgatan 72            Email: johanc at easypublisher.com
> SE-113 37 STOCKHOLM
>
>
>
>
>
> ------------------------------
>
> Message: 12
> Date: Mon, 20 Oct 2003 13:54:34 -0400 (EDT)
> From: "Jake (aka BZ)" <jake at zopezone.com>
> Subject: Re: [Zope] Migration Strategy
> To: "Edward Pollard" <pollej at uleth.ca>
> Cc: zope at zope.org
> Message-ID:
> <47012.199.67.140.80.1066672474.squirrel at webmail.mahnke.net>
> Content-Type: text/plain;charset=iso-8859-1
>
> Sure, you can lock the one ZODB, but depending on your apps, you will get
> a lot of errors (all of my apps write to the ZODB).
>
> I have outlined what I do here:
> http://www.zopezone.com/faq/1063992383
>
> Jake
> --
> http://www.ZopeZone.com
>
>
> Edward Pollard said:
> > 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
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope at 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: 13
> Date: Mon, 20 Oct 2003 18:47:56 +0200
> From: Dieter Maurer <dieter at handshake.de>
> Subject: Re: [Zope] problem with python-ldap and ZLDAP in scripts
> To: Adam Szpakowski <worf at optics.polsl.gliwice.pl>
> Cc: zope at zope.org
> Message-ID: <16276.4540.516961.545732 at gargle.gargle.HOWL>
> Content-Type: text/plain; charset=us-ascii
>
> Adam Szpakowski wrote at 2003-10-20 10:46 +0200:
>  > ...
>  > I have to say that I'm quite confused. I wrote a small product for zope
a
>  > tries to bind to the ldap server from this product. Effect is the
same...
>  > Zope process get error and die.
>
> That is different from what you reported before -- and much easier:
>
>   If you get an error, the error is likely to give some clue with
>   respect to the problem...
>
>
> Dieter
>
>
>
> ------------------------------
>
> Message: 14
> Date: Mon, 20 Oct 2003 19:44:47 +0200
> From: Dieter Maurer <dieter at handshake.de>
> Subject: Re: [Zope] Python syntax error
> To: Julian Clark <Julian.Clarke at b-online.com.au>
> Cc: zope at zope.org
> Message-ID: <16276.7951.78827.532941 at gargle.gargle.HOWL>
> Content-Type: text/plain; charset=us-ascii
>
> Julian Clark wrote at 2003-10-20 16:49 +0800:
>  > I'm getting a bizarre set of syntax errors.
>  > ...
>  > today=DateTime()
>  > ...
>  > when I modify it to something like this..
>  > today=DateTime()+7
>  > ...
>  > I get a syntax error.
>  > ...
>  >   File D:\Zope\Products\PythonMethod\PythonMethod.py, line 115, in
_checkCBlock
>  >     (Object: 7days)
>  >   File D:\Zope\Products\PythonMethod\zbytecodehacks\VSExec.py, line
138, in __init__
>  > SyntaxError: (see above)
>
> This looks like an old Zope version (pre 2.6).
>
> Maybe, an upgrade lets your problem disappear?
>
>
> Dieter
>
>
>
> ------------------------------
>
> Message: 15
> Date: Mon, 20 Oct 2003 19:10:37 +0200
> From: Dieter Maurer <dieter at handshake.de>
> Subject: Re: [Zope] Running ZEO on a single server -- advisable? Why?
> To: Paul Winkler <pw_lists at slinkp.com>
> Cc: zope at zope.org
> Message-ID: <16276.5901.276590.899605 at gargle.gargle.HOWL>
> Content-Type: text/plain; charset=us-ascii
>
> Paul Winkler wrote at 2003-10-19 14:16 -0400:
>  > On Sun, Oct 19, 2003 at 08:51:36AM -0400, Paul Howell wrote:
>  > > Do you run ZEO on standalone boxes? What are the advantages?
>  >
>  > - zope restarts faster
>
> This is not always true...
>
> My non-ZEO setup usually uses 6 s to restart (because most shared objects
> and "pyc" files are in the OS file cache).
> My ZEO setup today needed more than 1 minute to verify the ZEO client
> cache. The complete startup was more than 10 times longer than
> the non-ZEO startup.
>
>
> Dieter
>
>
>
> ------------------------------
>
> Message: 16
> Date: Mon, 20 Oct 2003 13:59:20 -0400
> From: Jim Washington <jwashin at vt.edu>
> Subject: Re: [Zope] [HELP] PDF and IE
> To: fbarsukow at fede.generali.fr
> Cc: zope at zope.org
> Message-ID: <3F942278.8070004 at vt.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> fbarsukow at fede.generali.fr wrote:
>
> >
> > hi,
> >
> > i 've some problems for the edition of PDF Document on IE (5.5 or 6.0
> > are my differents configurations).
> > IE recognizes the stream only as text format. the problem doesn't
> > exist with netsacpe (i use netscape 7.0)
> >
> > The pdF is generated and sent as a  stream
> >
> > the code is  :
> >
> > #stResult recover the pdt stream
> > stResultat = context.Editique_GetDocumentPDF(stURL)
> >
> >
> > RESPONSE = REQUEST.RESPONSE
> > RESPONSE.setHeader('Content-Type', 'application/pdf')
> > RESPONSE.setHeader('MIME-Version', '1.0')
> > RESPONSE.setHeader('Content-Transfer-Encoding', 'base64')
> >
> > #exit on the browser :
> > RESPONSE.write(stResultat)
> >
> > zope version         : 2.1.2
> > python version         : 2.1
> >
>
> IE is unfriendly sometimes.  Here are a few tips I have found to be
useful:
>
> 1.  Assure the URL the browser sees is "[something].pdf", i.e., rename
> your method so that it ends with ".pdf".  You can set the name of the
> actual pdf file downloaded with the "Content-Disposition" header.
>
> 2.  Making Content-Disposition say "attachment" instead of "inline" may
> help with some versions of Acrobat Reader.
>
> 3.  Set the "Content-length" header.
>
> As an example, I am having success with something like the following:
>
> theFile = asPDF(dummy)
>
> REQUEST.RESPONSE.setHeader("Content-type","application/pdf")
>
REQUEST.RESPONSE.setHeader("Content-Disposition",'attachment;filename=ThisIs
TheRealFileName.pdf')
> REQUEST.RESPONSE.setHeader("Cache-Control",'private')
> REQUEST.RESPONSE.setHeader('Content-length','%s' % len(theFile))
> REQUEST.RESPONSE.write(theFile)
>
> hth,
>
> -- Jim Washington
>
>
>
>
> ------------------------------
>
> Message: 17
> Date: Mon, 20 Oct 2003 18:49:31 +0200
> From: Dieter Maurer <dieter at handshake.de>
> Subject: RE: [Zope] Corrupt database after packing with Zope 2.6.2
> To: "Douwe Osinga" <dmo at oberon.nl>
> Cc: Bjorn Stabell <bjorn at exoweb.net>, zope at zope.org, zodb-dev at zope.org
> Message-ID: <16276.4635.779765.821655 at gargle.gargle.HOWL>
> Content-Type: text/plain; charset=us-ascii
>
> Douwe Osinga wrote at 2003-10-20 13:15 +0200:
>  > Well, it is +- 200Mb uncompressed, so 500 seems to be out of reach. How
>  > do I get it to the zopdb developers?
>
> The main ZODB/FileStorage developer is Jeremy Hylton:
"mailto:jeremy at zope.com".
>
>
> Dieter
>
>
>
> ------------------------------
>
> Message: 18
> Date: Mon, 20 Oct 2003 14:03:43 -0400 (EDT)
> From: Shane Hathaway <shane at zope.com>
> Subject: [Zope] Re: APE and version control?
> To: Johan Carlsson <johanc at easypublisher.com>
> Cc: zope at zope.org
> Message-ID: <Pine.LNX.4.50.0310201357380.9271-100000 at shane.zope.com>
> Content-Type: TEXT/PLAIN; charset=windows-1252
>
> On Mon, 20 Oct 2003, Johan Carlsson wrote:
>
> > Shane Hathaway wrote:
> > > 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?
> > >
> > > 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.
> >
> > Ok. Let me put it in this way :-)
> >
> > What I'm looking for is the possibility to implement an application
> > level version control inside Zope.
>
> Have you looked at the ZopeVersionControl product?  It gives you version
> control, storing all revisions in ZODB.
>
> > I guess revision could be handle in the same way as OID are handled and
> > guide the gateways what revision to get?
> >
> > Would this be possible with the scenario you describe?
>
> I think so.
>
> > Also would it be possible to use a ZODB storage from the gateways? In
> > other words stack a version-aware storage on top of another storage that
> > implements the revision repository.
>
> If I understand the question correctly, yes.  You could make gateways
> store in ZODB.  OTOH, you could just use the ZopeVersionControl product
> instead.  It would be much simpler.
>
> Shane
>
>
>
> ------------------------------
>
> Message: 19
> Date: Mon, 20 Oct 2003 20:08:11 +0200
> From: Johan Carlsson <johanc at easypublisher.com>
> Subject: [Zope] Re: APE and version control?
> To: Shane Hathaway <shane at zope.com>
> Cc: zope at zope.org
> Message-ID: <3F94248B.5040304 at easypublisher.com>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> Shane Hathaway wrote:
> > On Mon, 20 Oct 2003, Johan Carlsson wrote:
> >
> >>Shane Hathaway wrote:
> >>
> >>>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?
> >>>
> >>>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.
> >>
> >>Ok. Let me put it in this way :-)
> >>
> >>What I'm looking for is the possibility to implement an application
> >>level version control inside Zope.
> >
> > Have you looked at the ZopeVersionControl product?  It gives you version
> > control, storing all revisions in ZODB.
> >
> >
> >>I guess revision could be handle in the same way as OID are handled and
> >>guide the gateways what revision to get?
> >>
> >>Would this be possible with the scenario you describe?
> >
> > I think so.
>
> Ok. Very cool :-)
>
> >>Also would it be possible to use a ZODB storage from the gateways? In
> >>other words stack a version-aware storage on top of another storage that
> >>implements the revision repository.
> >
> > If I understand the question correctly, yes.  You could make gateways
> > store in ZODB.  OTOH, you could just use the ZopeVersionControl product
> > instead.  It would be much simpler.
>
> It might just be that :-)
> I will have a look at it, thanks.
>
>
> --
> Johan Carlsson          Tel: + 46 8 31 24 94
> Colliberty              Mob: + 46 70 558 25 24
> Torsgatan 72            Email: johanc at easypublisher.com
> SE-113 37 STOCKHOLM
>
>
>
>
>
> ------------------------------
>
> Message: 20
> Date: Mon, 20 Oct 2003 14:03:50 -0400
> From: Paul Winkler <pw_lists at slinkp.com>
> Subject: Re: [Zope] Migration Strategy
> To: zope at zope.org
> Message-ID: <20031020180350.GB16476 at slinkp.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Mon, Oct 20, 2003 at 11:28:51AM -0600, Edward Pollard wrote:
> > 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.
>
> usually just copy the Data.fs into the new instance and away you go...
>
> > 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?
>
> Not that I know of, but maybe something like this would work:
>
> - make the Zope 2.6.2 instance the only publically accessible instance,
>   even though it has no content yet.
>
> - set up the old 2.6.0 instance in read-only mode (there are docs on
>   how to do this), and run it on a port that is not accessible to
>   the outside world.
>
> - serve stuff from 2.6.2 if found, else from 2.6.0
>   A pure-Zope approach might be to do this:
>   modify standard_error_message on the 2.6.2 instance to do (pseudocode):
>   if the error is NotFound:
>       make an http request with the same headers to the 2.6.0 instance
>       (you will need an ExternalMethod to do that)
>       if 404:
>           re-raise the NotFound error
>       else:
>           return the result of the request from 2.6.0
>
>   An alternative, probably higher-performance, approach is to use an
>   Apache rewrite rule that tries to get stuff from 2.6.2,
>   and rewrites the request to 2.6.0 only if the response is 404.
>   This might require a cgi script, not sure.
>   I don't know how to do this off the top of my head, but some quick
googling
>   turns up some likely-looking documentation.
>
>   All of the above should work if you're just serving content, but
>   if people in the outside world can add or modify zope objects, you'd
>   need to be sure that it actually works. I suspect this will be tricky.
>   E.g. what do you do when object foo exists on 2.6.0 and wants to
>   be modified? You have to be sure that it gets copied to
>   2.6.2 first.
>
>   There are other potential complications. e.g. catalog searches.
>
> - Once all that's done, use export/import or ZSyncer to gradually
>   move things to the Zope 2.6.2 instance.
>
>
> Seems like a lot of work, I'll just keep copying my storage when
> I upgrade :-)
>
> --
>
> Paul Winkler
> http://www.slinkp.com
> Look! Up in the sky! It's UGLY-DISTRACTION NURSE!
> (random hero from isometric.spaceninja.com)
>
>
>
> ------------------------------
>
> Message: 21
> Date: Mon, 20 Oct 2003 14:43:24 -0400
> From: "Katie Legere" <klegere at kfpl.ca>
> Subject: RE: [Zope] deleting objects through a dtml-call
> To: "Zope" <zope at zope.org>
> Message-ID: <KMELIGGHOBDKPAEAEMFMCEHMCAAA.klegere at kfpl.ca>
> Content-Type: text/plain; charset="us-ascii"
>
>
> I want to delete a file in Zope: I've iterated through the files in a
folder
> and when one meets a certain condition I'd like to get rid of it ...
>
> I've been using <dtml-call "manage_delObjects()">
> but need to tell it the file to delete
>
> I've tried
> <dtml-call "manage_delObjects(this())">
> <dtml-call "manage_delObjects(this.getID())">
> <dtml-call "manage_delObjects(REQUEST.getID())">
>
> and several other suggestions but am getting nowhere.
> What do I need to pass to delObjects()  ???
>
>
> Kate
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 22
> Date: Mon, 20 Oct 2003 20:48:37 +0200
> From: Andreas Jung <andreas at andreas-jung.com>
> Subject: RE: [Zope] deleting objects through a dtml-call
> To: Katie Legere <klegere at kfpl.ca>, Zope <zope at zope.org>
> Message-ID: <2147483647.1066682917@[192.168.0.101]>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
>
>
> --On Montag, 20. Oktober 2003 14:43 Uhr -0400 Katie Legere
> <klegere at kfpl.ca> wrote:
>
> > <dtml-call "manage_delObjects(this())">
> > <dtml-call "manage_delObjects(this.getID())">
> > <dtml-call "manage_delObjects(REQUEST.getID())">
> >
> > and several other suggestions but am getting nowhere.
> > What do I need to pass to delObjects()  ???
>
>
> container.manage_delObjects([id1,id2,...])
>
> -aj
>
>
>
> ------------------------------
>
> Message: 23
> Date: Mon, 20 Oct 2003 19:56:57 +0100
> From: Toby Dickenson <tdickenson at geminidataloggers.com>
> Subject: Re: [Zope] storages comparation
> To: Alexis Roda <arv at si.urv.es>, zope <zope at zope.org>
> Message-ID: <200310201956.57235.tdickenson at geminidataloggers.com>
> Content-Type: text/plain;  charset="iso-8859-1"
>
> On Friday 17 October 2003 16:23, Alexis Roda wrote:
>
> > here we are planning to migrate our webs from apache to zope. My
> > question is about alternate storages
>
> The feature comparison matrix is here:
>
> http://cvs.zope.org/ZODB3/Doc/storages.html?rev=1
>
> > * tools to recover corrupted databases
>
> What sort of problems are you trying to recover? FileStorage can limp
along
> after surviving alot of damage in, for example, a bad disk, bad
application
> software, or FileStorage bugs. If your application is such that you can
> recreate any lost data, then you can often perform a repair within the
> application. BDBStorage benefits from BDB robustness in defending against
bad
> disks, for example you can store log files and database on different
disks,
> but you will need to be a BDB guru to recover from a bad application or
> storage bugs. DirectoryStorage is similar to FileStorage in surviving
damage,
> but it has stricter input validation. It is intentionally less tolerant of
> problems that *might* cause problems, prefering to raise an error rather
than
> risk a corruption. This is good if you absolutely must not loose data, but
> bad if availability is more important and you can afford to fix any minor
> data loss.
>
> > * tools for backup
>
> See that feature comparison matrix above for the details. FileStorage has
a
> pretty good incremental backup tool, although the file format doesnt make
> this elegant. Data backup is what DirectoryStorage does well - it has
backup,
> replication, and checking tools designed in from the beginning. For
> BDBStorage, you get to study the Berkely user manual. It is robust if you
do
> it right, but Im not aware of any wrappers to reduce the effort in setting
> this up.
>
> > * fiability
>
> Is that a spelling erorr?.
>
> > * support for objects, undo ... versions are not important
>
> Then you have a choice of the full range of storages.
>
> > Performance and scalability is not important here.
>
> I hope this helps.
>
> --
> Toby Dickenson
>
>
>
>
> ------------------------------
>
> Message: 24
> Date: Mon, 20 Oct 2003 12:02:19 -0700
> From: "Jeff Youel" <jyouel-lists at youel.net>
> Subject: [Zope] BTreeFolder2 add speed with 10k objects
> To: zope at zope.org
> Message-ID: <000501c3973c$afc4fb60$6602a8c0 at YSIDEV1>
> Content-Type: text/plain; charset="us-ascii"
>
> I'm using a CMFBTreeFolder to hold objects for a query later.  Each
> object in the
> folder has a few string members.  The folder now has about 10,200
> objects.  When
> I add a new instance of the object to the folder, it takes around 18
> seconds.
> I've tracked the hotspot down to BTreeFolder2._setOb()'s:
>
> tree[id] = object
>
> which takes around 17 seconds.  By comparison, the rest of the request
> including cataloging the object takes less than a second.
>
> I'm using Zope 2.6.1, CMF 1.3.1.  I updated by BTreeFolder2 code to the
> latest
> from CVS and ran manage_cleanup() which reported no errors.  Any ideas
> how I can
> improve this?
>
> Thanks,
> Jeff
>
>
>
>
> ------------------------------
>
> Message: 25
> Date: Mon, 20 Oct 2003 12:19:03 -0700
> From: Sean Kelley <sean at horse101.com>
> Subject: [Zope] Soap and Zope and DMOZ data dump?
> To: zope at zope.org
> Message-ID: <3F943527.6030201 at horse101.com>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> I need help implementing SOAPMethod 2.0.0.  In particular, I want to
> display DMOZ.org data on my web site.  Has anyone done this?  I don't
> know the difference between SOAP and RPC and have not done much with
> Python.  I did have my ISP install PyXML and SOAPpy so now I can add
> soap methods.  I attempted to add one from http://wsdlfeeds.com/feeds/6/
> and was able to pull a reply which was general:
> Reply is...
> Category Information for
> Top/Sports/Equestrian/Dressage/Directories/Horse_SalesNarrow and
> Symbolic combinedWarmbloods - Sales and ImportExternal links for this
> categoryDressageWBclassifiedFreedom Farm Dressage CentreHeronwood Stables
>
> How do I display and list more data such as Title, URL, Description,
> etc.?  Do I need to write a python script to do this or is there a way
> to use dtml to list this info via the SOAP method?
>
>
>
>
>
>
> ------------------------------
>
> Message: 26
> Date: Mon, 20 Oct 2003 21:37:32 +0200
> From: "Josef Meile" <jmeile at hotmail.com>
> Subject: [Zope] Re: storages comparation
> To: <zope at zope.org>
> Message-ID: <Law15-DAV13Tmk7HTh10000714b at hotmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> > > * fiability
> >
> > Is that a spelling erorr?.
> He, he, nice to see that I'm not the only one who invents english words,
am
> I inventing something now? :-)
> By the way, he wanted to say "reliability". I guess he speaks spanish or a
> similar language.
>
> Anyway, the point is that I saw your matrix and found it great. I just
have
> another question related to it:
>
> How easy is migrating from FileStorage to the other ones? (with a simple
> zope installation and a zope
> installation with ZEO). I think it would be a good point for the matrix
too.
>
> Thanks,
> Josef
>
>
>
> ------------------------------
>
> Message: 27
> Date: Mon, 20 Oct 2003 21:37:10 +0200
> From: "Fernando Martins" <fmartins at hetnet.nl>
> Subject: RE: [Zope] Problem with alternate path and request
> To: "Ian Bicking" <ianb at colorstudy.com>
> Cc: Dieter Maurer <dieter at handshake.de>, zpt at zope.org, zope at zope.org
> Message-ID: <LPBBLICABBLMEDAGGKOFKEOJDAAA.fmartins at hetnet.nl>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Ian Bicking wrote:
> > On Sunday, October 19, 2003, at 06:00 PM, Fernando Martins wrote:
> > >>>   <p tal:content="request/HTTP_X_FORWARDED_FOR |
> > >> request/REMOTE_ADDR"></p>
> > >>>
> > >>> doesn't work as expected: HTTP_X_FORWARDED_FOR returns an empty
> > >>> string
> > >>> rather than failling in favor of REMOTE_ADDR.
> > >>
> > >> This means that something defined "HTTP_X_FORWARDED_FOR" even
> > >> when you did not use virtualisation.
> > >>
> > >> You know, that you can view the request with
> > >> '<p tal:content="structure request">'?
> > >>
> > >
> > > Yes, and I think it's a bug because it doesn't appear in the request.
> >
> > If you want to confirm this, you should try to use
> > container.REQUEST.HTTP_X_FORWARDED_FOR from a Python script, or maybe
> > just tal:content="python: repr(request.HTTP_X_FORWARDED_FOR)" -- even
> > though the request doesn't list that variable among its headers, it may
> > still return a value for that attribute.  The only way to test if an
> > attribute exists is to attempt to get the attribute.  Perhaps (I don't
> > know) the request object returns "" for any HTTP_* attribute that is
> > not found.
> >
>
> Ok, tried it and got no error, just an empty string.
>
> So, it is either a bug on the request object which contains the attribute
> HTTP_X_FORWARDED_FOR when it shouldn't (i.e., when the request went from
the
> client straight to Zope). But maybe it should always have it.
>
> Or it is a bug in the "structure request" which doesn't display the
> attribute even if it is there.
>
> BTW, which method is implicitly called to generate the HTML representation
> of the objects (like in "structure request")?
>
> Cheers,
> Fernando
>
>
>
>
> ------------------------------
>
> Message: 28
> Date: Mon, 20 Oct 2003 15:31:07 -0400
> From: Paul Winkler <pw_lists at slinkp.com>
> Subject: Re: [Zope] Re: storages comparation
> To: zope at zope.org
> Message-ID: <20031020193107.GE16476 at slinkp.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Mon, Oct 20, 2003 at 09:37:32PM +0200, Josef Meile wrote:
> > > > * fiability
> > >
> > > Is that a spelling erorr?.
> > He, he, nice to see that I'm not the only one who invents english words,
am
> > I inventing something now? :-)
> > By the way, he wanted to say "reliability". I guess he speaks spanish or
a
> > similar language.
> >
> > Anyway, the point is that I saw your matrix and found it great. I just
have
> > another question related to it:
> >
> > How easy is migrating from FileStorage to the other ones? (with a simple
> > zope installation and a zope
> > installation with ZEO). I think it would be a good point for the matrix
too.
>
> I can't speak for the others, but the DirectoryStorage FAQ explains how to
> do FS --> DS. It's easy.
>
> --
>
> Paul Winkler
> http://www.slinkp.com
> Look! Up in the sky! It's QUASI-ICE CREAM FROM XENO 69!
> (random hero from isometric.spaceninja.com)
>
>
>
> ------------------------------
>
> Message: 29
> Date: Mon, 20 Oct 2003 13:58:58 -0600
> From: Mike Doanh Tran <mtran at shufflemasterrd.com>
> Subject: [Zope] Working with sqlvar type=float
> To: zope at zope.org
> Message-ID: <20031020195858.8A1503AA at shufflemasterrd.com>
> Content-Type: text/plain;  charset="iso-8859-1"
>
> I used the ZPublisher to convert a variable into a  type float(see input
> field below).  I passed the variable "balance" to a ZSQL method where
> balance was set as type=float.  I keep getting an "invalid floating point
> type error" when i called the updateBal ZSQ method. I even tried to
> convert balance with _.float(balance) but still get the same error.  The
> mysql db field for balance is set as type float.  Can someone help me
please?
>
> <input type="text" name="rec.balance:float:ignore_empty:records" value="">
> ---------------------------------
> <dtml-in rec mapping>
>   <dtml-call "updateBal(balance=balance,Cust_ID=Cust_ID)">
> </dtml-in>
> --------------------------------
> ZSQL Method: updateBal
> UPDATE customers SET
> balance=<dtml-sqlvar balance type=float>
> WHERE Cust_ID=<dtml-sqlvar Cust_ID type=nb>
> --------------------------------
>
> Thanks,
>
> Mike
>
> -------------------------------------------------------
>
>
>
> ------------------------------
>
> Message: 30
> Date: Mon, 20 Oct 2003 16:00:44 -0400
> From: Jon Whitener <wmmail at twmi.rr.com>
> Subject: [Zope] Zope Advice for Java Man
> To: a.meyer at hccnet.nl
> Cc: zope at zope.org
> Message-ID: <5.2.0.9.0.20031020154800.00b15500 at pop-server.twmi.rr.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> At 05:28 PM 10/17/2003, you wrote:
> >Dear Jon
>
> Send further questions to the Zope mailing list zope at zope.org.  I can't
promise I will have time to answer your further questions.
>
> >Sorry for taking your time, but I am looking for advice by someone with
practical  Zope/Python experience. I have 20 years of experience in
computing and worked mainly in Java for the last 8 years after using more
exciting languages and have a lot of experience in OO, database modelling,
knowledge engineering, etc. At the moment I am starting to learn Python and
Zope. I wanted to do this for some time, but recently I got in touch with a
musician who is interested in a music database application(*). Thus, I
thought I'd take my chance and do this in Zope. After reading quite some
material about Zope I am still hesitating how to approach the problem.
Should I use ZODB or MySQL?
>
> You don't have to choose.  You can use Zope and MySQL in tandem, via a
Zope Database Adapter, which allows transfer of data to and from an external
database if you wish.  It depends on your database needs.  A thread on this
subject:
>
> http://mail.zope.org/pipermail/zope/2003-September/140708.html
>
> >DTML or ZPT?
>
> ZPT (plus Python scripts).
>
> >I want to make sure that the database is safe and can be backed up.
>
> ZODB is easy to back up (you just copy the Data.fs ZODB file).  Don't know
about others.
>
> >Can I access the ZODB using Python programs?
>
> Yes.
>
> >How does this work?
>
> Don't know.
>
> >Should I first learn Python or Zope?
>
> You will end up learning Python as you learn Zope.  Zope is written in
Python.
>
> >Can I convert an Excel sheet to read into Zope?
>
> Don't know, but search the Internet, and I'm sure you'll find something
about it.
>
> >How can I program for Zope without being restricted by its Web interface
(I am using eclipse for Java development and that is much different from
hacking little bits of code in various Web forms)?
>
> Look into Zope Products, written in Python.  See
http://zope.org/Documentation/Books/ZopeBook/2_6Edition/CustomZopeObjects.st
x
>
> >What would you suggest for a good solution and how do I learn the
required skills in the shortest amount of time?
>
> Best Python book I know:  "Python: Visual QuickStart Guide" from Peachpit
Press.  Instant answers to your questions.
>
> >Are there good comprehensive examples to look at? It seems that I learn
best from looking at other people's code.
>
> Zope is open source, so you can examine every line of code.  Zope.org
provides custom products others have written, which are also all open
source.
>
> >I am sorry if I trouble you, but you seem to know the matter very well
and understand the needs of someone interested in practical solutions.
>
> Good luck.  I hope you will enjoy Zope as I do.  Use zope at zope.org for
further questions.  You will find the list quite responsive.
>
>
> >Thanks a lot and kind regards André Meyer Delft, The Netherlands
> >
> >(*) This is about pieces of old music that are played in various
instrumental settings. One query is to search for combinations of pieces
with a given set of instruments in order to prepare for a concert. The
interface needs to be easy to handle and avoid re-entering the same
information more than once (e.g. a composer or publisher). Therefore, I
foresee that comboboxes are used a lot for selecting previously entered
values/objects. The application first used on a personal workstation, but
may be made available for multi-user access (eventually contributions) on
the Web later on.
>
>
>
>
> ------------------------------
>
> Message: 31
> Date: Fri, 17 Oct 2003 14:09:16 -0600
> From: Matthew Thorley <ruach at chpc.utah.edu>
> Subject: [Zope] help with groups support
> To: zope at zope.org
> Message-ID: <200310171409.16822.ruach at chpc.utah.edu>
> Content-Type: text/plain;  charset="us-ascii"
>
> I want to add support for groups to my zope site, but I don't know whats
the
> best way to go about it. There are so many groups products available.
Could
> someone please suggest which ones works the best (for them) and why.
Idealy I
> would like to import my groups from a unix group file.
>
> Thanks very much in advance
> -matthew
>
>
>
> ------------------------------
>
> Message: 32
> Date: Mon, 20 Oct 2003 22:41:24 +0200
> From: Johan Carlsson <johanc at easypublisher.com>
> Subject: [Zope] ZopeVersionControl (was: Re: APE and version control?)
> To: Shane Hathaway <shane at zope.com>,  zope at zope.org
> Message-ID: <3F944874.4000605 at easypublisher.com>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> Shane Hathaway wrote:
> > On Mon, 20 Oct 2003, Johan Carlsson wrote:
> > If I understand the question correctly, yes.  You could make gateways
> > store in ZODB.  OTOH, you could just use the ZopeVersionControl product
> > instead.  It would be much simpler.
>
> Hi again,
> ZopeVersionControl lacks the ability to track subobject
> changes. Is this something that is planed for future
> versions of ZopeVersionControl?
>
> If I have understod APE correctly, subobjects are
> retrieved from folderaware gateways and inserted by
> folderaware serializers?
>
> This is something I expect out of (at least) a branchaware
> version control system (that can do staging).
>
> But if you recommend it I'll dive in to the ZopeVersionControl
> code and try to figure out what I can do :-)
>
> Are there any plans for ZopeVersionControl?
> Who's manager for it?
>
> --
> Johan Carlsson          Tel: + 46 8 31 24 94
> Colliberty              Mob: + 46 70 558 25 24
> Torsgatan 72            Email: johanc at easypublisher.com
> SE-113 37 STOCKHOLM
>
>
>
>
>
> ------------------------------
>
> Message: 33
> Date: Mon, 20 Oct 2003 16:47:44 -0400
> From: Mitch Pirtle <mitchy at spacemonkeylabs.com>
> Subject: Re: [Zope] Zope Advice for Java Man
> To: a.meyer at hccnet.nl, zope at zope.org
> Message-ID: <1066682863.23080.32.camel at localhost.localdomain>
> Content-Type: text/plain
>
> Greetings Java Man!
>
> I've chopped the message down to the few points that I am commenting to:
>
> > >Can I convert an Excel sheet to read into Zope?
> >
> > Don't know, but search the Internet, and I'm sure you'll find
> > something about it.
>
> You definitely have options here, there are Zope Products (add-on
> applications and modules) that you can work with.  You can browse
> through a huge listing at:
>
> http://www.zope.org/Products/
>
> > >How can I program for Zope without being restricted by its Web
> > interface (I am using eclipse for Java development and that is much
> > different from hacking little bits of code in various Web forms)?
> >
> > Look into Zope Products, written in Python.  See
> >
http://zope.org/Documentation/Books/ZopeBook/2_6Edition/CustomZopeObjects.st
x
>
> I think you're asking about the development environment, no?  I use
> WebDAV and FTP to access the files from Zope, and a local editor (in my
> case, Anjuta on linux).  With WebDAV you can pretty much 'mount' the
> ZODB like a filesystem, and edit with whatever tools you prefer.
>
> > >What would you suggest for a good solution and how do I learn the
> > required skills in the shortest amount of time?
> >
> > Best Python book I know:  "Python: Visual QuickStart Guide" from
> > Peachpit Press.  Instant answers to your questions.
>
> Interesting book, I'll take a look just out of curiosity.
>
> I'm a huge fan on Plone, an out-of-the-box portal for Zope.  Integrate
> the Epoz graphical content editor, and you have one easy to use system.
> I had a 40-something attorney publishing on his own website within 5
> minutes, no documentation provided.  No HTML or programming knowledge
> needed, for him it looks just like Word.
>
> Plone: http://www.plone.org/
> Epoz: http://zope.org/Members/mjablonski/Epoz
>
> > >Are there good comprehensive examples to look at? It seems that I
> > learn best from looking at other people's code.
> >
> > Zope is open source, so you can examine every line of code.  Zope.org
> > provides custom products others have written, which are also all open
> > source.
>
> Again, the Plone community is very helpful, and the code is there for
> your examination.  Sometimes it is easier to look at what others do...
>
> > >(*) This is about pieces of old music that are played in various
> > instrumental settings. One query is to search for combinations of
> > pieces with a given set of instruments in order to prepare for a
> > concert. The interface needs to be easy to handle and avoid
> > re-entering the same information more than once (e.g. a composer or
> > publisher). Therefore, I foresee that comboboxes are used a lot for
> > selecting previously entered values/objects. The application first
> > used on a personal workstation, but may be made available for
> > multi-user access (eventually contributions) on the Web later on.
>
> One good place to look at is Archetypes:
>
> http://sourceforge.net/projects/archetypes
>
> Archetypes lets you create your own custom content types.  This would go
> a long way for you to have easy-to-edit forms for data entry as well as
> maintenance, and also simplifies your efforts at displaying lists and
> sorting them for the website.
>
> Hope this helps,
>
> -- Mitch
>
>
>
>
>
> ------------------------------
>
> Message: 34
> Date: Mon, 20 Oct 2003 16:51:17 -0400 (EDT)
> From: Shane Hathaway <shane at zope.com>
> Subject: [Zope] Re: ZopeVersionControl (was: Re: APE and version
> control?)
> To: Johan Carlsson <johanc at easypublisher.com>
> Cc: zope at zope.org
> Message-ID: <Pine.LNX.4.50.0310201642560.9271-100000 at shane.zope.com>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
>
> On Mon, 20 Oct 2003, Johan Carlsson wrote:
>
> > Shane Hathaway wrote:
> > > On Mon, 20 Oct 2003, Johan Carlsson wrote:
> > > If I understand the question correctly, yes.  You could make gateways
> > > store in ZODB.  OTOH, you could just use the ZopeVersionControl
product
> > > instead.  It would be much simpler.
> >
> > ZopeVersionControl lacks the ability to track subobject
> > changes. Is this something that is planed for future
> > versions of ZopeVersionControl?
>
> Applications that use ZopeVersionControl are supposed to track subobjects
> for themselves.  This won't change.
>
> > If I have understod APE correctly, subobjects are
> > retrieved from folderaware gateways and inserted by
> > folderaware serializers?
>
> That sounds right.
>
> > This is something I expect out of (at least) a branchaware
> > version control system (that can do staging).
>
> Have you looked at CMFStaging?  Maybe you should look at that first.  It's
> a layer on top of ZopeVersionControl.
>
> > But if you recommend it I'll dive in to the ZopeVersionControl
> > code and try to figure out what I can do :-)
> >
> > Are there any plans for ZopeVersionControl?
> > Who's manager for it?
>
> Are you volunteering? ;-)  Just kidding.  We use it in our consulting
> projects.  We haven't had a need to change it for a while, so no one in
> particular manages it.
>
> Shane
>
>
>
> ------------------------------
>
> Message: 35
> Date: Mon, 20 Oct 2003 17:04:25 -0400
> From: "Brian Lloyd" <brian at zope.com>
> Subject: [Zope] Zope Corp. career opportunity
> To: <zope at zope.org>
> Message-ID: <INENIOEOCHPHGHKLFLOLAEFLCCAA.brian at zope.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi all,
>
> Zope Corporation is looking to hire an experienced Linux
> System Administrator:
>
>   http://www.zope.com/Corporate/CareerOpportunities
>
>
> Our ideal candidate would have experience deploying and maintaining
> Zope-based sites - I figured there might be a few people with that
> kind of experience on this list :^)  If you are a zopista who might
> be interested in this position, please contact us at careers at zope.com.
>
> Thanks!
>
>
> Brian Lloyd        brian at zope.com
> V.P. Engineering   540.361.1716
> Zope Corporation   http://www.zope.com
>
>
>
>
> ------------------------------
>
> Message: 36
> Date: Mon, 20 Oct 2003 23:12:24 +0200
> From: Johan Carlsson <johanc at easypublisher.com>
> Subject: [Zope] Re: ZopeVersionControl
> To: zope at zope.org
> Cc: Shane Hathaway <shane at zope.com>
> Message-ID: <3F944FB8.3070400 at easypublisher.com>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> Shane Hathaway wrote:
> > On Mon, 20 Oct 2003, Johan Carlsson wrote:
> >
> >> Shane Hathaway wrote: ZopeVersionControl lacks the ability to track
> >> subobject changes. Is this something that is planed for future
> >> versions of ZopeVersionControl?
> >
> > Applications that use ZopeVersionControl are supposed to track sub
> > objects for themselves.  This won't change.
>
> Ok. I need to look closer on how ZopeVersionControl works
> to understand that :-)
>
> But it sounds to me like the inability of CVS to handle folders?
> (I'm not a fan of that particular feature :-)
>
> >> If I have understood APE correctly, subobjects are retrieved from
> >> folderaware gateways and inserted by folderaware serializers?
> >
> > That sounds right.
> >
> >
> >> This is something I expect out of (at least) a branchaware version
> >> control system (that can do staging).
> >
> > Have you looked at CMFStaging?  Maybe you should look at that first.
>  > It's  a layer on top of ZopeVersionControl.
>
> Does CMFStaging require CMF?
>
>
> >> But if you recommend it I'll dive in to the ZopeVersionControl code
> >> and try to figure out what I can do :-)
> >>
> >> Are there any plans for ZopeVersionControl? Who's manager for it?
> >
> > Are you volunteering? ;-)  Just kidding.
>
> I'm "maybe" volunteering to submit code :-)
> But maybe it should be made a separate package
> such as CMFStaging or equivalent.
>
> If found some possible bugs, I might post fixes for.
>
>
> > We use it in our consulting projects. We haven't had a need to change
> > it for a while, so no one in particular manages it.
>
>
>
> --
> Johan Carlsson          Tel: + 46 8 31 24 94
> Colliberty              Mob: + 46 70 558 25 24
> Torsgatan 72            Email: johanc at easypublisher.com
> SE-113 37 STOCKHOLM
>
>
>
>
>
>
> ------------------------------
>
> Message: 37
> Date: Mon, 20 Oct 2003 17:04:05 -0400
> From: Ted holden <medved at fcc.net>
> Subject: [Zope] creating objects in dtml?
> To: zope at zope.org
> Message-ID: <200310201704.05345.medved at fcc.net>
> Content-Type: text/plain;  charset="iso-8859-1"
>
>
> 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.
>
>
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
>
>
>
> End of Zope Digest, Vol 3, Issue 34
> ***********************************




More information about the Zope mailing list