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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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-dev] Problem with editing dtml in textarea

2004-03-23 Thread J Cameron Cooper
pieter claassen wrote: For some reason if I do the following: textarea name=col1 rows=30 cols=120 dtml-var expr=_.getitem('1_col',0) html_quote/textarea I can edit the html but all dtml is interpreted. It has not been told to do otherwise. I am trying to build a dtml page with which I can edit

Re: [Zope-dev] help

2004-02-24 Thread J Cameron Cooper
Vandana Bajaj wrote: I am a software developer in SuSE I have installed Zope in SUSE. I want to be able to print from a html page to a printer with measurements as per to the html page produced. I wish to know whther printing from a web page is possoble or not. If yes then is it possible to print

Re: [Zope-dev] data migration from zope 2.6.1 to zope 2.7.0-b2

2004-02-06 Thread J Cameron Cooper
altkey wrote: I am fairly new to zope python but I am working to migrate some data/objects from zope 2.6.1 to zope 2.7.0-b2 (and eventually 2.7.0 final. What I am doing is this. (1) get Dublin core metadata + some Dublin core extensions for the objects (2) get pure text

Re: [Zope-dev] Help with ZClasses

2004-01-20 Thread J. Cameron Cooper
Fábio Bruno wrote: Dear Sir or Madame I'm workign with zope ZClasses in zope 2.7.0b.I decided to do the example given to us at this site http://zope.org/Members/dedalu/precosHowto/#top1.I can not do the question 3.1 and 3.2 for the same reason.They tell us to change PrecosFolder_add but when

Re: [Zope-dev] Help with the change of URL and/or port

2004-01-17 Thread J Cameron Cooper
Fábio Bruno wrote: Dear Sir or Madame I'm wrigting because I started to do a plone site in zope.I would lke to know if I can change the url and/or port where the plone site stays.I would like to know how to chenge this path http:\\localhost:8080\Plone. You need a VirtualHostMonster and

Re: [Zope-dev] 2.7 on Windows

2003-12-08 Thread J. Cameron Cooper
Lennart Regebro wrote: I'm having serious trouble in getting HEAD running in Windows. Obviously, configure doesn't work. :-) I found something on zope.org telling me to run python inst\configure.py and in in turn tells me to run nmake build. This builds Zope, but creates no z2.py or runzope.py

Re: [Zope-dev] WebDAV Collection/Resource Chameleon Question

2003-12-08 Thread J. Cameron Cooper
Eric Roby wrote: We are trying to make a 'folderish' (WebDAV Collection) class appear as a WebDAV Resource to WebDAV clients. I won't go into the reasons why we want to do this unless someone is interested. We have made several attempts at this but have been unsuccessful to date. Rather than

[Zope-dev] typo fix

2003-11-26 Thread J. Cameron Cooper
Here's a super-quick bug fix for someone with a Zope development tree. I'm currently trying to decide how one might turn a directive. Zope/skel/etc/zope.conf # If this directive is turned, Zope performs 'product installation' # If this directive is turned on, Zope performs 'product

Re: [Zope-dev] dir()

2003-11-06 Thread J Cameron Cooper
I started to program for Zope and have found out, that some commands in Python have been excluded. I miss command dir(). Whether there is any opportunity to replace it? Or how I can find out methods/properties of object? You can get a Python console to the live Zope system using 'zctl.py

Re: [Zope-dev] Javascript variables Form element values and zope

2003-10-03 Thread J. Cameron Cooper
This list is for development of Zope. You want the zope users list at [EMAIL PROTECTED] I have this little form and I would like to know how to persuade dtml or python to access the javascript variables in the set_p function and the element values in the form LOG. This is impossible as you

Re: [Zope-dev] Reading contents of a Page Template

2003-08-18 Thread J Cameron Cooper
I have a requirement to create a SiteMap for my site. My site is dynamically built from the Zope tree structure. Folder and Sub Folders need to appear as a tree structure and need to be sorted by name and date. I have viewed the examples in the Examples folder in ZMI and gotten a general Idea of

Re: [Zope-dev] FileUpload questions

2003-08-14 Thread J Cameron Cooper
I have been looking at the FileUpload class defined in HTTPRequest.py but am still a little confused about how it works. When a form is submitted with an input type=file ..., where are the contents of the uploaded file stored? Is it automatically stored in the ZODB, or is it stored in

Re: [Zope-dev] zpt z-sql?

2003-06-19 Thread J Cameron Cooper
What would be the syntax to call a z-sql (passing one or more parameters) from a zpt? The z-sql would retrieve a single row. Fields from this row to be shown in the zpt. I moved this over to [EMAIL PROTECTED] This list is development *of* Zope, rather than *with* Zope. --jcc

Re: [Zope-dev] Versions: should they die?

2003-06-06 Thread J Cameron Cooper
Sorry if is OT. I'd like ZODB and Zope to support Revisions. That is, historical copies that do not get removed when ZODB is packed. DirectoryStorage allows you to designate classes that should have all their history kept indefinitely. That may not have the flexibility that you need...

Re: [Zope-dev] Documentation

2003-03-12 Thread J Cameron Cooper
I was wanting make my jobs with a good presentation. So I downloaded Zope Website Documentation Tool. I followed the instructions. Unpacked the file, copy it to the import folder, gonne to root folder in Zope and then clicked import button. Unceremoniousness Zope said to me : The object broken

Re: [Zope-dev] PyOpenGL support?

2003-03-11 Thread J Cameron Cooper
I've spent the last couple of days going through the Zope docs, mail archives, and even googling, but I can't find a lot of information on using PyOpenGL with Zope. I've found a message from Anthony Pfrunder, dated July 1999: Within the next few weeks I'll be releasing an extension patch to

Re: [Zope-dev] implementing structured text alternative w/in Zope

2003-03-07 Thread J Cameron Cooper
I'm a programmer but new to Zope. I'm developing a text markup language like Structured Text that better suits my needs outside the Zope/Python world. Would I be able to incorporate it within Zope, i.e., so I could edit the new format in the edit window and have it displayed as HTML by the

Re: [Zope-dev] zope connector

2003-02-19 Thread J Cameron Cooper
Your idea sounds interesting and require more investigation on my part. I need to write application on a remote zope server (via wan, not part of our domain, but an extranet site) to access database tables on my domain. I don't think the other server has ZEO running. (Neither do I, but I can

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] 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

<    1   2