[Zope] Newbie Question
Is it possible to have the same host running ZOPE 2 and ZOPE 3? I would like to put both on a Mac OS X server. I have Apache 2.2 running on it and PostgreSQL version 8.1.3 running my existing software. I'd like to add zwiki which uses ZOPE 2. And then add ZOPE 3 so that I can start developing a new application. Can all three of these coexist on the same machine? Are there any suggested do's and don'ts to follow in such an arrangement?Thank you, Perry SmithEase Software, Inc.[EMAIL PROTECTED]http://www.easesoftware.comSATA Products for IBMs RS/6000, pSeries, and AIX systems ___ 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] Newbie Question,
Newbie Question, I wish to use use the date of a database file in my dynamic html code. For example, this database was last updated on 06/06/2000. I suppose that there must be a dynamic html tag that zope uses. What could it be? I looked at all the documentation and have yet to discover it.Any help is apprechiated. ___ 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] newbie question
Now that I've set up some virtual hosts off my zserver, I have another question. These sites (each in a folder in the zope DB) share a lot of data in the form of some custom zobjects representing contacts, calendar items, and posts to discussion boards. If I put these objects in folders on the root level, how do I access them from dtml methods somewhere else? Or am I going about this all wrong? - Building highways to reduce traffic is like loosening your belt to reduce obesity ___ 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] Newbie question
Has anyone gotten Zope running on either LinuxPPC or OSX? If so, can you share your wisdom on how it was done? We'll also be looking for experienced Zope web site developers so send me your resume if interested. Thanks Jerry Jewell WebDudes, Inc. 916 624 0601 ___ 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] NewBIE Question
After re-installing zope on NT box, I noticed that I am now running two instances of the Zope service. I was able to disable one instance but how can I permanatly remove the service and how do I know which Zope service is running? ___ 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] newbie question
Hello and thanks for your patience! I am beginning to learn zope. I am going through the tutorials in "the book". I have run into a problem creating an external method. I know I must be doing something stupid! I have my addEntry.py saved in the Extension folder in the Zope folder as it installed it (i'm in win 2k). I have the dtml method to call addEntry. When I try to add an external method id/function name/file name are all addEntry. (Supposedly to keep me from messing up...). I get this error message- "Zope has encountered an error while publishing this resource. Error Type: SyntaxError Error Value: invalid syntax Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. " There must be a simple solution. I have looked at the o'reilly book/on-line docs/how tos and I am still not seeing my error. Please feel free to e-mail me directly at [EMAIL PROTECTED]. I thought I had found a work around by installing python method – but I am not sure what I need to put in the parameter list…. Any help would be greatly appreciated! =Kathy Hester to feel powerful oftento act powerful sometimesto overpower others seldomto share power whenever possible- unknown
[Zope] Newbie question
Hello, i want to view a dtml-document, calling it as a variable. For example: where this file is called with this string: test3 The result i now get is the id, not the content of the file! Thanks, Bruno __ Do You Yahoo!? Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it ___ 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] newbie question
I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After this, the form action method should reply: - "this is not much" if 1000 was selected, - "this is ok" if 5000 was selected, - "this is very much" if 1 was selected Now my form method looks like this: How many money? 1000 5000 1 and the form_action method is this: This is not much! This is ok! This is very much! I am sure that there is an error in my thinking of these tags. TIA -goe- _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ 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] Newbie Question
Hi everyone, Simple newbie question... :) I've made a directory called News into which I will put files named newsXXX. X being a number from 999 to 001. What I want to do is to tell zope to put each file into a document. Now, here is what I figured out. <--- that's where I'm stuck. I don't know how to iterate through a directory ... I want ALL the newsXXX displayed. How do I do that? TIA Dany ---.oo0O--O0oo. Dany Rioux UnderSoft Inc. Business www.dating-reviews.com [EMAIL PROTECTED] Personal www.drioux.com [EMAIL PROTECTED] ---.o00O---O00o.--- BEGIN:VCARD VERSION:2.1 N:Rioux;Dany;;M FN:Dany Rioux ORG:UnderSoft Inc. TITLE:President TEL;WORK;VOICE:(506) 753-7515 ADR;WORK:;;78B Roseberry St;Campbellton;NB;E3N 2G7;Canada LABEL;WORK;ENCODING=QUOTED-PRINTABLE:78B Roseberry St=0D=0ACampbellton, NB E3N 2G7=0D=0ACanada X-WAB-GENDER:2 BDAY:20010710 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] EMAIL;INTERNET:[EMAIL PROTECTED] EMAIL;INTERNET:[EMAIL PROTECTED] EMAIL;INTERNET:[EMAIL PROTECTED] EMAIL;INTERNET:[EMAIL PROTECTED] REV:20001122T152751Z END:VCARD
[Zope] Newbie question
I am just getting started in Zope and have what is probably an obvious question. I have an external method that returns a list. I understand how to write dtml to iterate through the list using . My question is how do I write a dtml-method that takes the current sequence-item and does something in it. So in index_html And in the other dtml-method, how do I access the sequence-item passed in? Thanks, -- Greg Green e-mail: [EMAIL PROTECTED] http://www.olywa.net/gpgreen/ ___ 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] newbie question
I'm getting an error in CMFCore.utils in the _mergedLocalRoles function. The error is: Exception Type TypeError Exception Value can only concatenate tuple (not "list") to tuple I modify utils.py, after saving a copy, in order to obtain diagnostic output. Then I delete utils.pyc, after saving a copy, in order to force a recompile (even used compilezpy.py for this a couple of times). Zope never seems to use the new version. Also, I added comments ahead of the line where the error occurs so that the line number should be higher than the original error line number. But, it's always the same. I suspect that I have a fundamental misunderstanding of how Zope uses code in the Products directory. Is Zope storing all the compiled byte code in the data.fs file? Is there a way to force Zope to use new code? Also, the previous developer removed the Control Panel putting Plone as the root of everything. How can I get information that the Control Panel usually provides? System: Zope 2.7.1, Plone 2.0.5, Python 2.3.4, Red Hat 7.2 Thank you. Barry Drake The traceback: Traceback (innermost last): Module ZPublisher.Publish, line 101, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFFormController.ControllerPageTemplate, line 80, in __call__ Module Products.CMFFormController.BaseControllerPageTemplate, line 39, in _call Module Products.CMFFormController.ControllerBase, line 243, in getNext Module Products.CMFFormController.Actions.TraverseTo, line 36, in __call__ Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFFormController.ControllerPythonScript, line 159, in __call__ Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module Products.PythonScripts.PythonScript, line 323, in _exec Module None, line 19, in pag_edit - - Line 19 Module Products.CMFDefault.Document, line 192, in edit Module Products.CMFCore.CMFCatalogAware, line 69, in reindexObject Module Products.CMFCore.CatalogTool, line 262, in reindexObject Module Products.CMFCore.CatalogTool, line 235, in catalog_object Module Products.ZCatalog.ZCatalog, line 528, in catalog_object Module Products.ZCatalog.Catalog, line 381, in catalogObject Module Products.PluginIndexes.common.UnIndex, line 240, in index_object Module Products.PluginIndexes.KeywordIndex.KeywordIndex, line 61, in _index_object Module Products.PluginIndexes.KeywordIndex.KeywordIndex, line 94, in _get_object_keywords Module Products.CMFCore.CatalogTool, line 63, in allowedRolesAndUsers THE FOLLOWING ERROR SHOULD BE ON LINE 216 NOW, BUT HASN'T MOVED FROM THE ORIGINAL. Module Products.CMFCore.utils, line 215, in _mergedLocalRoles TypeError: can only concatenate tuple (not "list") to tuple ___ 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] Newbie-question
hi all, I have specific folder name "art" in Zope in which i installed a user folder, and a user with "manager role". now i want anaonymous user to access i.e view the website ubeneath the folder "art". Therefore i granted "View Permission" to the "Anonymous Role" at the folder level "art", but that doesn't work. Then i came to the conclusion to grant that Permission at root level. But that doesn't work too. So my question is: What i have to do if: 1. i want only a manager user acces to the ZMI beneath the folder "art" 2. grant anonymous user acces to view the "generated pages" beneath this folder Thanks in advance Thomas Adams ___ 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 )
Re: [Zope] Newbie Question
--On 24. September 2006 10:49:12 -0500 Perry Smith <[EMAIL PROTECTED]> wrote: Is it possible to have the same host running ZOPE 2 and ZOPE 3? I would like to put both on a Mac OS X server. I have Apache 2.2 running on it and PostgreSQL version 8.1.3 running my existing software. I'd like to add zwiki which uses ZOPE 2. And then add ZOPE 3 so that I can start developing a new application. Can all three of these coexist on the same machine? Are there any suggested do's and don'ts to follow in such an arrangement? You can use configure --prefix=/path/to/dir to install (at least Zope 2) into a custom location. This might also work for Zope 3. In addition you must adjust the ports in etc/zope.conf (for Zope 2) in order to run multiple Zope instances on different ports. -aj pgpD86nJBoM8A.pgp Description: PGP signature ___ 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] newbie question: variables
As I am new to both zope and python i am not quite sure how to phrase this question so I'll explain my example hoping this helps. I have created some simple zclasses to add,edit delete customer,jobs, product etc objects I'd like to be able to store and use the "username" captured in a simple login/password DTML method let's say it is a customers name that i capture in the initial login screen. How/where do I store this so that in some other methods i can retrieive its value for use in iteration. i.e. give me all the jobs for this customer only apologies for the lack of clarity. thanks to all who have contributed to zope brad ___ 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] Newbie Question,
CURTIS David wrote: > I wish to use use the date of a database file in my dynamic html code. For example, >this database was last updated on 06/06/2000. I suppose that there must be a dynamic >html tag that zope uses. What could it be? I looked at all the documentation and >have yet to discover it.Any help is apprechiated. ...obviously... :( This will give you the time your current object was last modified. Why has this not been renamed to something sensible? We lost PrincipiaSearchSource a while back, I hope this goes the same way ;-) cheers, Chris ___ 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] newbie question
Alexander N Gould wrote: > > Now that I've set up some virtual hosts off my zserver, I have another > question. These sites (each in a folder in the zope DB) share a lot of > data in the form of some custom zobjects representing contacts, calendar > items, and posts to discussion boards. If I put these objects in folders > on the root level, how do I access them from dtml methods somewhere else? > Or am I going about this all wrong? A revamped "transparent folder" will allow you to make global objects more easily sometime in the near future (after 2.2 release) ethan mindlace fremen Zopatista Community Liason ___ 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] newbie question
Hi Kathy, > Error Type: SyntaxError > > Error Value: invalid syntax > > Troubleshooting Suggestions It looks like your addEntry.py file has some syntax mistakes in it (think mis-spelled, badly indented or otherwise defective python ;-) Try comparing it with what it should be and see if the problem goes away when you correct any mistakes. cheers, Chris PS: Please post only plain text to this list (Plain Text as opposed to MIME encoded should be an option on your mail program) as the message you posted came out pretty screwed up on Netscape Communicator ;-) ___ 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] Newbie question
Hi, Brown Fox wrote: > > Hello, > i want to view a dtml-document, calling it as > a variable. > For example: > > > > > try > > > > where this file is called with this string: > test3 > > The result i now get is the id, not the content of the > file! > > Thanks, > Bruno ... Holger ___ 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] newbie question
possibly not the cleanest way of doing it, but this ought to do what you want.. 1000 5000 .. etc.. and This is not much! This is ok! -- Geir Bækholt web-developer/designer [EMAIL PROTECTED] http://www.funcom.com on Thursday, November 09, 2000 Stephan Goeldi wrote : SG> I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After SG> this, the form action method should reply: SG> - "this is not much" if 1000 was selected, SG> - "this is ok" if 5000 was selected, SG> - "this is very much" if 1 was selected SG> Now my form method looks like this: SG> SG> How many money? SG> SG> 1000 SG> 5000 SG> 1 SG> SG> SG> SG> and the form_action method is this: SG> SG> SG> This is not much! SG> SG> SG> This is ok! SG> SG> SG> This is very much! SG> SG> SG> I am sure that there is an error in my thinking of these tags. SG> TIA SG> -goe- SG> _ SG> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. SG> Share information about yourself, create your own public profile at SG> http://profiles.msn.com. SG> ___ SG> Zope maillist - [EMAIL PROTECTED] SG> http://lists.zope.org/mailman/listinfo/zope SG> ** No cross posts or HTML encoding! ** SG> (Related lists - SG> http://lists.zope.org/mailman/listinfo/zope-announce SG> http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] newbie question
Hallo Stephan you can't iterate over a string! That's working: This is not much! This is ok! This is very much! ___ 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] newbie question
Another thing you can do, not sure if Im using it right, but the effect is good... You must specify a First Name. I have a support call form that is filed and submitted, and after the button is pressed, a seperate validate method is called (can be in any document) which will stop the processing if something isnt there and will show a red error text at the top of the form that still contains the information.] Its nice becuase the info stays there and doesnt take you off to a blank screen with a few words. -- Paz Oratrix Development BV http://www.oratrix.com GRiNS SMIL Editor - Stephan Goeldi wrote: > I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After > this, the form action method should reply: > > - "this is not much" if 1000 was selected, > - "this is ok" if 5000 was selected, > - "this is very much" if 1 was selected > > Now my form method looks like this: > > > How many money? > > 1000 > 5000 > 1 > > > > > and the form_action method is this: > > > > This is not much! > > > This is ok! > > > This is very much! > > > > I am sure that there is an error in my thinking of these tags. > > TIA > -goe- > > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] newbie question
* Stephan Goeldi <[EMAIL PROTECTED]> [001109 16:49]: > > > This is not much! > > > This is ok! > > > This is very much! > > > > I am sure that there is an error in my thinking of these tags. yup :) try This is not much This is OK This is very much This is not 1000, 5000, or 1 the tag iterates over a list, which isn't appropriate here. seb ___ 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] newbie question
HI! > I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After > this, the form action method should reply: > > - "this is not much" if 1000 was selected, > - "this is ok" if 5000 was selected, > - "this is very much" if 1 was selected > > Now my form method looks like this: > > > How many money? > > 1000 > 5000 > 1 > > > > > and the form_action method is this: > > > > This is not much! > > > This is ok! > > > This is very much! > > > > I am sure that there is an error in my thinking of these tags. The is not right. Use dtml-in if you want to iterate over lists. So in your case you should try: This is not much! This is ok! This is very much! (or use in this case) This now makes a string compare as usually form parameters will be passed as strings if you don't tell Zope to do it different. In order to e.g. let it pass integers, you might try in the form: ... Then you can say , etc. More information about this "type casting" feature can be found at http://classic.zope.org:8080/Documentation/Reference/ORB cheers, Christian -- COM.lounge http://comlounge.net/ communication & design [EMAIL PROTECTED] ___ 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] newbie question
Stephan Goeldi writes: > ... > > > > ... > and the form_action method is this: > > "money" will come in as a string value not as a list. It would be a list, if you added a "multiple" to your "select". > This will always be true. It is constant (an expression without variable, having always the same value independent of context). What you mean is: This will be true, if "money" has the value "'1000'" in the current context. Note the '...' around 1000! Without special Zope magic, request variables come in as string values. The '...' indicates a string literal. You want to look at the upcoming Zope book to learn more about the possible Zope magic. Dieter ___ 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] Newbie question(s)
Hi, I have what I'm sure is a very simple question about Zope programming style: I want to count how many objects are contained in the current container object and then do something with that value, but I can't do the bit I need to do at the point of reading the count variable because I am in the wrong namespace. I can't begin a dtml-let because I would need to close dtml-if before dtml-let, which is not allowed. What is the "accepted" way of passing a value into a different scope? Do I have do a REQUEST.set or is there a tidier way? Also I think I read somewhere that you can use the object.subobject or object.property syntax but I never got that to work, what's the catch? One last thing, I sent a couple of mails to the list about problems I had with manage_delObjects. I still haven't got it to work. Since the best way to learn Zope is by example, I wonder if anyone could direct me to a sample piece of code where a container of some sort deletes one of its children subobjects? Thanks very much for your help, Alex == Alex Bowyer IT Contractor, Logica Australasia Tel: +61 2 9202 8130 Fax: +61 2 9922 7466 E-mail : [EMAIL PROTECTED] WWW: http://www.logica.com.au/ == ___ 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] Newbie Question
-- Andy McKay, Developer. ActiveState. - Original Message - From: "Dany Rioux" <[EMAIL PROTECTED]> To: "Zope Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 23, 2000 2:20 PM Subject: [Zope] Newbie Question > Hi everyone, > > Simple newbie question... :) > > I've made a directory called News into which I will put files named > newsXXX. X being a number from 999 to 001. > > What I want to do is to tell zope to put each file into a document. > Now, here is what I figured out. > > ><--- that's where I'm stuck. I don't know how to > iterate through a directory ... I want ALL the newsXXX displayed. > > > > How do I do that? > > TIA > > Dany > > ---.oo0O--O0oo. > > Dany Rioux UnderSoft Inc. > Business > www.dating-reviews.com > [EMAIL PROTECTED] > > Personal > www.drioux.com > [EMAIL PROTECTED] > > ---.o00O---O00o.--- > ___ 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] Newbie Question
Or even: ;-) Chris Andy McKay wrote: > > > > -- > Andy McKay, Developer. > ActiveState. > - Original Message - > From: "Dany Rioux" <[EMAIL PROTECTED]> > To: "Zope Mailing List" <[EMAIL PROTECTED]> > Sent: Thursday, November 23, 2000 2:20 PM > Subject: [Zope] Newbie Question > > > Hi everyone, > > > > Simple newbie question... :) > > > > I've made a directory called News into which I will put files named > > newsXXX. X being a number from 999 to 001. > > > > What I want to do is to tell zope to put each file into a document. > > Now, here is what I figured out. > > > > > ><--- that's where I'm stuck. I don't know how to > > iterate through a directory ... I want ALL the newsXXX displayed. > > > > > > > > How do I do that? > > > > TIA > > > > Dany > > > > ---.oo0O--O0oo. > > > > Dany Rioux UnderSoft Inc. > > Business > > www.dating-reviews.com > > [EMAIL PROTECTED] > > > > Personal > > www.drioux.com > > [EMAIL PROTECTED] > > > > ---.o00O---O00o.--- > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Newbie Question
Or even: if this news thing is a file ;-P -- Andy McKay, Developer. ActiveState. - Original Message - From: "Chris Withers" <[EMAIL PROTECTED]> To: "Andy McKay" <[EMAIL PROTECTED]> Cc: "Dany Rioux" <[EMAIL PROTECTED]>; "Zope Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 23, 2000 2:47 PM Subject: Re: [Zope] Newbie Question > Or even: > > > > ;-) > > Chris > > Andy McKay wrote: > > > > > > > > -- > > Andy McKay, Developer. > > ActiveState. > > - Original Message - > > From: "Dany Rioux" <[EMAIL PROTECTED]> > > To: "Zope Mailing List" <[EMAIL PROTECTED]> > > Sent: Thursday, November 23, 2000 2:20 PM > > Subject: [Zope] Newbie Question > > > > > Hi everyone, > > > > > > Simple newbie question... :) > > > > > > I've made a directory called News into which I will put files named > > > newsXXX. X being a number from 999 to 001. > > > > > > What I want to do is to tell zope to put each file into a document. > > > Now, here is what I figured out. > > > > > > > > ><--- that's where I'm stuck. I don't know how to > > > iterate through a directory ... I want ALL the newsXXX displayed. > > > > > > > > > > > > How do I do that? > > > > > > TIA > > > > > > Dany > > > > > > ---.oo0O--O0oo. > > > > > > Dany Rioux UnderSoft Inc. > > > Business > > > www.dating-reviews.com > > > [EMAIL PROTECTED] > > > > > > Personal > > > www.drioux.com > > > [EMAIL PROTECTED] > > > > > > ---.o00O---O00o.--- > > > > > > > ___ > > Zope maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope 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] Newbie Question
I'm probably just being dumb... :) -- -- This doesn't work. Nothing gets printed. In the News folder is a DTML method called news999. Should it be a DTML document instead for this to work? I tried the three methods you gave me. objectValues, "objectValues()" and "objectValues('[File]')" and even "objectValues('[news999]')" but empty everytime. TIA Dany > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Andy > McKay > Sent: Thursday, November 23, 2000 7:00 PM > To: Chris Withers > Cc: Dany Rioux; Zope Mailing List > Subject: Re: [Zope] Newbie Question > > > Or even: > if this news thing is a file ;-P > > > Or even: > > > > > > > > ;-) > > > > Chris > > > > Andy McKay wrote: > > > > > > > > > > > > -- > > > From: "Dany Rioux" <[EMAIL PROTECTED]> > > > > > > > Hi everyone, > > > > > > > > Simple newbie question... :) > > > > > > > > I've made a directory called News into which I will > put files named > > > > newsXXX. X being a number from 999 to 001. > > > > > > > > What I want to do is to tell zope to put each file > into a document. > > > > Now, here is what I figured out. > > > > > > > > > > > ><--- that's where I'm stuck. I don't > know how to > > > > iterate through a directory ... I want ALL the > newsXXX displayed. > > > > > > > > > > > > > > > > How do I do that? > > > > > > > > TIA > > > > > > > > Dany ___ 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] Newbie Question
> I'm probably just being dumb... :) > > -- > > > > > > > > > > this should work out for you. cu Philipp ___ 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] Newbie Question
Dany: These should work: -or- -or- --Jim Washington Dany Rioux wrote: > > I'm probably just being dumb... :) > > -- > > > > > > > > > > > -- > > This doesn't work. Nothing gets printed. > > In the News folder is a DTML method called news999. Should it be a > DTML document instead for this to work? > > I tried the three methods you gave me. objectValues, "objectValues()" > and "objectValues('[File]')" and even "objectValues('[news999]')" but > empty everytime. > ___ 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] Newbie Question
Dany Rioux wrote: > > I'm probably just being dumb... :) > > -- > > > > > > > > > > > -- > > This doesn't work. Nothing gets printed. > > In the News folder is a DTML method called news999. Should it be a > DTML document instead for this to work? > > I tried the three methods you gave me. objectValues, "objectValues()" > and "objectValues('[File]')" and even "objectValues('[news999]')" but > empty everytime. > > TIA > > Dany > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > > Behalf Of Andy > > McKay > > Sent: Thursday, November 23, 2000 7:00 PM > > To: Chris Withers > > Cc: Dany Rioux; Zope Mailing List > > Subject: Re: [Zope] Newbie Question > > > > > > Or even: > > if this news thing is a file ;-P > > > > > Or even: > > > > > > > > > > > > ;-) > > > > > > Chris > > > > > > Andy McKay wrote: > > > > > > > > > > > > > > > > -- > > > > From: "Dany Rioux" <[EMAIL PROTECTED]> > > > > > > > > > Hi everyone, > > > > > > > > > > Simple newbie question... :) > > > > > > > > > > I've made a directory called News into which I will > > put files named > > > > > newsXXX. X being a number from 999 to 001. > > > > > > > > > > What I want to do is to tell zope to put each file > > into a document. > > > > > Now, here is what I figured out. > > > > > > > > > > > > > > ><--- that's where I'm stuck. I don't > > know how to > > > > > iterate through a directory ... I want ALL the > > newsXXX displayed. > > > > > > > > > > > > > > > > > > > > How do I do that? > > > > > > > > > > TIA > > > > > > > > > > Dany > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Newbie question
On Sat, Apr 22, 2000 at 04:04:58PM +1000, Malcolm Tredinnick wrote: > The syntax you want, if I've understoof the question, is (untested): > > > You need to do it this way because the stuff inside the quotes is a python > expression and hyphens are not permitted in Python variable names. So you use > the magical _ namespace, which contains things like sequence-item as a key. Very nice. Now how do I reference the variable in the_other_dtml_method? I assume it is in the other methods namespace, but what name does it have? -- Greg Green e-mail: [EMAIL PROTECTED] http://www.olywa.net/gpgreen/ ___ 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] Newbie question
Awesome! That did the trick. I'm starting to like this. -- Greg Green e-mail: [EMAIL PROTECTED] http://www.olywa.net/gpgreen/ ___ 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] newbie question
> I modify utils.py, after saving a copy, in order to > obtain diagnostic output. Then I delete utils.pyc, > after saving a copy, in order to force a recompile > (even used compilezpy.py for this a couple of times). > Zope never seems to use the new version. Restart Zope. Python will pick up the changes. Also, if you're modifying security code, make sure you set security-policy-implementation to Python in zope.conf, otherwise you're using the C one, and no matter what changes you make to the Python scripts you won't see any changes. > I suspect that I have a fundamental misunderstanding > of how Zope uses code in the Products directory. > > Is Zope storing all the compiled byte code in the > data.fs file? Is there a way to force Zope to use new > code? No. Refresh the product or restart Zope. > Also, the previous developer removed the Control Panel > putting Plone as the root of everything. How can I > get information that the Control Panel usually > provides? Find a heavy object, find the developer, bring the two together at speed. Repeat until the problem is fixed. yoursite/manage will get you to the control panel. If he's managed to override /manage then you have problems... And the real problem: > TypeError: can only concatenate tuple (not "list") to > tuple Like it says, you're supplying a list, you want a tuple. It looks like you need to update PluginIndexes, I don't know where they come from. -- Phillip Hutchings http://www.sitharus.com/ [EMAIL PROTECTED] / [EMAIL PROTECTED] ___ 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 )
Re: [Zope] newbie question
Thank you Phillip. I modified the zope.conf file as you suggested and did sudo ./zope stop ... usual msg sudo ./zope start ... usual msg Then generated the error. The error log shows the same output as before. Not only should the line number be one higher, I also put a dummy variable name on that line to generate a stupid error msg. How can it not be getting to that code? I've searched for another Zope instance, but found none. Also, you are saying that I probably will never get the Control Panel back on this site with Product Management tools; no Product refresh then, I suppose. I'll have to thank the previous developer, as you suggest! (of course there is no documentation either, arrgh!) If you can think of anything else, I'd appreciated it. Thanks. Barry --- Phillip Hutchings wrote: > > I modify utils.py, after saving a copy, in order > to > > obtain diagnostic output. Then I delete > utils.pyc, > > after saving a copy, in order to force a recompile > > (even used compilezpy.py for this a couple of > times). > > Zope never seems to use the new version. > > Restart Zope. Python will pick up the changes. Also, > if you're > modifying security code, make sure you set > security-policy-implementation to Python in > zope.conf, otherwise > you're using the C one, and no matter what changes > you make to the > Python scripts you won't see any changes. > > > I suspect that I have a fundamental > misunderstanding > > of how Zope uses code in the Products directory. > > > > Is Zope storing all the compiled byte code in the > > data.fs file? Is there a way to force Zope to use > new > > code? > > No. Refresh the product or restart Zope. > > > Also, the previous developer removed the Control > Panel > > putting Plone as the root of everything. How can > I > > get information that the Control Panel usually > > provides? > > Find a heavy object, find the developer, bring the > two together at > speed. Repeat until the problem is fixed. > > yoursite/manage will get you to the control panel. > If he's managed to > override /manage then you have problems... > > And the real problem: > > > TypeError: can only concatenate tuple (not "list") > to > > tuple > > Like it says, you're supplying a list, you want a > tuple. It looks like > you need to update PluginIndexes, I don't know where > they come from. > > > -- > Phillip Hutchings > http://www.sitharus.com/ > [EMAIL PROTECTED] / [EMAIL PROTECTED] > ___ > 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 )
Re: [Zope] newbie question
> Then generated the error. The error log shows the > same output as before. Not only should the line > number be one higher, I also put a dummy variable name > on that line to generate a stupid error msg. > > How can it not be getting to that code? I've searched > for another Zope instance, but found none. This is really odd. It sounds like it could be getting patched somewhere. Try raising exceptions from various points in the method, see if one gets there. > Also, you are saying that I probably will never get > the Control Panel back on this site with Product > Management tools; no Product refresh then, I suppose. > I'll have to thank the previous developer, as you > suggest! (of course there is no documentation either, > arrgh!) > > If you can think of anything else, I'd appreciated it. If the /manage URL has been overridden it's probably possible to fix it. Try going to /manage_workspace, see if that works. Is Zope behind a proxy? It's possible that it's being done with a URL rewrite somewhere. -- Phillip Hutchings http://www.sitharus.com/ [EMAIL PROTECTED] / [EMAIL PROTECTED] ___ 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 )
Re: [Zope] newbie question
Thanks for your help. I really needed another brain to bounce things off of so I can get out of the rut I'm in. You've given me some fresh ideas to try. Thanks. Barry --- Phillip Hutchings wrote: > > Then generated the error. The error log shows the > > same output as before. Not only should the line > > number be one higher, I also put a dummy variable > name > > on that line to generate a stupid error msg. > > > > How can it not be getting to that code? I've > searched > > for another Zope instance, but found none. > > This is really odd. It sounds like it could be > getting patched > somewhere. Try raising exceptions from various > points in the method, > see if one gets there. > > > Also, you are saying that I probably will never > get > > the Control Panel back on this site with Product > > Management tools; no Product refresh then, I > suppose. > > I'll have to thank the previous developer, as you > > suggest! (of course there is no documentation > either, > > arrgh!) > > > > If you can think of anything else, I'd appreciated > it. > > If the /manage URL has been overridden it's probably > possible to fix > it. Try going to /manage_workspace, see if that > works. Is Zope behind > a proxy? It's possible that it's being done with a > URL rewrite > somewhere. > > -- > Phillip Hutchings > http://www.sitharus.com/ > [EMAIL PROTECTED] / [EMAIL PROTECTED] > ___ > 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 )
Re: [Zope] newbie question
Phillip Hutchings wrote: Then generated the error. The error log shows the same output as before. Not only should the line number be one higher, I also put a dummy variable name on that line to generate a stupid error msg. How can it not be getting to that code? I've searched for another Zope instance, but found none. This is really odd. It sounds like it could be getting patched somewhere. Try raising exceptions from various points in the method, see if one gets there. It doesn't look like a monkey patch. Those aren't invisible in tracebacks. Follow the code path higher until you do get some effect. Also, you are saying that I probably will never get the Control Panel back on this site with Product Management tools; no Product refresh then, I suppose. I'll have to thank the previous developer, as you suggest! (of course there is no documentation either, arrgh!) If you can think of anything else, I'd appreciated it. If the /manage URL has been overridden it's probably possible to fix it. Try going to /manage_workspace, see if that works. Is Zope behind a proxy? It's possible that it's being done with a URL rewrite somewhere. I would imagine it's some sort of redirect. I would start with using the IP address: usually this is enough to avoid the redirect. Otherwise, find out how to turn "access rule" off. I think this may be in Zope/doc/SECURIY.txt. I don't think it's possible to really remove the Zope Control Panel. --jcc -- "Building Websites with Plone" http://plonebook.packtpub.com/ ___ 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 )
Re: [Zope] newbie question
> It doesn't look like a monkey patch. Those aren't invisible in tracebacks. > > Follow the code path higher until you do get some effect. I've seen odd things before, but I agree, it isn't likely that it's a monkey patch. Chances are that some product is outdated. > I would imagine it's some sort of redirect. I would start with using the > IP address: usually this is enough to avoid the redirect. Otherwise, > find out how to turn "access rule" off. I think this may be in > Zope/doc/SECURIY.txt. > > I don't think it's possible to really remove the Zope Control Panel. You can't overwrite the manage URL with Zope, it's just not allowed. I suspect there's some external URL rewriting happening here. Either that or the guy was a real PITA and rewrote Zope to work with his pet ideas. -- Phillip Hutchings http://www.sitharus.com/ [EMAIL PROTECTED] / [EMAIL PROTECTED] ___ 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 )
Re: [Zope] newbie question
Barry Drake <[EMAIL PROTECTED]> wrote: > I'm getting an error in CMFCore.utils in the > _mergedLocalRoles function. The error is: > > Exception Type TypeError > Exception Value can only concatenate tuple (not > "list") > to tuple Note, this problem is due to a non-core product somewhere incorrectly managing local roles, and passing them as tuples instead of lists. All the internals of Zope (and here, CMF) assume that __ac_local_roles__ is a dict of string->list. Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com [EMAIL PROTECTED] ___ 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 )
Re: [Zope] Newbie-question
On Thu, Jun 23, 2005 at 08:55:05PM +0200, Thomas Adams wrote: > hi all, > > I have specific folder name "art" in Zope in which i installed a user > folder, and a user > with "manager role". now i want anaonymous user to access i.e view > the website ubeneath the folder "art". Therefore i granted "View > Permission" to the "Anonymous Role" > at the folder level "art", but that doesn't work. Then i came to the > conclusion to grant that > Permission at root level. But that doesn't work too. So my question is: > What i have to do if: > > 1. i want only a manager user acces to the ZMI beneath the folder "art" It should be enough to give only to Manager the permission "View management screens" on that folder. > 2. grant anonymous user acces to view the "generated pages" beneath this > folder "View" and "Access Contents Information" usually do the trick. If not, google for VerboseSecurity - a great add-on product that will help debug security issues. -- Paul Winkler http://www.slinkp.com ___ 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 )
Re: [Zope] Newbie-question
Paul Winkler schrieb: On Thu, Jun 23, 2005 at 08:55:05PM +0200, Thomas Adams wrote: hi all, I have specific folder name "art" in Zope in which i installed a user folder, and a user with "manager role". now i want anaonymous user to access i.e view the website ubeneath the folder "art". Therefore i granted "View Permission" to the "Anonymous Role" at the folder level "art", but that doesn't work. Then i came to the conclusion to grant that Permission at root level. But that doesn't work too. So my question is: What i have to do if: 1. i want only a manager user acces to the ZMI beneath the folder "art" It should be enough to give only to Manager the permission "View management screens" on that folder. 2. grant anonymous user acces to view the "generated pages" beneath this folder "View" and "Access Contents Information" usually do the trick. If not, google for VerboseSecurity - a great add-on product that will help debug security issues. Unfortunately VerboseSecurity seems not to work on Zope 2.7.5-final. I think there are some security issues by my ZCLasses used within the above mentioned folder. Is there any hack to agin more information for security issues or for installing VerboseSecurity on this new Zope version. Thanks in advance Thomas Adams ___ 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 )
Re: [Zope] newbie question: variables
Brad Moulton writes: > I'd like to be able to store and use the "username" > captured in a simple login/password DTML method If you use "basic authentication", then the browser will manage the username and send it on any request. You can access it via "AUTHENTICATED_USER". If your user allows cookies, you can save the username in a cookie. Otherwise, you should look at a session product (FSSession/SQLSession). Dieter ___ 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] Newbie Question (dropdown menu)
I'm trying to fill a combo-box (pardon the vb-centric lingo - I don't know what the things are called - it's a thing) with items selected from a table. I haven't a clue how to do this. I've got the ODBC Connection and SQL Method working, but how do I iterate through the query results to fill a drop-down? Thanks Joel Grimes Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ 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] NewBie question for sqlsession
Hello, I just installed sqlsession 0.2.9 in my NT with zope version 2.1.6, and I had created the table in Gadfly according to the given sql schema. When I try to load the Session into my page, it just work for the first time, after that I got an error like this : Zope Error Zope has encountered an error while publishing this resource. KeyError Sorry, a Zope error occurred. and when I view the source, I got this : Is this cause by the wrong database field name or what ?? Leong Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ 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] Newbie question: User Folder
I'm going through the Zope Content Manager's Guide(on zope.org) and i came across this 'User Folder' section that i have a few questions on. e.g. Let's say we have 4 folders: ZACme/Marketing/Sales/FrontDesk Sally is defined as manager in 'Marketing'. I understand that her role is 'acquired' in Sales and FrontDesk, but not in ZAcme, therefore she would be able to make changes in Sales and FrontDesk folders. My question is, can we 'turn off' this acquired role and do not allow Sally to access Sales(but allow her to access FrontDesk, and Marketing of course)? Or must we assign a different role to her? TIA & regards, firestar __ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup ___ 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] newbie question: user login
I hope this is the right place to ask. Sorry, if it is not. I can login into zope as superuser without any problems, but I cannot login as the user "me" I created (with password "meme"). I have given owner and manager rights to "me". What else do I have to do? Python raises an "Unauthorized" exception. Here's the traceback: Traceback (innermost last): File C:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 162, in publish File C:\Programme\WebSite\lib\python\ZPublisher\BaseRequest.py, line 443, in traverse File C:\Programme\WebSite\lib\python\ZPublisher\HTTPResponse.py, line 563, in unauthorized Unauthorized: (see above) help-appreciated, Peter -- Peter Schneider-Kamp ++47-7388-7331 Herman Krags veg 51-11mailto:[EMAIL PROTECTED] N-7050 Trondheim http://schneider-kamp.de ___ 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] Newbie question: Unhandled requests.
We currently started to run our site using Zope behind Apache using ProxyPass, when testing from the outside it seems that there many (about one-third) of the requests that are not handled by Zope, the browser seems to recieve nothing, (means the browser times out), this behaviour does not depend on the complexity of the document templates, it is an overall phenomenon (including management screens etc...). When pressing reload the things get okay most of the times, but it is annoying.. Any help would be appreciated. thanks in advance. H.Grund. please replay to [EMAIL PROTECTED] ___ 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] Newbie-question on ZCatalog
Hi, I'm trying to build a Catalog with a report table just as the one on http://classic.zope.org:8080/Collector/tableBrowse?cfDescAndTitle=catalog That's a table with document-title, date and the first 30 words of the document-content. My problem: how can I insert the content into the ZSearch report-file? Is there a simple way just like finding out the document-url ( here it is )? Thanks for your help Marc ___ 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] Newbie question : ZopeTime & permissions
Hi, My name is Aaron. I am trying to set up zope with (atleast) three roles : manager, admin, user. I'd like to give the last two the bare minimum Security permissions possible and adding them as needed later on. My problem is that I can't seem to figure out, specifically, which permissions to give a user that will allow them to read ZopeTime(). (see below) For the admin user, I have set the Access content information and View * options globally. I've tried guessing at some others, but there are alot of possible combinations to try so I thought maybe I would just ask. Related, is there a detailed description of the default Security settings? I've checked the mailing lists and the Zope docs and if it's there, I guess I missed it. Thanks, Traceback (innermost last): File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: test) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: test) File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: test) File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: test) File /usr/local/zope.old/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: REQUEST.set('ts', ZopeTime())) (Info: REQUEST) File , line 0, in ? NameError: (see above) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Newbie question(s)
From: Bowyer, Alex >I want to count how many objects are contained in the current container >object and then do something with that value, but I can't do the bit I >need to do at the point of reading the count variable because I am in >the wrong namespace. I would try and do it like this (untested): Regards Max M ___ 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] Newbie question(s)
> >I want to count how many objects are contained in the > current container > >object and then do something with that value, but I can't do > the bit I > >need to do at the point of reading the count variable > because I am in > >the wrong namespace. > > I would try and do it like this (untested): > > > > Regards > > Max M Thanks Max, that is certainly useful in this case. My query is really more general though, that was just an example, I need to know what the generally accepted method is for transferring values through the code (i.e between namespaces) IMHO as far as Zope documentation goes, the thing that is really lacking is a document introducing people to how to program in Zope, explaining the overlaps between Python and Zope/DTML and explaining the different syntaxes for calling variables, methods etc? There are a lot of references on specific functions, methods etc but no general overview. Maybe the forthcoming Zope book will address this better. I am also still looking for example code using manage_delObjects. Thanks, Alex == Alex Bowyer IT Contractor, Logica Australasia Tel: +61 2 9202 8130 Fax: +61 2 9922 7466 E-mail : [EMAIL PROTECTED] WWW: http://www.logica.com.au/ == ___ 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] Newbie question(s)
[Alex Bowyer] | My query is really more general though, that was just an example, I need to | know what the generally accepted method is for transferring values through | the code (i.e between namespaces) Unless I've misunderstood your problem, wouldn't do the trick? (See DTML manual for more info). -Morten ___ 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] Newbie question(s)
From: Bowyer, Alex >My query is really more general though, that was just an example, >I need to know what the generally accepted method is for >transferring values through the code (i.e between namespaces) I do believe that our ugly friend REQUEST.set() is the way to go here. I cannot remember having seen any other way of doing it. I expect that better days will be here with v.2.3 as we will get Python Methods, or whatever they are called. >I am also still looking for example code using manage_delObjects. Sorry I cannot help there. Regards Max M ___ 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] Newbie question(s)
"Bowyer, Alex" wrote: > > Hi, > > I have what I'm sure is a very simple question about Zope programming style: > I want to count how many objects are contained in the current container > object and then do something with that value, but I can't do the bit I need > to do at the point of reading the count variable because I am in the wrong > namespace. > I can't begin a dtml-let because I would need to close dtml-if before > dtml-let, which is not allowed. > > > > > > > > try (untested): > What is the "accepted" way of passing a value into a different scope? Do I > have do a REQUEST.set or is there a tidier way? > Also I think I read somewhere that you can use the object.subobject or > object.property syntax but I never got that to work, what's the catch? note that this is a Python expression and the code between quotes has Python behaviour. > > One last thing, I sent a couple of mails to the list about problems I had > with manage_delObjects. I still haven't got it to work. Since the best way > to learn Zope is by example, I wonder if anyone could direct me to a sample > piece of code where a container of some sort deletes one of its children > subobjects? > > try (untested): .manage_delObjects([id1, id2, ..])"> hth Rik ___ 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] Newbie question: HTTP variables
I'm trying to figure out Zope (on a time crunch, too), and I'm wondering how to do something. How can I access HTTP variables in my DTML code? Specifically, I want to return code specific to the user's browser. I know that HTTP has provisions for determing browser version, are those accessible in DTML and how? If they are not accessible in DTML, is there a workaround (without oodles of javascript)? Another quick question: I see that Zope 2.3 will have "Script" objects. What's the closest I can come in Zope 2.2.5? Thanks, Michael ___ 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] Newbie question: graphics in subdirs
I'm going to rewrite my web site in dtml and am using the latest stable Zope. Well, I should say I'll rewrite it after I get over this infuriating newbie problem I have. :-) ` I'm trying to get Zope to display an image from a subdir. I've whipped up a simple dtml document called "test". Test contains this: This is the Document. Now show a graphic: That references an image file in the root directory called logo.jpg. Everything works, it displays fine. However, I want to keep all of my commonly used image files in a subdirectory called /images. So I create a folder called "images", upload another copy of logo.jpg into it, everything's fine. I change the dtml in the "test" document to be "". And it doesn't work, giving me an error message of: Error Type: KeyError Error Value: /images/logo.jpg Looking through the docs and tutorials I can't find anything on this -- and I know it's mindlessly simple. Can someone whack me with a clue-bat? TIA. -- Regards,| Debian GNU/ __ o http://www.debian.org . |/ / _ _ _ _ _ __ __ Randy | / /__ / / / \// //_// \ \/ / ([EMAIL PROTECTED]) | // /_/ /_/\/ /___/ /_/\_\ http://www.golgotha.net | because lockups should only be for convicts. ___ 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] Newbie Question (dropdown menu)
Hi, Joel Just displaying the list in a : If "whatever" already has a value and you want that selected: selected > the tags are apparently optional. hth -- Jim Washington joel grimes wrote: > > I'm trying to fill a combo-box (pardon the vb-centric lingo - I don't know > what the things are called - it's a thing) with items > selected from a table. I haven't a clue how to do this. I've got the ODBC > Connection and SQL Method working, but how do I iterate through the query > results to fill a drop-down? > > Thanks > > Joel Grimes ___ 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] Newbie Question (dropdown menu)
This is my answer to another seeker's question. It should also answer yours. This code assumes that the variable customerid on the form contains a value that matches up with customerid in the query custcompanysearch ___ selected> __ Jim Sanford . Database Engineer / \ / Accelerated Technology, Inc. / / 720 Oak Circle Drive East / / \Mobile, AL 36609 / / \ Voice: 334-661-5770 fax: 334-661-5788 / \ E-Mail: [EMAIL PROTECTED] Web: http://www.atinucleus.com Nucleus. All You NEED in an RTOS. Royalty Free __ - Original Message - From: joel grimes <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 21, 2000 10:51 AM Subject: [Zope] Newbie Question (dropdown menu) I'm trying to fill a combo-box (pardon the vb-centric lingo - I don't know what the things are called - it's a thing) with items selected from a table. I haven't a clue how to do this. I've got the ODBC Connection and SQL Method working, but how do I iterate through the query results to fill a drop-down? Thanks Joel Grimes Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Newbie question on page counters
I'm in the process of learning Zope hacking, and I'm having a really hard time getting a page counter to work. It isn't even that page counters are all that important to me, it's that I feel that if I can't even do something this simple, what hope do I have doing something really hard? Here's what I've done. (1) Under "Properties" I've created two properties (both ints) counter_starting_value, which I've set to 11 (arbitrarily) counter_value, which I've set to 0 (2) I then created a DTML method. I spent some time pouring through the DTML Reference, but I really didn't find a lot on how to modify variables. Here's what I tried: This didn't work. The error message reported that the syntax in the first (and probably the second, but I never got past the first) dtml-let command was wrong. I also tried things like # got a syntax value for dtml-var here #same problem here. Is there an easy way to do this? Thanks in advance, Rick -- Richard P. Muller, Ph.D. [EMAIL PROTECTED] http://www.wag.caltech.edu/home/rpm ___ 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] Newbie question: referring to documents
My site has a number of DTML Document objects which simply redirect the user to another site. These are all created automatically as clones of each other. The text of the document is simply and dest is a property automatically set on creation. I need to provide a simple form to allow users to edit the value of this property, so I have to retrieve the current value of the property. However, whenever I try to get hold of this with anything like (objId is the id of the document) it simply redirects the user immediately to the site named by dest. How do I just get the property value as a string? David Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ 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] Newbie Question (Content Manager Tutorial)
Hi All, I decided today was learn Zope Day. I expect to be pounding the list with some newbie questions. I installed Zope 2.2.0 on a Win 98 machine. Seems to work fine. I dloaded the Content Manager Guide and started working through the tutorial. Went to create a folder as instructed. Id: News Title: The ZAcme News X Create public interface X Create user folder Below is what I got. What am I doing wrong? Thanks All Mark Pappas Zope Error Zope has encountered an error while publishing this resource. Error Type: SuperCannotOwn Error Value: Objects cannot be owned by the superuser Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Program Files\WebSite\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Program Files\WebSite\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_addFolder) File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_addFolder) File C:\Program Files\WebSite\lib\python\OFS\Folder.py, line 116, in manage_addFolder File C:\Program Files\WebSite\lib\python\OFS\ObjectManager.py, line 249, in _setObject (Object: ApplicationDefaultPermissions) File C:\Program Files\WebSite\lib\python\AccessControl\Owned.py, line 271, in manage_fixupOwnershipAfterAdd (Object: ElementWithAttributes) SuperCannotOwn: (see above) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] XML and Zope newbie question...
Hi All, I am just getting started in XML and am trying to figure out how it works with Zope. I would like to be able to post some data to Zope in XML format and have Zope parse the data into Zope objects. Is this possible? It seems like I should be able to create the Zclasses and, when Zope receives the post, have Zope automagically create the necessary objects from my classes. Any input on how to do this or pointers to a better way would be fantastic. Please respond to me directly as I am not currently able to handle the list volume. Thanks, Eric. ___ 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] Newbie question : ZopeTime & permissions
Aaron, you left out the error. What was it... On Fri, 6 Oct 2000, Aaron Straup Cope wrote: > Hi, > > My name is Aaron. > > I am trying to set up zope with (atleast) three roles : manager, admin, > user. > > I'd like to give the last two the bare minimum Security permissions > possible and adding them as needed later on. > > My problem is that I can't seem to figure out, specifically, which > permissions to give a user that will allow them to read ZopeTime(). > > (see below) > > For the admin user, I have set the Access content information and View * > options globally. I've tried guessing at some others, but there are alot > of possible combinations to try so I thought maybe I would just ask. > > Related, is there a detailed description of the default Security > settings? I've checked the mailing lists and the Zope docs and if it's > there, I guess I missed it. > > Thanks, > > > > > > > Traceback (innermost last): > File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in > publish_module > File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in > publish > File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in > zpublisher_exception_hook > (Object: Traversable) > File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in > publish > File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in > mapply > (Object: test) > File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in > call_object > (Object: test) > File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in > __call__ > (Object: test) > File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line > 528, in __call__ > (Object: test) > File /usr/local/zope.old/lib/python/DocumentTemplate/DT_Util.py, line > 337, in eval > (Object: REQUEST.set('ts', ZopeTime())) > (Info: REQUEST) > File , line 0, in ? > NameError: (see above) > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope 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] Newbie question : ZopeTime & permissions
Doh! Sorry. Error Type: KeyError Error Value: ZopeTime On Fri, 6 Oct 2000, knight wrote: > Aaron, you left out the error. What was it... > > On Fri, 6 Oct 2000, Aaron Straup Cope wrote: > > > Hi, > > > > My name is Aaron. > > > > I am trying to set up zope with (atleast) three roles : manager, admin, > > user. > > > > I'd like to give the last two the bare minimum Security permissions > > possible and adding them as needed later on. > > > > My problem is that I can't seem to figure out, specifically, which > > permissions to give a user that will allow them to read ZopeTime(). > > > > (see below) > > > > For the admin user, I have set the Access content information and View * > > options globally. I've tried guessing at some others, but there are alot > > of possible combinations to try so I thought maybe I would just ask. > > > > Related, is there a detailed description of the default Security > > settings? I've checked the mailing lists and the Zope docs and if it's > > there, I guess I missed it. > > > > Thanks, > > > > > > > > > > > > > > Traceback (innermost last): > > File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in > > publish_module > > File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in > > publish > > File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in > > zpublisher_exception_hook > > (Object: Traversable) > > File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in > > publish > > File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in > > mapply > > (Object: test) > > File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in > > call_object > > (Object: test) > > File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in > > __call__ > > (Object: test) > > File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line > > 528, in __call__ > > (Object: test) > > File /usr/local/zope.old/lib/python/DocumentTemplate/DT_Util.py, line > > 337, in eval > > (Object: REQUEST.set('ts', ZopeTime())) > > (Info: REQUEST) > > File , line 0, in ? > > NameError: (see above) > > > > > > ___ > > Zope maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > > > > ___ Zope 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] Newbie question : ZopeTime & permissions
Aaron Straup Cope writes: > My problem is that I can't seem to figure out, specifically, which > permissions to give a user that will allow them to read ZopeTime(). Strange... "DateTime.DateTime" objects (and therefore "ZopeTime") are explicitely unprotected (and can be used by everyone). I tried your example as "Anonymous" (Zope 2.2.2) and it worked as expected (i.e. no NameError). Dieter ___ 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] Newbie question : ZopeTime & permissions
Yes, it was a misunderstanding regarding basic user permissions and the Anonymous role on my part. I did not want to allow the Anonymous role *any* permissions, and the site I am working in is contained in a folder beneath the root Zope folder. The problem was that I had disabled the "Access contents information" privilege for the Anonymous user (whose permissions I forgot are inherited by all other users) at the root level, thus preventing Joe User from being able to access internals(?) like ZopeTime even if [it] had permissions at a sub-directory level. If I've got it wrong, I would be grateful if someone would correct me. Otherwise, I hope that helps other newbies who find themselves in a similar situation. On Sun, 8 Oct 2000, Dieter Maurer wrote: > Aaron Straup Cope writes: > > My problem is that I can't seem to figure out, specifically, which > > permissions to give a user that will allow them to read ZopeTime(). > Strange... > > "DateTime.DateTime" objects (and therefore "ZopeTime") are > explicitely unprotected (and can be used by everyone). > > I tried your example as "Anonymous" (Zope 2.2.2) and > it worked as expected (i.e. no NameError). > > > Dieter > ___ 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] Newbie question : ZopeTime & permissions
Aaron Straup Cope writes: > I did not want to allow the Anonymous role *any* permissions, and the > site I am working in is contained in a folder beneath the root Zope > folder. > > The problem was that I had disabled the "Access contents > information" privilege for the Anonymous user (whose permissions I forgot > are inherited by all other users) at the root level, thus preventing Joe > User from being able to access internals(?) like > ZopeTime even if [it] had permissions at a sub-directory level. Sorry, I was wrong, at least partially! The fact, that "ZopeTime" returns an unprotected DateTime object, does of cause not mean that "ZopeTime" itself is unprotected. After your message, I reexamined your problem: * "ZopeTime" is defined in "OFS.Application.Application", i.e. the top level application object. * "ZopeTime" apparently is not protected by an explicit permission (neither mentioned in an "__ac_permissions__" nor is there a "ZopeTime__roles__" attribute nor is there a new SecurityManager assertion about "ZopeTime". As I understand Zope 2.2 security, this should mean "ZopeTime" is inaccessible from DTML. * However, magically, "ZopeTime" is protected by "Access Contents Information". I can not tell you why. Both is astonishable: * that it is accessible by DTML at all * why "Access Contents Information" is required. Apparently, the Zope security still has some hidden magic. Dieter ___ 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] Newbie question : ZopeTime & permissions
access contents information I guess. Aaron Straup Cope wrote: Hi, My name is Aaron. I am trying to set up zope with (atleast) three roles : manager, admin, user. I'd like to give the last two the bare minimum Security permissions possible and adding them as needed later on. My problem is that I can't seem to figure out, specifically, which permissions to give a user that will allow them to read ZopeTime(). (see below) For the admin user, I have set the Access content information and View * options globally. I've tried guessing at some others, but there are alot of possible combinations to try so I thought maybe I would just ask. Related, is there a detailed description of the default Security settings? I've checked the mailing lists and the Zope docs and if it's there, I guess I missed it. Thanks, Traceback (innermost last): File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: test) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: test) File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: test) File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: test) File /usr/local/zope.old/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: REQUEST.set('ts', ZopeTime())) (Info: REQUEST) File , line 0, in ? NameError: (see above) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- Manuel Amador (Rudd-O)
[Zope] newbie question: Redirect from Python?
I want the user to be sent to a particular URL after calling the product's manage_add method. How can I do that? The URL I want is REQUEST['URL3']. I've tried RESPONSE.redirect(REQUEST['URL3']) but that's not it - the RESPONSE doesn't seem to exist here. -- .paul winkler.. slinkP arts: music, sound, illustration, design, etc. web page: http://www.slinkp.com A member of ARMS: http://www.reacharms.com ___ 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] Newbie question: HTTP variables
Dean & Deb Ekstrand wrote: > > I'm trying to figure out Zope (on a time crunch, too), and I'm wondering how > to do something. How can I access HTTP variables in my DTML code? > Specifically, I want to return code specific to the user's browser. I know > that HTTP has provisions for determing browser version, are those accessible > in DTML and how? If they are not accessible in DTML, is there a workaround > (without oodles of javascript)? these variables are part of the REQUEST namespace. Specifically you can do to display the browswer version. Creating conditional code is left as an excersize for the student. If you want to display a complete list of all HTTP REQUEST variables, try this: > Another quick question: I see that Zope 2.3 will have "Script" objects. > What's the closest I can come in Zope 2.2.5? The Python Method product: http://www.zope.org/Members/4am/PythonMethod Or external methods: http://www.zope.org/Documentation/How-To/ExternalMethods HTH, Michael Bernstein ___ 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] pointers in zope (newbie question)
hello, i need to have the same object at different places, more properly, i need to refer an object at different places, in different folders, of my zope application (i use formulator, and i would like that when i modify properties of the "same" field in different forms, all the others are updated) is it possible ? thanks thomas ___ 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] newbie question: case sensitive folder problem
How can I make a folder on my site case - insensitive in regards to access from URLs. If someone types http://mysite.com/bigfolder/ into their browser, I want it to take them to the Bigfolder, but right now, it produces a missing object error. Any hints? Sorry if this is a silly question - I'm just getting started here. I use zope with pcgi on Apache. -- Building highways to reduce traffic is like loosening your belt to reduce obesity ___ 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] Newbie question: graphics in subdirs
+[ Randy Edwards ]- | I'm going to rewrite my web site in dtml and am using the latest stable | Zope. Well, I should say I'll rewrite it after I get over this infuriating | newbie problem I have. :-) | ` | I'm trying to get Zope to display an image from a subdir. I've whipped up a | simple dtml document called "test". Test contains this: | | | | This is the Document. | Now show a graphic: | | | There's more than one way to skin the cat, however:- You have a '.' in your id which means doing stuff like:- are out in any clean way. You can which will also work. You can say; -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ 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] Newbie question: graphics in subdirs
>However, I want to keep all of my commonly used image files in a > subdirectory called /images. So I create a folder called "images", upload > another copy of logo.jpg into it, everything's fine. I change the dtml in > the "test" document to be "". And it doesn't > work, giving me an error message of: > > Error Type: KeyError > Error Value: /images/logo.jpg > >Looking through the docs and tutorials I can't find anything on this -- > and I know it's mindlessly simple. Can someone whack me with a clue-bat? > TIA. 1. Don't use URL separators in dtml expressions. Use dots 2. You shouldn't have used dots in the logo.jpg name as it confuses zope, look below what that gets you ;-): sorry 'bout that (untested, but should work) Rik ___ 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] Newbie question: graphics in subdirs
At 11:35 am -0400 7/6/00, Randy Edwards wrote: > > >This is the Document. >Now show a graphic: > > > > >That references an image file in the root directory called logo.jpg. >Everything works, it displays fine. > >However, I want to keep all of my commonly used image files in a >subdirectory called /images. So I create a folder called "images", upload >another copy of logo.jpg into it, everything's fine. I change the dtml in >the "test" document to be "". And it doesn't >work, giving me an error message of: > try It can get complex quickly though - I'm sure I remember something on thew Zope list about this, I think it was a word of wisdom from Phil Harris... hth tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ 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] Newbie question: graphics in subdirs
eh tone, your using my name in vain again ;) - Original Message - From: "Tony McDonald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Zope List" <[EMAIL PROTECTED]> Sent: 07 June 2000 16:56 Subject: Re: [Zope] Newbie question: graphics in subdirs > At 11:35 am -0400 7/6/00, Randy Edwards wrote: > > > > > >This is the Document. > >Now show a graphic: > > > > > > > > > >That references an image file in the root directory called logo.jpg. > >Everything works, it displays fine. > > > >However, I want to keep all of my commonly used image files in a > >subdirectory called /images. So I create a folder called "images", upload > >another copy of logo.jpg into it, everything's fine. I change the dtml in > >the "test" document to be "". And it doesn't > >work, giving me an error message of: > > > > try > > > > > It can get complex quickly though - I'm sure I remember something on > thew Zope list about this, I think it was a word of wisdom from Phil > Harris... > > hth > tone > -- > Dr Tony McDonald, FMCC, Networked Learning Environments Project > http://nle.ncl.ac.uk/ > The Medical School, Newcastle University Tel: +44 191 222 5888 > Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] [Newbie Question] Pertaining to Search Engines
Is it possible for you to get a site that is built with zope to be found by search engines (other than those that are directory listings, like yahoo.com and dmoz.com)? From what I have seen, I think zope would do what I would like, but I need to know this. From what I have learned so far I doesn't really seen possible. Eddie Mosier ___ 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] Newbie question on Zope and WorldPilot
Hey Zope Meisters I am a newbie who is trying hard to get WorldPilot to run. i think i got most of it to work until it comes to add a WorldPilot Product Instance and no matter what I have tried it will not work. Can someone direct me to a doc or give me help? TIA, -ar Zope is: Zope-2.1.6-solaris-2.6-sparc WorldPilot is 1.0.4 ___ 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] Newbie question about permissions in zclass
Hello everybody ! I'd like to have some explanations about the "define permisions" view and the permission mappings in zclass. Maybe something exists in the zope documentation, but I haven't found anything. Thank you for helping. Nathalie Bernier * Développeur web 03.82.24.00.41 multiThématiques Centre Jean Monnet Longlaville 54400 LONGWY http://multithematiques.com Chaînes thématiques sur câble et satellite * ___ 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] Newbie question on page counters
"Richard P. Muller" wrote: > I'm in the process of learning Zope hacking, and I'm having a really > hard time getting a page counter to work. It isn't even that page > counters are all that important to me, it's that I feel that if I can't > even do something this simple, what hope do I have doing something > really hard? The ZODB is a _really_ bad place to store a page counter, especially on a busy site. Data.fs will grow each time your counter increments. This is because it's a transactional daatbase with undo ability... > Here's what I've done. > (1) Under "Properties" I've created two properties (both ints) > counter_starting_value, which I've set to 11 (arbitrarily) > counter_value, which I've set to 0 Sounds good :-) > > > > > > > > > This didn't work. The error message reported that the syntax in the > first (and probably the second, but I never got past the first) dtml-let > command was wrong. Whoops, just remember this: DTML is not a programming language, it is designed for data presentation and form processing. Or something like that ;-) To do what you want, you probably want something like: Which isn't pretty :S cheers, Chris ___ 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] Newbie question on page counters
Chris Withers wrote: > To do what you want, you probably want something like: > > >"manage_changeProperties(counter_value=getProperty(counter_value,counter_starting_value-1)+1)"> Erk, maybe this: Chris ___ 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] Newbie question on page counters
Chris Withers wrote: > > Chris Withers wrote: > > To do what you want, you probably want something like: > > > > > >"manage_changeProperties(counter_value=getProperty(counter_value,counter_starting_value-1)+1)"> > > Erk, maybe this: > > >"manage_changeProperties(counter_value=getProperty('counter_value',getProperty(counter_starting_value,0)-1)+1)"> > > Chris Words simply cannot express my gratitude. Can you clue me in a bit more on the functions you called. Looks like they are manage_changeProperties(), getProperty(). I'm guessing these are both Python functions. Where are they documented, so I can learn more? You mentioned that (1) DTML is not a programming language, and that (2) ZODB is a bad place to start on Zope programming. By these two points, should I infer that learning how to write external methods in Python *is* a good place? Can you, or someone else on the list, give me a suitable homework assignment for a first Zope programming project? I was toying with the idea of writing a checkbook register in Zope, but I think it might be beyond my capacities right now. Thanks again, Rick -- Richard P. Muller, Ph.D. [EMAIL PROTECTED] http://www.wag.caltech.edu/home/rpm ___ 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] Newbie question on page counters
"Richard P. Muller" wrote: > > >"manage_changeProperties(counter_value=getProperty('counter_value',getProperty(counter_starting_value,0)-1)+1)"> > Words simply cannot express my gratitude. Wow, guess it worked then... that was a bit of luck (I didn't actually test it ;-) > Can you clue me in a bit more > on the functions you called. Looks like they are > manage_changeProperties(), getProperty(). I'm guessing these are both > Python functions. Where are they documented, so I can learn more? They are APIs/Interfaces exposed by Zope for manipulating properties (a notoriously difficult thing to do in Zope :S) See http://www.zope.org/Members/michel/Projects/Interfaces/PropertyManager for the full list. > You mentioned that (1) DTML is not a programming language, A half joke. DTML, IMHO, is not supposed to be a programming language but until Python and Perl methods become freely available, you have little option but to program in it. External Methods can be a real pain (do NOT try using them with Zope versions ;-) > ZODB is a bad place to start on Zope programming. Not quite. My point was that storing highly dynamic data (such as a page counter) in a transactional database like the ZODB's normal FileStorage is a bad idea since you'll use up loads of disk space very quickly... > By these two points, > should I infer that learning how to write external methods in Python > *is* a good place? Er, maybe, but that's not what I'd recommend. > Can you, or someone else on the list, give me a suitable homework > assignment for a first Zope programming project? I was toying with the > idea of writing a checkbook register in Zope, but I think it might be > beyond my capacities right now. My first port of call was the Zope Content Managers Guide (http://www.zope.org/Documentation/Guides/ZCMG) I worked through that to get the basics (The DTML Reference (http://www.zope.org/Documentation/Guides/DTML) can help but is _really_ out of date) Beehive (www.beehive.de) do what is allegedly quite a good guide to ZClasses, which you'll want to know at some point. You should be using Zope 2.2 as well. This has a Tutorial you can go through which may cover the stuff above better (it should certainly be a lot more up to date ;-) as well as a great 'help' button. It should also have all the decent stable API's from http://www.zope.org/Members/michel/Projects/Interfaces documented in it by now. There should also be a Zope Book on its way from O'Reilly which hopefully make the whole thing a lot easier... If I've missed something, I hope someone else will jump in and say so :-) Hope this helps, Chris ___ 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] Newbie question on page counters
Richard, I'd recommend getting the Zope Quick Reference (ZQR) from http://zdp.zope.org (the zope documentation project). I'ts invaluable. Phil [EMAIL PROTECTED] - Original Message - From: Richard P. Muller <[EMAIL PROTECTED]> To: Chris Withers <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, July 27, 2000 11:44 PM Subject: Re: [Zope] Newbie question on page counters > Chris Withers wrote: > > > > Chris Withers wrote: > > > To do what you want, you probably want something like: > > > > > > > > "manage_changeProperties(counter_value=getProperty(counter_value,counter_sta rting_value-1)+1)"> > > > > Erk, maybe this: > > > > > "manage_changeProperties(counter_value=getProperty('counter_value',getProper ty(counter_starting_value,0)-1)+1)"> > > > > Chris > > Words simply cannot express my gratitude. Can you clue me in a bit more > on the functions you called. Looks like they are > manage_changeProperties(), getProperty(). I'm guessing these are both > Python functions. Where are they documented, so I can learn more? > > You mentioned that (1) DTML is not a programming language, and that (2) > ZODB is a bad place to start on Zope programming. By these two points, > should I infer that learning how to write external methods in Python > *is* a good place? > > Can you, or someone else on the list, give me a suitable homework > assignment for a first Zope programming project? I was toying with the > idea of writing a checkbook register in Zope, but I think it might be > beyond my capacities right now. > > Thanks again, > > Rick > -- > Richard P. Muller, Ph.D. > [EMAIL PROTECTED] > http://www.wag.caltech.edu/home/rpm > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Newbie question: referring to documents
David Loeffler writes: > > whenever I try to get hold of this with anything like "_[objId].getProperty(dest)"> (objId is the id of the document) it simply > redirects ... "_[xxx]" executes (calls) the retrieved object, if possible. In your case, execution calls "RESPONSE.redirect". You need "_.getitem(xxx)" instead of "_[xxx]". This only retrieves and does not call the object. Dieter ___ 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] newbie question -- can't delete toplevel folder
I just installed Zope, and tried playing with it a bit. I can create a toplevel folder (in the "Zope" directory), but it then seems to be undeletable. Is this a problem, or is there something special about toplevel folders that I don't know? I can delete any contents I put in the folder with no problem, but not the folder itself. ___ 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] Newbie Question (Content Manager Tutorial)
Darn. Those docs are a little ( ok, a lot...) out of date. They're still useful, but they don't cover a few things. With the advent of Zope 2.2, the first thing you need to do is to create a management user. You cannot use the 'superuser' to manage content. I know this is a little unfamiliar, but, for now, just suspend disbelief and create another user with the 'Manager' role (by visiting the acl_users User Folder and adding a user). Then quit the browser, and log in as the user you created. You'll then be able to follow the cmg. On Sat, 19 Aug 2000, Mark A. Pappas wrote: > Hi All, > I decided today was learn Zope Day. I expect to be pounding the list with > some newbie questions. > > I installed Zope 2.2.0 on a Win 98 machine. Seems to work fine. I dloaded > the Content Manager Guide and started working through the tutorial. Went to > create a folder as instructed. > > Id: News > Title: The ZAcme News > > > X Create public interface > X Create user folder > > Below is what I got. What am I doing wrong? > Thanks All > Mark Pappas > > > Zope Error > Zope has encountered an error while publishing this resource. > > Error Type: SuperCannotOwn > Error Value: Objects cannot be owned by the superuser > > > > > > > Troubleshooting Suggestions > > The URL may be incorrect. > The parameters passed to this resource may be incorrect. > A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer to the HTML > source for this page. > > If the error persists please contact the site maintainer. Thank you for your > patience. > > > > > Traceback (innermost last): > File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 222, > in publish_module > File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 187, > in publish > File C:\Program Files\WebSite\lib\python\Zope\__init__.py, line 221, in > zpublisher_exception_hook > File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 171, > in publish > File C:\Program Files\WebSite\lib\python\ZPublisher\mapply.py, line 160, > in mapply > (Object: manage_addFolder) > File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 112, > in call_object > (Object: manage_addFolder) > File C:\Program Files\WebSite\lib\python\OFS\Folder.py, line 116, in > manage_addFolder > File C:\Program Files\WebSite\lib\python\OFS\ObjectManager.py, line 249, > in _setObject > (Object: ApplicationDefaultPermissions) > File C:\Program Files\WebSite\lib\python\AccessControl\Owned.py, line 271, > in manage_fixupOwnershipAfterAdd > (Object: ElementWithAttributes) > SuperCannotOwn: (see above) > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope 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] Newbie Question (Content Manager Tutorial)
Chris McDonough wrote: > With the advent of Zope 2.2, the first thing you need to do is to create a > management user. You cannot use the 'superuser' to manage content. Can anyone remind me why? T0he problems it's caused, particularly with broswers caching basic auth info, seem to be pretty nasty for newbies (and a few oldbies ;-) cheers, Chris ___ 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] Newbie Question (Content Manager Tutorial)
"Mark A. Pappas" wrote: > I installed Zope 2.2.0 on a Win 98 machine. Seems to work fine. I dloaded > the Content Manager Guide and started working through the tutorial. Went to > create a folder as instructed. > > Below is what I got. What am I doing wrong? > > Error Type: SuperCannotOwn > Error Value: Objects cannot be owned by the superuser > You are working as superuser. While this *did* work up to Zope 2.1.6, since Zope 2.2 the security model was tightened. You must (as superuser) create a user with manage privilege, restart your browser and use that user to create objects. HTH, Jan ___ 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] Newbie Question (Content Manager Tutorial)
See (sneak peek) http://www.zope.org/Members/mcdonc/PDG/6-1-Security.stx, section named "The Superuser". I hope to have this chapter really finished this weekend. On Sat, 19 Aug 2000, Chris Withers wrote: > Chris McDonough wrote: > > With the advent of Zope 2.2, the first thing you need to do is to create a > > management user. You cannot use the 'superuser' to manage content. > > Can anyone remind me why? > > T0he problems it's caused, particularly with broswers caching basic auth > info, seem to be pretty nasty for newbies (and a few oldbies ;-) > > cheers, > > Chris > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Newbie Question (Content Manager Tutorial)
Hi Mark, Mark A. Pappas writes: > I installed Zope 2.2.0 > I dloaded the Content Manager Guide > ... > Zope Error > Zope has encountered an error while publishing this resource. > > Error Type: SuperCannotOwn > Error Value: Objects cannot be owned by the superuser The Content Manager Guide still describes the world before Zope 2.2. For some reason (that I do not understand), DC descided that, starting with Zope 2.2.0, the SuperUser is no longer Super but instead rather limited. He cannot own objects and therefore, he cannot create objects. What you need to do: As SuperUser go to "acl_users". Create a new user with a role of "Manager". Close your browser (all windows!). Recontact Zope (in a fresh browser!) as your newly created Manager. Use this manager, whenever your guide speaks of "SuperUser". Dieter ___ 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] Newbie Question (Content Manager Tutorial)
There is a proposal something like this in the works. > -Original Message- > From: Steve Drees [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 21, 2000 11:11 AM > To: Chris McDonough > Cc: Zope User Maillist > Subject: RE: [Zope] Newbie Question (Content Manager Tutorial) > > > > With the advent of Zope 2.2, the first thing you need to do > is to create a > > management user. You cannot use the 'superuser' to manage > content. I > > know this is a little unfamiliar, but, for now, just > suspend disbelief and > > create another user with the 'Manager' role (by visiting > the acl_users > > User Folder and adding a user). Then quit the browser, and > log in as the > > user you created. You'll then be able to follow the cmg. > > > Couldn't the zope install be modified to prompt for a > 'Manager' username and > password > and then create that account from the outset? > ___ 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] Newbie Question (Content Manager Tutorial)
> With the advent of Zope 2.2, the first thing you need to do is to create a > management user. You cannot use the 'superuser' to manage content. I > know this is a little unfamiliar, but, for now, just suspend disbelief and > create another user with the 'Manager' role (by visiting the acl_users > User Folder and adding a user). Then quit the browser, and log in as the > user you created. You'll then be able to follow the cmg. Couldn't the zope install be modified to prompt for a 'Manager' username and password and then create that account from the outset? ___ 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] Newbie question: FORM processing in Zope.
hi, I am a Perl/CGI programmer, trying out Zope. I am confused right now about HOW TO process FORM variables? and most important thing is how to validate form inputs.(like same thing is best done in PERL using regex) that is, if I have a html having some form variables and a submit button. I click on the submit button. it should call some script..right? My question is how to pass values from one script to another. how is this done in Zope? thanks a lot in advance. regards Amit .--. |o_o | |\_/ | // \ \Amit Redij (| | ) mailto:[EMAIL PROTECTED] /'\_ _/`\ \___)=(___/ ___ 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] newbie question: installing ZSiteMap and ZPhotoAlbum
Hi all, My first posting here, please forgive if this is obvious, cause it isn't to me. I already checked the How-To's and searched the zope-list archives and came up with nothing. I downloaded the two zexp files for ZSiteMap and ZPhotoAlbum, and put them in the import directory. When I try to import them, I get an error and a traceback saying that "this operation isn't support by ZSiteMap" (or ZPhotoAlbum, depending). There are no instructions with either one on how to install them. What do I need to do in order for these to work? This newbie thanks you in advance. -- Tamara Temple <^)~ [EMAIL PROTECTED] Perhaps loving something is the only starting place there is for making your life your own. -- Alice Koller ___ 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] XML and Zope newbie question...
Eric, Take a look at the XMLDocument product, available from Zope.org. It already parses the xml into zope objects (they may not be exactly what you want though), but it may give you a start into what you want. hth Phil [EMAIL PROTECTED] - Original Message - From: "Eric L. Walstad" <[EMAIL PROTECTED]> To: "Zope@Zope. Org" <[EMAIL PROTECTED]> Sent: Thursday, September 07, 2000 7:53 PM Subject: [Zope] XML and Zope newbie question... > Hi All, > > I am just getting started in XML and am trying to figure out how it works > with Zope. I would like to be able to post some data to Zope in XML format > and have Zope parse the data into Zope objects. Is this possible? It seems > like I should be able to create the Zclasses and, when Zope receives the > post, have Zope automagically create the necessary objects from my classes. > > Any input on how to do this or pointers to a better way would be fantastic. > > Please respond to me directly as I am not currently able to handle the list > volume. > > Thanks, > > Eric. > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Newbie Question Fixed but continuing.
Thanks Philipp and Jim, It worked! But... (there's always a but! :) I thought I was clever when I thought about naming my news files news999, news998 etc, thinking it would parse the directory and print the news sorted by their names. So news998 would be printed before news999 etc. It doesn't. :) Now this too is fixed. I just discovered the "sort=" thingie. One thing would sure be helpful, a Guide explaining all the subtags in a tag. Like what can be used in a or and params for each subtag. Because as someone mentioned, searching on zope is a real hassle. It takes a long time, and the search is ORed. So lots of unrelated docs are counted as a hit. Thanks a lot to all the helpers. Dany > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of > Philipp Dunkel > Sent: Friday, November 24, 2000 5:00 PM > To: Zope Mailing List > Subject: Re: [Zope] Newbie Question > > > > > I'm probably just being dumb... :) > > > > -- > > > > > > > > > > > > > > > > > > > > > > > > > this should work out for you. > > cu > > Philipp ___ 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] Newbie Question Fixed but continuing.
Dany Rioux wrote: > > Thanks Philipp and Jim, > > It worked! But... (there's always a but! :) I thought I was clever > when I thought about naming my news files news999, news998 etc, > thinking it would parse the directory and print the news sorted by > their names. So news998 would be printed before news999 etc. It > doesn't. > > :) > > Now this too is fixed. I just discovered the "sort=" thingie. > > One thing would sure be helpful, a Guide explaining all the subtags in > a tag. Like what can be used in a or and params > for each subtag. http://www.zope.org/Members/michel/ZB/AppendixA.html This DTML reference is also included in the Online Help System with Zope 2.4b1 and beyond. -Michel ___ 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 )