Re: [Zope] Presentations Available

2005-10-03 Thread David H
to google and download new apps just to be able to read them? All best, David Bill Campbell wrote: On Mon, Oct 03, 2005, David H wrote: Chris Withers wrote: Hi All, I finally got around to putting all my presentations online from the conferences over the last few years

Re: [Zope] SQL query in ZSQLMethod

2005-09-24 Thread David H
How do you want to change this notation? What is it you want to do?  Please spend as much time writing a question as someone may in answering it! You do not want logic in your zsql methods. I tend to use python scripts for branching logic, eg # python script request = context.REQUEST if

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread David H
Does this affect Chris's chances in the annual "Zope Cogeniality Awards"? BTW DTML does not suck. I too have written lots of code w/it. I do find ZPT to be preferable - but it does take effort (brain re-wiring) and if your up to your elbows in alligators its just not the time to convert. I

[Zope] Pluggable Brains

2005-08-06 Thread David H
Hi Zope, I've been using pluggable brains in some zSQL classes. I have some questions! a) It seems if I initialize a variable in the __init__ method that variable, say self.callCount = 1 is not retained across calls, eg #python mod res = context.sql.brainySQL() for rec in res:

Re: [Zope] strange getPhysicalRoot behaviour

2005-07-28 Thread David H
Robert-Reinder Nederhoed wrote: Solved. Thanks for the reactions. It works! My current code looks like this now: #force function in '/root/functions' far = context.restrictedTraverse('/').functions.far x = foo() print far(value=x) Of course, it is stupid to make getPhysicalRoot private

Re: [Zope] Forcing Zope transaction commit

2005-07-19 Thread David H
Bakhtiar A Hamid wrote: On 7/19/05, David H [EMAIL PROTECTED] wrote: Hi list, At times (it seems) necessary to force a Zope transaction commit. This might occur between two zSQL calls where the second depends on the first's *SQL* transaction's availability but the first has

[Zope] Forcing Zope transaction commit

2005-07-18 Thread David H
Hi list, At times (it seems) necessary to force a Zope transaction commit. This might occur between two zSQL calls where the second depends on the first's *SQL* transaction's availability but the first has not yet been commited because the *Zope* transaction that includes both zSQL calls

[Zope] numeric formatting

2005-07-16 Thread David H
Hi List, I will have to format numbers based on country and currency types. I understand the locale module can do this. I've done some googling on this but cant seem to get anything definitive. I've read that the local module is not thread-safe but I do not know how this would impact my

Re: [Zope] TAL and Javascript

2005-06-29 Thread David H
Rob, As others have pointed out the approach you indicate will not work. To summarize - Write python script to dynamically create JAVASCRIPT code (you can format javascript arrays of data from your db this way). Then, using TAL load it in, eg head tal:js replace=structure

Re: [Zope] merging the contents of two acl_users folders

2005-06-23 Thread David H
Jim, It can be done, eg loop thru source.acl_users for each user object stuff REQUEST with name,password,confirm (password again) and roles, eg REQUEST.set('name',username), etc context.Destination.acl_users.manage_users('Add',REQUEST,RESPONSE) David In DTML: (via

Re: [Zope] merging the contents of two acl_users folders

2005-06-23 Thread David H
Jim, David H didn't think thru his answer. I do not think you can acquire *passwords* the way I indicated. If so my suggestion will not work. The approach will work otherwise. Maybe someone that knows about this will pitch in. I'm reviewing User.py now... David . David H wrote

Re: [Zope] merging the contents of two acl_users folders

2005-06-23 Thread David H
'],user['roles'] # to test Hope this helps you reach the "tipping point" if you've not already gotten there. David Jim, David H didn't think thru his answer. I do not think you can acquire *passwords* the way I indicated. If so my suggestion will not work. The approach will work

Re: [Zope] Batch folder creation

2005-06-23 Thread David H
an external File where each line contains the name and title, separated by a comma. Guess I need to find out how to get python to read lines from a Zope File object On Wed, Jun 22, 2005 at 10:49:07AM -0700, David H wrote: John Poltorak wrote: Is there any way to create

Re: [Zope] Batch folder creation

2005-06-22 Thread David H
John Poltorak wrote: Is there any way to create folders in batch? I need to create around 50 but don't fancy doing this manually. John, Put this in a python script and test. for n in range(10): container.manage_addFolder(id= str(n)) David

Re: [Zope] ZPT tutorial

2005-06-21 Thread David H
John Poltorak wrote: On Tue, Jun 21, 2005 at 01:24:18AM +0200, Andreas Pakulat wrote: On 20.Jun 2005 - 23:45:34, John Poltorak wrote: Does a ZPT tutorial exist anywhere? How about the 2 chapters in the Zope book? I just don't find this

Re: [Zope] ZPT tutorial

2005-06-21 Thread David H
John, If you spent more time just *learning* Zope and HTML, etc and less time rationalizing your lack of progress everyone would be happy. David John Poltorak wrote: On Tue, Jun 21, 2005 at 03:15:33PM -0400, Paul Winkler wrote: On Tue, Jun 21, 2005 at 07:29:20PM +0100, John

Re: [Zope] Exiting a Loop

2005-06-15 Thread David H
Asad, You want to break out of a DTML loop but there is no loop breaking DTML syntax. Here is another candidate DTML work-around: dtml-in someSequence dtml-if someCondition whatever you do in the loop /dtml-if /dtml-in That way, you can avoid processing past a certain point, just that

Re: [Zope] Working with CSS'

2005-06-07 Thread David H
Tino Wildenhain wrote: Am Montag, den 06.06.2005, 20:51 -0700 schrieb Jason Leach: hi, I have a site developed with CSS. We just translated the site to German. The problem I have is with some embedded graphics. For example: #rightcolumn h1 { background: transparent

Re: [Zope] Working with CSS'

2005-06-06 Thread David H
Jason Leach wrote: hi, I have a site developed with CSS. We just translated the site to German. The problem I have is with some embedded graphics. For example: #rightcolumn h1 { background: transparent url(i/news_title.jpg) no-repeat top left; height: 38px; width:

Re: [Zope] Working with CSS'

2005-06-06 Thread David H
David H wrote: Jason Leach wrote: hi, I have a site developed with CSS. We just translated the site to German. The problem I have is with some embedded graphics. For example: #rightcolumn h1 { background: transparent url(i/news_title.jpg) no-repeat top left; height: 38px

Re: [Zope] How to overlay one column of a page

2005-06-05 Thread David H
Andreas Jung wrote: --On 5. Juni 2005 11:33:42 +0100 John Poltorak [EMAIL PROTECTED] wrote: I need some advice on how to format a page and am not sure how to explain what I want to do but hope someone will figure out what I want to do... Basically I have a home page consisting of a

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-28 Thread David H
Andrew Milton wrote: +---[ Jonathan Cyr ]-- | Damn users, using all this imperfect software. These Kids Today! ;-) | | Easy Big Fella, Whooa. | You must be new here We've all learnt to ignore Chris... He gets easily confused... or maybe he doesn't take his

Re: [Zope] Receiving mails

2005-05-27 Thread David H
Varun Parange wrote: hi, 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... regards, varun Varun, I wrote a spam

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-26 Thread David H
Hugo Ramos wrote: Yellow, I think because of lazy people like me that prefer to use DTML in a fast way than go into a deep Python level to get the job done... I know that, eventually, one of these days I'll have to move on to Python only but until that day comes... DTML and a little bit of

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-26 Thread David H
everybody to take time making the move. Regards Hugo On 5/26/05, David H [EMAIL PROTECTED] wrote: Hugo Ramos wrote: Yellow, I think because of lazy people like me that prefer to use DTML in a fast way than go into a deep Python level to get the job done... I know that, eventually

Re: [Zope] Create a list using DTML.

2005-05-24 Thread David H
Fernando Lujan wrote: Hi, I have a array data type in my DB wich have the following format : {1,2,3} ( ids_test ). Now in my web application, I have a multiple select wich options must be marked as selected if the number is in the array described above. How can I make the above format be

Re: [Zope] Create a list using DTML.

2005-05-24 Thread David H
Fernando Lujan wrote: I think you are close. Change dtml-if ids_test in ids_test to dtml-if "ids_test in ids_test" ? It's working like IN over a string, e.g. the [5,61] will make selected the number 5,6 and 61. dtml-call "REQUEST.set('ids_test', '(' + id_test[1:-1] + ')')"

Re: [Zope] Hiding HTML URL

2005-05-23 Thread David H
Chris, I didn't address any of the points you made, but I've decided to address two: (1) When I asked what was inherently defective about a stable URL you answered: a) It's grim to debug Chris, do you really depend on their users to report URLS to support when things go wrong? I use

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

2005-05-22 Thread David H
KLEIN Stéphane wrote: Hello, What is the equivalent in DTML of ZPT context variable ? Thanks for your help, -- Stéphane ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! **

Re: [Zope] response.redirect not working

2005-05-20 Thread David H
Artras wrote: Hello, I have a web page, a form on it, and on form submit action (to the same page) I do some database actions (update some record, to be correct). The exact code looks like this (filename edit_html): . (1) dtml-if form (2) dtml-call RESPONSE.redirect('index_html')

Re: [Zope] Hiding HTML URL

2005-05-19 Thread David H
Florent Guillaume wrote: David H [EMAIL PROTECTED] wrote: If I might disagree, keeping a stable URL is not, by itself, "user-defeating". For example, user's do not like browser history clutter with subfolders and objects - all from the same a

Re: [Zope] Answer's Time

2005-05-19 Thread David H
Chris McDonough wrote: You may want to use a tool like wget or curl to examine the response from the server for the clicked URL. This could be many things. - C On Thu, 2005-05-19 at 18:37 -0300, Fernando Lujan wrote: I'm having the following problem and wanna know whether it can be associated

Re: [Zope] dollars-and-cents display fails

2005-05-14 Thread David H
Greg Fischer wrote: I guess my quick fix wont work. Well, it fixes the fmt for decimals, but there's more to the issue. Statistical summaries, total, sum dont work either. In my dtml-in I might have this: dtml-var total-decimalcolumn or dtml-var sum-decimalcolumn These dont work with Mysql

Re: [Zope] Hiding HTML URL

2005-05-09 Thread David H
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?? Allen, You can use index_html as a "call dispatcher". Each ZPT, DTML, etc form's action should = "." or

Re: [Zope] Hiding HTML URL

2005-05-09 Thread David H
Jens Vagelpohl wrote: On May 10, 2005, at 00:48, J Cameron Cooper wrote: But please note, this is very hostile web design. I would suggest you re-think your need for such a feature. Hostile is an excellent word for that kind of behavior. It certainly breaks quite a few rules in the user

Re: [Zope] i am completely new to zope

2005-05-05 Thread David H
Paul Winkler wrote: On Thu, May 05, 2005 at 09:27:41AM -0700, Lukman Salifu Nayendi wrote: i am a new user of zope, i really want to learn alot about it and know more please help. http://zopewiki.org/ZopeWiki http://www.plope.com/Books/2_7Edition Also, get some

Re: [Zope] Sending mail with attachments via Python

2005-05-03 Thread David H
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.

Re: [Zope] upload into a ZObject

2005-05-01 Thread David H
u1207440 wrote: Does anyone know how to upload a file or an image into a ZObject? I have created a simple ZClass that makes ZObjects to simulate book information like title, author, etc. I have selected to upload images and files into the ZObject, but I don't have a clue what dtml codes I

Re: [Zope] Sequence sorting module from a Python script

2005-04-24 Thread David H
Leticia Larrosa wrote: Hi all: I want to order a sequence using the Sequence sorting module from a Python script. I have the following code: " seq = [['Bruzon', 'CUB'], ['Anand', 'IND'], ['Kasparov', 'RUS']] def test(oneElem, twoElem): if oneElem[0] == twoElem[0]: return 0

Re: [Zope] how to save page content to a word file.

2005-04-21 Thread David H
prabuddha ray wrote: this again is a simple problem which got tricky for me. I've full page template taking parameters to generate a printable report. Another button on this page is for saving the report to a doc file. How can i do this in a ZPT? prabuddha, If you are using Windows then check

Re: [Zope] index.html in Python Script?

2005-04-21 Thread David H
Erik Myllymaki wrote: How do address a ZPT with a name like index.html in a Python Script? The following: request = container.REQUEST RESPONSE = request.RESPONSE if not request.has_key('next_state'): return container.index.html(context, request) returns: Error Type: AttributeError Error Value:

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

2005-04-13 Thread David H
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] ZPT list is dead... zpt nav question

2005-04-13 Thread David H
David H wrote: 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

[Zope] cvs (versus) svn

2005-04-10 Thread David H
Hi List, What is the status of cvs and svn in terms of which to use to get what software. I found some messages indicating that Zope went to svn about a year ago. Thanks, David ___ Zope maillist - Zope@zope.org

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

2005-04-10 Thread David H
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] Re: Windows compile Zope 2.8?

2005-04-09 Thread David H
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David H wrote: Hi List, I notice that the latest Zope does not have a Windows binary release yet (zope 2.80 alpha 2). I found an old Visual C 6.0 (still in the box!) and wonder if there are instructions somewhere

Re: [Zope] Re: Windows compile Zope 2.8?

2005-04-09 Thread David H
Tim Peters wrote: [David H] Thanks for responding. I tried the suggestion: C:\Zope-2.8.0a2 python.exe setup.py build_ext --inplace and the thing runs for a while (good sign, as visual c 6.0 is compiling things) then I get this: building

Re: [Zope] Dynamic hyperlink with parameter

2005-04-09 Thread David H
srikanth wrote: Hi, I am trying to execute something like: tr tal:repeat=recordset td tal:replace=recordset/fnamea href=eachrecordresult.html?fname='recordset/fname' First Name /a/td td tal:replace=recordset/lname Last Name /td /tr Everything works fine but the

Re: [Zope] Dynamic hyperlink with parameter

2005-04-09 Thread David H
srikanth wrote: Hi, I am trying to execute something like: tr tal:repeat=recordset td tal:replace=recordset/fnamea href=eachrecordresult.html?fname='recordset/fname' First Name /a/td td tal:replace=recordset/lname Last Name /td /tr Everything works fine but the

[Zope] Windows compile Zope 2.8?

2005-04-08 Thread David H
Hi List, I notice that the latest Zope does not have a Windows binary release yet (zope 2.80 alpha 2). I found an old Visual C 6.0 (still in the box!) and wonder if there are instructions somewhere that I can follow to create my own binary on Windows XP? Thanks, David ps - Maybe I'm having a

Re: [Zope] Does anyone care whether we deprecate Your Favourite Part of Zope

2005-04-07 Thread David H
Andrew Milton wrote: I think people on this list need to realize that eventually, the direction of any significantly large Open Source project is hijacked by the relatively small number of people actually doing the work. The reasons for this are many-fold, but, normally come down to a lack of

[Zope] Multiple Browser Id Managers question

2005-04-05 Thread David H
Hi Zope List, The current SESSION Chapter in the Zope Book 2.7 says the following: ... once you've instantiated one browser id manager or if you keep the default browser id manager, you will not be able to instantiate another browser id manager in a place where the new browser id manager can

[Zope] SESSION invalidate method

2005-04-03 Thread David H
Hi List, I am curious about the SESSION.invalidate() method. This code sets a SESSION key and value and then calls SESSION.invalidate(): tal:block define=dummy python:request.SESSION.set('Dodgers','Baseball') / p before invalidate /p p tal:content=python: request.SESSION / tal:block define=dummy

[Zope] Re: SESSION invalidate method

2005-04-03 Thread David H
Sune B. Woeller wrote: hi David, I had the same problem, see this thread with a workaround, and this bug report: http://www.zope.org/Collectors/Zope/1594 regards, Sune B. Woeller David H wrote: Hi List, I am curious about the SESSION.invalidate() method. This code sets a SESSION key and value

<    1   2