Re: [Zope] Problem with zope mailing list

2000-08-31 Thread J. Cameron Cooper
Since longtime now I have a problem with the Zope mailing list : I always receive, the messages from "[EMAIL PROTECTED] " not from the name of the right person (for 97% messages) ? Any idea ? Take a look at the headers of a Zope list message (ctrl-U in Messenger). It correctly states the

Re: [Zope] Adding to an XMLDocument through web forms

2001-01-21 Thread J. Cameron Cooper
I`m looking for a way to give a user the ability to add new data to an XMLDocument through web forms, does anyone have experience of this or would be able to point me in the direction of an example or howto? I tried to do this before, and it never worked, so I'm probably not of all that much

Re: [Zope] script or external method ?

2005-04-04 Thread J Cameron Cooper
[EMAIL PROTECTED] wrote: Hi all, i'm a new user of Zope; i'm studing it since two weeks and i think it's very interesting, 'cause has the same power of j2ee application server but it is much more easy to use! While i was developing my first Zope application i fell into this trouble: i would like

Re: [Zope] Programatically setting advanced settings in zsql methods

2005-04-05 Thread J Cameron Cooper
Jeff Gentry wrote: Hello ... I have a python based product where I am creating a few zsql methods at the time of instantiation. I recently realized that there is the default 1000 row maximum limit on query rows. While this can be changed through the management interface, I am trying to figure

Re: [Zope] object creation in a specific folder...

2005-04-11 Thread J Cameron Cooper
Rushabh Mehta wrote: hello all, this is my first zope app... i am trying to figure out how to create an object in a particular folder via script, when my current object may not be in the right tree... I tried to do a 'change folder' via restrictedTraverse (eg

Re: [Zope] Q: Embedding documentation in Page Templates?

2005-04-12 Thread J Cameron Cooper
Stephen Nesbitt wrote: All: Does anyone know of a way of embedding documentation directly into a page template without using !-- --? In other words is there some construct which tells the rendering engine to simply ignore some content.? I usually use tal:comment replace=nothing comment in

Re: [Zope] ZPT list is dead... zpt nav question

2005-04-14 Thread J Cameron Cooper
Norbert Ray-Goldman wrote: so I am posting this here. I would like my zpt to list only folders in a director - essentially filtering out all other meta_type(s)... can you tell me where I am going wrong with the filtering here ? html head title

Re: [Zope] Some problem about Data.fs

2005-04-14 Thread J Cameron Cooper
Fu-Ming_Tsai wrote: What I meant is that if there are more and more objects, maybe it cause some problem because there are a big Data.fs. Doesn't it cause any problem if there are a big big Data.fs? Not particularly. If you hit the upper limit of your disk or filesystem limits on file

Re: [Zope] Restart button in Control Panel

2005-04-18 Thread J Cameron Cooper
Jake wrote: You are starting it in Debug mode, which means it will not allow for the restart button. /etc/zope.conf (edit debug mode) Also, try running it with: /bin/zopectl start I don't think that debug mode has anything to do with it. Rather, if you're using runzope it's not running in daemon

Re: [Zope] Convert Photos to ExtImage store

2005-04-19 Thread J Cameron Cooper
David Chandek-Stark wrote: I have a few PhotoFolders containing Photos that are stored in the ZODB which I would like to convert to ExtImage storage. Since the number is large enough to make a manual process painful, I'd like to write a conversion script. Seems simple enough in principle, but

Re: [Zope] [python script] problem with AUTHENTICATED_USER

2005-04-20 Thread J Cameron Cooper
[EMAIL PROTECTED] wrote: I have another problem (not in relation with AUTHENTICATED_USER): I would like to know if a special function exists to transform special char in html (like HTMLentities in PHP or escape in javascript) Your Zope online help will help you. For Python code, see the

Re: [Zope] Adding Carriage return/line feed to a text field

2005-04-21 Thread J Cameron Cooper
MCDONNELL, LARRY wrote: I have a form that the field length for that element is set to 65k in the database. Using a textbox, the person can enter their information. I now want to view the text. I can again use a text box but what I want to do is this dtml-var mytext If I use this format,

Re: [Zope] Re: Zeo

2005-04-27 Thread J Cameron Cooper
ken wood wrote: I appreciate all the great tips on the cionfiguration issue. But my main issue is about infrastructure: Which hardware and / or operating systems can be used for a Zope/Zeo system. OS: pretty much any Unixish OS, though on anything but Linux, BSD, and Mac OS X (and maybe

Re: [Zope] Which sound I learn?

2005-04-27 Thread J Cameron Cooper
Ryan Smiderle wrote: I'm planning on making a website with Zope, and plan to do a lot of custumization. Should I learn Zope 2 or Zope 3? If it's from scratch and you don't need any existing third-party Products, then probably Zope 3. Zope 2.8 will include Five, which makes Zope 3-style stuff

Re: [Zope] Generating and Downloading PDF.

2005-04-27 Thread J Cameron Cooper
Fernando Lujan wrote: Hi guys, I'm creating a pdf using reportlab, after the canvas.close() I put the following code inside a External Method: R = self.REQUEST.RESPONSE R.setHeader('content-type', 'application/rtf') R.setHeader('content-length', str(len(data))) R.write(data) But I receive the

Re: [Zope] Generating and Downloading PDF.

2005-04-27 Thread J Cameron Cooper
Fernando Lujan wrote: J Cameron Cooper wrote: The method that contains your code must have at least the first parameter 'self':: def pdfwrite(self): R = self.REQUEST.RESPONSE R.setHeader('content-type', 'application/rtf') R.setHeader('content-length', str(len(data))) R.write

Re: [Zope] Generating and Downloading PDF.

2005-04-27 Thread J Cameron Cooper
Fernando Lujan wrote: J Cameron Cooper wrote: Fernando Lujan wrote: J Cameron Cooper wrote: The method that contains your code must have at least the first parameter 'self':: def pdfwrite(self): R = self.REQUEST.RESPONSE R.setHeader('content-type', 'application/rtf') R.setHeader

Re: [Zope] Exporting Plone objects to Zope CMF

2005-04-29 Thread J Cameron Cooper
Kanealii, Priam Mr KRS wrote: Dear Zope-list, Running with Zope 2.7.5 Plone 2.0.5.. What nice method exists, if any, to export CMF-ish things like documents, events, and news items from Plone to ZopeCMF? (Or, what search terms may have escaped me?) Ideally, I'd like to be able to export folders in

Re: [Zope] Help.. I accidentally deleted admin at the root acl_users

2005-04-30 Thread J Cameron Cooper
u1207440 wrote: Help.. I accidentally deleted admin at the root acl_users I try to create the emergency and inituser using zpasswd.py but when I try to get into ZMI by http://localhost:8080/manage, all zope pass back to me is You are not authorized to access this resource. Username

Re: [Zope] Sending mail with attachments via Python

2005-05-03 Thread J Cameron Cooper
Kirk Strauser wrote: I'm currently trying to replace a bit of DTML with a Python script. Here's what I currently have: dtml-sendmail mailhost=outboundserver To: dtml-var recipientemail From: dtml-var senderemail Subject: dtml-var subject dtml-mime type=text/plain encode=7bit Attention dtml-var

Re: [Zope] Sending mail with attachments via Python

2005-05-03 Thread J Cameron Cooper
Kirk Strauser wrote: On Tuesday 03 May 2005 15:30, J Cameron Cooper wrote: Look at the Python 'email' package: http://python.org/doc/lib/module-email.html You'll need to use External Methods to use this module, or allow access to it so that you can use Python Scripts. That's what I was afraid

Re: [Zope] Sending mail with attachments via Python

2005-05-03 Thread J Cameron Cooper
Kirk Strauser wrote: On Tuesday 03 May 2005 16:09, J Cameron Cooper wrote: So you have it in DTML and want to re-write in Python but you don't want to do it in Python? What's wrong with External Methods? It takes all of about 5 seconds more than a TTW Python script. They're a necessary

Re: [Zope] Getting Properties of Objects in Folders Within

2005-05-04 Thread J Cameron Cooper
KJZZ Webmaster wrote: Max, In response to your post here: http://mail.zope.org/pipermail/zope/2005-February/156369.html I am having some difficulty getting this to work. ### # everything works fine from here object = [] results = [] subbrain = [] query = 'somekeyword' for brain in

Re: [Zope] HTML post processing in Zope

2005-05-04 Thread J Cameron Cooper
Cyrille Bonnet wrote: Hi all, I am trying to perform a post-processing on all HTTP responses, before they get sent to the browsers. I am using Zope 2.7.3 nad Plone 2.0.5. I had a look at the ZServer class: it seems to be the right place, but I don't understand all the code there and I am afraid

Re: [Zope] i am completely new to zope

2005-05-05 Thread J Cameron Cooper
Lukman Salifu Nayendi wrote: i am a new user of zope, i really want to learn alot about it and know more please help. Well, first, how about you look at the page that shows up when you install Zope. I believe it points to the quick-start and some examples. You'll also find online help in your

Re: [Zope] Debugging product init with zopectl?

2005-05-06 Thread J Cameron Cooper
Konrad Rokicki wrote: Hi all, I'm new to Zope, getting started with the minimal project (http://www.zope.org/Members/maxm/HowTo/minimal_01). For whatever reason, minimal doesn't work out of the box. That would be fine except that when I start Zope with zopectl it reports status as fine and the

Re: [Zope] Hiding HTML URL

2005-05-09 Thread J Cameron Cooper
Allen Huang wrote: I just want to show my root URL address whenever people browse into other pages of my site. How do I do this in dtml or python script or external method?? If I understand what you're asking, there's only one good way to do that: place your content in an iframe (or regular

Re: [Zope] formatting tuple to feed to mysql

2005-05-09 Thread J Cameron Cooper
David Siedband wrote: I'm have a tuple that I want to pass to a zSQL query to so I can based on items in the tuple. I get the sequence from a zSQL query that selects a single field, and I'm postprocessing it with the following: dtml-let SelectedIDs=[ai[0] for ai in

Re: [Zope] Underscoring Inaugural Address

2005-05-11 Thread J Cameron Cooper
Dan Pozmanter wrote: Hello there Zopatistas, In my inaugural post, I should like to enquire about getting to a url like so: http://myzopeserver.something.clever/a/path/to/a/file/named/__init__.py Getting to the object __init__.py is difficult (it acts like it doesn't exist.) Is there a

Re: [Zope] How to find out the full URL

2005-05-11 Thread J Cameron Cooper
Hong Yuan wrote: I have a page template, say 'products.pt', which takes traverse_subpath[0] as one of the variables, so e.g. the URL: http://myserver/products/100 will actually call products.pt, which get 100 from the URL and displays it in the template. Now my question is how can I get the

Re: [Zope] How to make a ZPT-based form that calls itself?

2005-05-11 Thread J Cameron Cooper
Ken Winter wrote: Hi Zopers - I'm trying to make a ZPT-based HTML form that: 1. Displays the records in a MySQL 'Person' table; 2. Offers a field for updating this table (in my simple test example, it accepts the Id of a Person to delete); 3. When you push its 'Submit' button, updates the

Re: [Zope] How to make a ZPT-based form that calls itself?

2005-05-11 Thread J Cameron Cooper
Ken Winter wrote: -Original Message- From: J Cameron Cooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 4:27 PM To: [EMAIL PROTECTED] Cc: zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? Ken Winter wrote: Hi Zopers - I'm trying to make a ZPT

Re: [Zope] ack! Zope stopped starting as a Windows Service

2005-05-12 Thread J Cameron Cooper
Chris Curvey wrote: Everything was going so well today, too Zope was installed as part of the Plone 2 installer on Win2K. Has been running fine for several months. I was adding some issues to my collector, and things started hanging up on my system. After reboot, the Zope service did not

Re: [Zope] UserFolder problem

2005-05-16 Thread J Cameron Cooper
Phil Beardmore wrote: Hi All, hope you can help... I have a problem trying to use the LDAPUserFolder product. Basically I have a site named www.myname.com, and the site is Plone powered. I have a normal UserFolder at the top level folder which holds the members who have manager roles etc.

Re: [Zope] upload folder contents

2005-05-17 Thread J Cameron Cooper
garry saddington wrote: If a set of web pages is generated by for instance the output of a Docbook transformation or by the new eXe XHTML editor, is there any way of uploading all the resulting pages into Zope in one go and maintaining the individual file names so that links remain working. I

Re: [Zope] Equivalent of context ZPT variable in DTML ?

2005-05-23 Thread J Cameron Cooper
KLEIN Stéphane wrote: What is the equivalent in DTML of ZPT context variable ? There is no precise equivalent. The current context in DTML is folded into the DTML namespace, along with the request and call parameters and anything else that might be put in the namespace. --jcc --

Re: [Zope] newbie question

2005-05-24 Thread J Cameron Cooper
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

Re: [Zope] Namespace for PythonScript

2005-05-26 Thread J Cameron Cooper
Hong Yuan wrote: If a PythonScript is called from a Page Template, how can it access the variables defined using: tal:define=global ... / in the calling script? Of course, one can pass the variables to the PythonScript explicitly as parameters, but is there any other way to let the

Re: [Zope] LDAPUserFolder at Zope root

2005-05-26 Thread J Cameron Cooper
Oscar Figueiredo wrote: this might be trivial but I just can't find a way to do it. How does one replace the initial UserFolder at Zope root with a LDAPUSerFolder ? I tried the dummy way : delete the acl_users with an intent to instanciate a LDAPUSerFolder afterwards but that locked me out

Re: [Zope] Accessing file object to upload in an external method

2005-05-26 Thread J Cameron Cooper
Simon ALEXANDRE wrote: I'm new in zope and I'm trying to upload a file on zope using localfs. I already done it through a little basic html page + python script. I would like now use it in an external method. Here is the line added in the external method:

Re: [Zope] LDAPUserFolder at Zope root

2005-05-27 Thread J Cameron Cooper
Jens Vagelpohl wrote: On May 26, 2005, at 22:34, J Cameron Cooper wrote: Oscar Figueiredo wrote: this might be trivial but I just can't find a way to do it. How does one replace the initial UserFolder at Zope root with a LDAPUSerFolder ? I tried the dummy way : delete the acl_users

Re: [Zope] Receiving mails

2005-05-27 Thread J Cameron Cooper
Varun Parange wrote: i have downloaded an SMTP server and using it i can send mails with the help of Zope MailHost however i would also like to recieve mails how do i do this. which additional products do i need to download... I recall some people talking about actually turning

Re: [Zope] python question

2005-05-31 Thread J Cameron Cooper
Kate Legere wrote: I may be asking this in the wrong place but I have a tal page where I want to use python to display only the most recent addition to a folder of files. I can sort the folder and return all the files easily with: return sequence.sort(files, (('bobobase_modification_time',

Re: [Zope] Creating links dynamically

2005-05-31 Thread J Cameron Cooper
John Poltorak wrote: On Tue, May 31, 2005 at 07:17:46PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: On Tue, May 31, 2005 at 06:23:11PM +0300, Vital Lobachevsky wrote: Many thanks for your suggestion. Is there a worked example of doing this anywhere? There seem to be quite a few

Re: [Zope] Creating links dynamically

2005-05-31 Thread J Cameron Cooper
John Poltorak wrote: On Tue, May 31, 2005 at 02:51:18PM -0500, J Cameron Cooper wrote: John Poltorak wrote: Well, it's really easy. Create 'linkList' (Python Script) in the folder where you page lives or somewhere higher in folder hierarchy: ## Script (Python) linkList return [ ('http

Re: [Zope] Creating links dynamically

2005-06-01 Thread J Cameron Cooper
John Poltorak wrote: On Tue, May 31, 2005 at 07:17:46PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: On Tue, May 31, 2005 at 06:23:11PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: I want to provide a set of links on a Zope site dynamically. ie don't want to hard code a

Re: [Zope] Re: Creating links dynamically

2005-06-01 Thread J Cameron Cooper
Josef Meile wrote: The CMF's ActionsTool is a prime example for such a link factory. CMFDefaults main_template.pt demonstrates how to iterate over the links generated by portal_actions (the ActionsTool instance in a CMF site). Does that mean creating a CMF site? I'm finding it hard enough

Re: [Zope] Calling a page template from a DTML document

2005-06-03 Thread J Cameron Cooper
John Poltorak wrote: Is there any way of getting a DTML document to use a page template to build part of a page? Some sample code would be handy as an illustration if what I want to do is possible. Just call it exactly like you might do with, well, anything else:: dtml-var

Re: [Zope] recommend a provider

2005-06-06 Thread J Cameron Cooper
Also in the Zope hosting game is iMeme: http://imeme.net/ --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

Re: [Zope] DiskBased Product question

2005-06-07 Thread J Cameron Cooper
Haim Ashkenazi wrote: I'm looking for documentation or simple examples on how to create a disk based product that when I install it, it also adds some third party products. for example, If I select my product from the Add list, it'll create a folder, insert my code into it, but also insert

Re: [Zope] Zope product tree inheritance...

2005-06-07 Thread J Cameron Cooper
Joe Bezier wrote: I'm using Zope 2.7.5 and have various instances running from the same code base - I've edited one of my products and I'd like to test it in one particular instance. Can anyone tell me whether Zope will use the Product in the [instance]/Products folder ahead of the one in the

Re: [Zope] Transferring Zope Settings

2005-06-14 Thread J Cameron Cooper
jlegris wrote: Hello All, I need to transfer Plone/Zope settings from a test instance to a live instance of the Zope server. Aside from transferring the entire Data.fs file or manually copying scripts and replicating configuration settings, is there a simple way to do this? Any advice

Re: [Zope] undo many things

2005-06-14 Thread J Cameron Cooper
Rakotomandimby (R12y) Mihamina wrote: If I want to undo a very early action, I have to also undo all the actions done after the one I want to undo. The problem is that the action to undo is 4 pages earlier, so that I want to one time check all the actions of the 4 last pages. How to manage

Re: [Zope] backing up a running zodb fileStorage

2005-06-14 Thread J Cameron Cooper
gabor wrote: i am trying to backup a zodb filestorage of a running zope. i'm on linux. i've read that you simply make a copy of the Data.fs file.. but what about the modifications/transactions that are happening when i make the copy. will not the database be in a corrupt state then? The

Re: [Zope] Form Variables

2005-06-15 Thread J Cameron Cooper
David Ayres wrote: I've been working around this issue for literally years and finally have the time to seek a real solution. :) I can't find much information, so I'm assuming I'm just taking the wrong approach. Whenever a form is posted, the text fields always show up in the request.form,

Re: [Zope] Exiting a Loop

2005-06-15 Thread J Cameron Cooper
Asad Habib wrote: Is there a way to exit a dtml-in based loop? I searched numerous resources but did not find anything on this topic that relates to the dtml-in tag. Any help would be greatly appreciated. Thanks. There is no such provision. You shouldn't be doing such a thing anyway: that

Re: [Zope] Exiting a Loop

2005-06-15 Thread J Cameron Cooper
Asad Habib wrote: Yes, I should not be doing this but I am using DTML not ZPT and since DTML provides programming functionality and in this case the ability to loop, there should be a way to exit a loop as well. DTML is not a complete programming language; it simply provides some (too-)

Re: [Zope] Form Variables

2005-06-15 Thread J Cameron Cooper
David Ayres wrote: Thanks for the information. I have been pulling my hair out because I have some lengthy forms (wizards) and it can be harrowing at times. :) I think the best solution for my situation is to do a JS/CSS tabbed solution, so it's one form. Are you aware of any limitations on the

Re: [Zope] Python Scripts

2005-06-16 Thread J Cameron Cooper
We have been seeing a number of instances where python scripts fail due to an apparent syntax error but the syntax is correct and simply storing the method restores it to functionality. Anyone else seeing this? How do you mean fail? Often times, if you have an error, save, test, and then

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread J Cameron Cooper
John Poltorak wrote: On Fri, Jun 17, 2005 at 07:09:04PM +0200, Dieter Maurer wrote: Tino Wildenhain wrote at 2005-6-17 10:57 +0200: ... Not at all. You could either have tried it out ;) Or looked at the DTML documentation in the Zope book *wink* ;) dtml-var

Re: [Zope] Passing parameters using DTML

2005-06-17 Thread J Cameron Cooper
John Poltorak wrote: On Fri, Jun 17, 2005 at 05:07:32PM -0400, Paul Winkler wrote: On Fri, Jun 17, 2005 at 08:24:23PM +0100, John Poltorak wrote: Is there also something which explains how to call ZPTs from a DTML object? I'm unable to pick up a passed parameter. This is what I've

Re: [Zope] ZODB error when trying to index object (Input/output error)

2005-06-20 Thread J Cameron Cooper
Felix Ulrich-Oltean wrote: I get the following error when certain new objects are added into a plone site - when archetypes tries to set the UID, it asks the catalog for all unique values of the index UID. I;ve never had input/output errors before from the ZODB. There's definitely enough

Re: [Zope] ZPT tutorial

2005-06-21 Thread J Cameron Cooper
John Poltorak wrote: Does a ZPT tutorial exist anywhere? How about: http://www.zope.org/Documentation/Articles Specifically: http://www.zope.org/Documentation/Articles/ZPT1 http://www.zope.org/Documentation/Articles/ZPT2 There's something odd about the rendering of the second one, but

Re: [Zope] Factory-based Type Information

2005-06-21 Thread J Cameron Cooper
Denis Mishunoff wrote: I have a problem with my product. I use Zope 2.7.5 and Plone 2.0.5. I need to create the copy of Document content-type on my product's install the same way as it is done in portal_types via Factory-based Type Information option of dropdown. I just need to have the copy

Re: [Zope] ZPT code sample

2005-06-21 Thread J Cameron Cooper
John Poltorak wrote: On Tue, Jun 21, 2005 at 06:07:36PM +0200, Andreas Jung wrote: --On 21. Juni 2005 11:58:52 -0400 Fred Drake [EMAIL PROTECTED] wrote: On 6/21/05, John Poltorak [EMAIL PROTECTED] wrote: Is there anything wrong with this ZPT code sample?

Re: [Zope] ZPT tutorial

2005-06-21 Thread J Cameron Cooper
John Poltorak wrote: On Tue, Jun 21, 2005 at 07:04:48PM +0100, Peter Bengtsson wrote: How about the 2 chapters in the Zope book? I just don't find this book very helpful at all. It's written as a manual rather than tutorial and reminds me of a book which explains how to chop down a

Re: [Zope] ZPT contents slot

2005-06-21 Thread J Cameron Cooper
John Poltorak wrote: If I create a macro which defines a slot called 'content', is there any way to have that slot populated by a file with a specific name if it exists in a folder? What I'd like to do is create a structure text file, in each of the folders A B C and have it automatically

Re: [Zope] ZPT contents slot

2005-06-21 Thread J Cameron Cooper
John Poltorak wrote: On Tue, Jun 21, 2005 at 03:16:11PM -0500, J Cameron Cooper wrote: John Poltorak wrote: If I create a macro which defines a slot called 'content', is there any way to have that slot populated by a file with a specific name if it exists in a folder? What I'd like to do

Re: [Zope] ZPT contents slot

2005-06-22 Thread J Cameron Cooper
John Poltorak wrote: On Tue, Jun 21, 2005 at 04:46:55PM -0500, J Cameron Cooper wrote: John Poltorak wrote: Is 'stxfile' the actual filename? I'm not concerned about it being structured initially - just want to see it working in principle with any file containg some text. It's the name

Re: [Zope] Reading lines from a Zope File object

2005-06-23 Thread J Cameron Cooper
John Poltorak wrote: What function is used to read lines from a Zope File object using Python? Is there any example of this anywhere? Doing a search for 'python read zope object' is just too generic to find any python code to do this. You can get the main contents of a File with the 'data'

Re: [Zope] Reading lines from a Zope File object

2005-06-23 Thread J Cameron Cooper
Andy McKay wrote: J Cameron Cooper wrote: You can get the main contents of a File with the 'data' attribute. It returns a string. I think it actually returns an object (for large file support), if you want the data as a string you need to string it. So for small files: datastr = str

Re: [Zope] Tweaking Zope DB- and connection parameters

2005-06-28 Thread J Cameron Cooper
Apache is set to MaxClients 50 Zope.conf has set zserver-threads 5 and zodb_db main cache-size 500 pool-size 25 ... /zodb_db I will note that a cache-size of 500 is ridiculously low. (Even though old versions of Zope shipped configured like this!) It needs to be at least 5000. Frankly,

Re: [Zope] loading an url from a restricted python script

2005-06-28 Thread J Cameron Cooper
santiago wrote: I don't understand still : what I am looking for is a way to read a url whitout having to write an external method. the point is I belived that reading a url in a web application like zope should not require such powerfull tool as external methods or dedicated products.. There

Re: [Zope] Sequencing pages

2005-06-28 Thread J Cameron Cooper
John Poltorak wrote: If I create individual pages for a website as sub folders of a sites main folder, how do I control the sequence of pages if I automatically generate a set of links to all the folders? I presume that under normal circumstances that sequence would be in alphabetical order of

Re: [Zope] Sequencing pages

2005-06-29 Thread J Cameron Cooper
John Poltorak wrote: On Tue, Jun 28, 2005 at 03:45:01PM -0500, J Cameron Cooper wrote: John Poltorak wrote: If I create individual pages for a website as sub folders of a sites main folder, how do I control the sequence of pages if I automatically generate a set of links to all the folders

Re: [Zope] TAL and Javascript

2005-06-29 Thread J Cameron Cooper
Rob Boyd wrote: I'm stuck this, and would appreciate help or pointers. I have a form with 2 selection drop-downs. I want the user's choice of select 1 to drive the options displayed in select 2. When the user makes a selection in select 1, onChange calls a Javascript function that should write

Re: [Zope] TAL and Javascript

2005-06-29 Thread J Cameron Cooper
Rob Boyd wrote: Thanks to all the responders. It gave me some ideas, but alas no luck. To clarify, I am not trying to do everything in one request. Request one generates the page, a user event (selecting an option from a form) fires another request via javascript. I do not see it creating

Re: [Zope] Re: [ZPT] Recursive structures

2005-07-01 Thread J Cameron Cooper
Nikko Wolf wrote: Ian Bicking wrote: I'm surprised this has never come up for me before, but now I want to render a recursive data structure and I'm at a loss how I might do that in ZPT. Or, what the best workaround would be. E.g.: ['a', 'b', ['c', ['d', 'e']]] Becomes: ul lia/li

Re: [Zope] Zope update

2005-07-13 Thread J Cameron Cooper
Josef Burger wrote: Hi, I want to update from Zope 2.7.4 to Zope 2.7.6 What is the easiest way? Unfortunately there is no description of how an update of Zope is done. I'm running Plone on it. I tried to newly install Zope 2.7.6 and then copied the backed-up Data.fs file and the content of

Re: [Zope] Passing a variable to RESPONSE.redirect

2005-07-15 Thread J Cameron Cooper
Asad Habib wrote: Is it possible to pass a variable to RESPONSE.redirect or does the page name have to be a literal string? I was unable to pass in a variable via the REQUEST object (i.e. REQUEST.get('pageName')) or the SESSION attribute of the REQUEST object (i.e.

Re: [Zope] How to upload a file and save it in a physical path

2005-07-15 Thread J Cameron Cooper
Remy Pinsonnault wrote: Maybe it is a basic question but how can I upload a file and save it anywhere on the server's hard drive? I know how to upload a file to zope's database but not how to save it locally... Anyone can help please? There are several products to do this: LocalFS,

Re: [Zope] Python formatting question

2005-07-21 Thread J Cameron Cooper
[EMAIL PROTECTED] wrote: In a Python script, how can I break up a SQL statement over more than one line? For example, to transform #generate the sql statement sql=DELETE FROM tblUsers WHERE user_name LIKE '%' to: #generate the sql statement sql=DELETE FROM tblUsersWHERE user_name

Re: [Zope] ZPyIRC and Zope 2.7

2005-07-21 Thread J Cameron Cooper
David wrote: Hi I installed ZPyIRC version 0.1.3 in Zope 2.7.5 and I get Zope Template Errors on two of the frames when trying to start a chat client. I don't know ZTP very well. (Python is 2.3.5) I was hoping that maybe somebody has fixed the templates for 2.7. Any help very welcome!

Re: [Zope] getting atachments with python - pop3

2005-07-25 Thread J Cameron Cooper
Jonathan Salazar Santos wrote: Hi, im making a email client in python for zope, but a im stopped because i cant find the way to get the attacments with python, do you have a idea how can i do this?, i have studied the email package already but is a little confused. A Python-specific list might

Re: [Zope] product organization

2005-07-27 Thread J Cameron Cooper
Nicholas Wieland wrote: As usual, my question is rather simple :) I'd like to know what are the best practices for product organization - for example I have _tons_ of queries to sqlserver, and my main class is becoming less manageble every time I look at it :/ I like the way SQL integrates in

Re: [Zope] What Maximum age of a cache entry (seconds) means in RAM Cache Manager?

2005-07-30 Thread J Cameron Cooper
Litao Wei wrote: I have read the zope book and zope online help about RAM Cache Manager. But all of them didn't say anything about the parameter What Maximum age of a cache entry (seconds) mean. It looks that this parameter like Cleanup interval (seconds), which zope book explained as The

Re: [Zope] rendering the contents of ..

2005-08-01 Thread J Cameron Cooper
David Bear wrote: I am looking at a couple way of producing a qotd solution. one way is to put quotes in a folder. Then use objectvalues on the folder and randomly select one of the items. I get get the objectid. but I don't know what I use to get the 'content' of the object.. what is the

Re: [Zope] rendering the contents of ..

2005-08-03 Thread J Cameron Cooper
David Bear wrote: On 8/1/05, J Cameron Cooper [EMAIL PROTECTED] wrote: David Bear wrote: I am looking at a couple way of producing a qotd solution. one way is to put quotes in a folder. Then use objectvalues on the folder and randomly select one of the items. I get get the objectid. but I

Re: [Zope] Re: localhost:8080 not found on windows

2005-08-09 Thread J Cameron Cooper
michael nt milne wrote: Ok, thanks. Yes, Apache would be much better to route traffic through. And also it looks like a complete pain to try and route traffic through IIS. That's my understanding. You can either look up the ASP404 hack or use something like

Re: [Zope] Re: dtml-var variable from REQUEST not shown in input tag if it has spaces??

2005-08-12 Thread J Cameron Cooper
Josef Meile wrote: Hi Thomas, When i just use it as dtml-var sSQL everything is ok. When i use it like : input type=text value=dtml-var sSQL, i get everything until the first space. For example from select * from mytable i get select. I'm not sure, but don't you need to enclose it with

Re: [Zope] max 2 levels of indirection?

2005-08-22 Thread J Cameron Cooper
Sean Dunn wrote: I’m running Zope 2.0.7, and I’m having a problem.. Consider me a newbie, as I’ve only been using Zope for a few weeks. After boiling the problem down to a test case, it seemed that I couldn’t have a DTML method call a DTML method which then calls a Python script. But then I

Re: [Zope] SQL Problem

2005-08-25 Thread J Cameron Cooper
Philip Beardmore wrote: I'm having a really annoying SQL problem which I think (or hope) can easily be sorted but I'm not sure how to do it. I have a ZPT which is collecting data in a form - Both text boxes and checkboxes. The form then passes the variables on to a DTML Method which does a few

Re: [Zope] Zope scalabilty and problems

2005-08-31 Thread J Cameron Cooper
Kennamore, Matthew G [NTK] wrote: Here is our situation, we originally launched zope with a small user base in mind and like most IT implementations it got away from us quickly and we have over 1000 users now. We are experiencing huge slowdowns and lots of complaints of performance. Let me

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread J Cameron Cooper
Kirk Strauser wrote: On Friday 09 September 2005 10:25, Paul Winkler wrote: To be honest, I'd expect something a little different, namely that each instance would automatically pull in all the products in the site installation (like [1] and [2] above), but that doesn't seem to be the case. Is

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread J Cameron Cooper
Kirk Strauser wrote: On Friday 09 September 2005 13:56, J Cameron Cooper wrote: I don't know why, either. That simply says that there is a default Products directory ($SOFTWARE_HOME/lib/python/Products), you can't get rid of it, and you shouldn't try to configure it here. The problem I'm

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread J Cameron Cooper
Kirk Strauser wrote: On Friday 09 September 2005 15:37, J Cameron Cooper wrote: Anything in $SOFTWARE_HOME/lib/python/Products is available in any instances that use that SOFTWARE_HOME. You can see this quite easily by looking at the /Control_Panel/Products of an instance with nothing in its

Re: [Zope] Zope scalability / efficiency question

2005-09-20 Thread J Cameron Cooper
mark hellewell wrote: Hi everyone, I've got a question I'd really appreciate some input on. If I'm running perhaps a dozen Zope sites, experiencing anywhere between several hits per second to a lot less, would it potentially be more efficient (decreased latency etc.) to run each site as its own

Re: [Zope] How to show field names from sql query?

2005-09-20 Thread J Cameron Cooper
Thomas Apostolou wrote: Hello all, i use the following to get to show the results from an sql query. What are the expresions to show the field names? table dtml-in expr=TestODBCEM(sysDSN=sysDSN, usr=usr, mypass=mypass, sSQL=sSQL) dtml-if sequence-even tr bgcolor=lightgreen

Re: [Zope] emergency access problems

2005-09-29 Thread J Cameron Cooper
michael nt milne wrote: Hi I appear to be having difficulty logging into the ZMI using the password created on install. I did change some settings to my root login using the Samplex member product etc but didn't change the password, login etc. Anyway I've followed all the instructions in

Re: [Zope] Re: DTML-tree Custom sort

2005-10-05 Thread J Cameron Cooper
Chris Beaven wrote: It's really more a cool way to do lists than if statements :) It's technically list comprehension. Sort of a one-line list transform tool. I recommend reading through some of Dive Into Python (http://diveintopython.org/) for lots more cool hands-on tips on Python

  1   2   >