Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread David H
Andreas Jung wrote: --On Freitag, 1. April 2005 16:52 Uhr -0500 Jake [EMAIL PROTECTED] wrote: want to use them going forward, but what are the reasons why not to support them as legacy into 3/2.10? To avoid that people use ZClasses in the future :-) -aj

[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

[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

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

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] 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] 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] 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] 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] 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] 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-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] 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] 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] Hiding HTML URL

2005-05-23 Thread David H
Chris Withers wrote: I wish I could impose my ideas on users. I respond to specs. Yes, I will fight the good fight when a spec is silly. If this is coming from a spec, it's very silly, and a total waste of your time... I've even turned down gigs because the client was stubborn and what

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

2005-06-20 Thread David H
Everyone, I think the ZPT tutorials are excellent. Both "Using Page Templates" and "Advanced Page Templates" are worth reading more than once. David Andreas Jung wrote: --On 20. Juni 2005 23:45:34 +0100 John Poltorak [EMAIL PROTECTED] wrote: Does a ZPT tutorial exist

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

[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

[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

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

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

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

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

2005-10-03 Thread David H
Chris Withers wrote: Hi All, I finally got around to putting all my presentations online from the conferences over the last few years. The can now all be found at: http://www.simplistix.co.uk/presentations Have fun and let me know what you think! cheers, Chris Chris, I notice your

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] selected in select lists

2005-10-14 Thread David H
Garry Saddington wrote: Tino Wildenhain wrote: Am Freitag, den 14.10.2005, 20:03 +0100 schrieb Garry Saddington: Chris Withers wrote: Garry Saddington wrote: DTML: select name=groupabbrev dtml-in getpastoralgroups option value=dtml-var thisgroupabbrev dtml-if

[Zope] Linux/unix preferences question

2005-10-22 Thread David H
Hi List, I want to soon move from Windox XP to Linux or Unix (intel/amd) for my Zope projects. Just wondering if users experienced with these can recommend versions (freeBSD?, SuSe?, Red Hat? etc) that plays well with Zope and those to avoid. Thanks, David

Re: [Zope] question about stopping acquisition in VHM sites?

2005-10-27 Thread David H
Gary wrote: On 10/27/05, Chris Withers [EMAIL PROTECTED] wrote: Gary wrote: How do I stop acquisition at the root of my website? If I have two websites in zope, and I set the virtual host mapping to www.sitea.com/websites/SiteA http://www.sitea.com/websites/SiteA

Re: [Zope] help - my zope build exits with compile errors :-(

2005-10-27 Thread David H
Thomas Wolf wrote: Hi, I'm trying to build Zope-2.7.4-0 from source (I can't use a different version because of the releas of Plone we're using.) I ran ./configure --with-python=/usr/local/zope/python/bin/python --prefix=/usr/local/zope and that reported no issues. BTW, I'm using

Re: [Zope] Zope 2.8.4 compilation error

2005-11-15 Thread David H
Gusti Gonzalez wrote: Hi, I am having the following error when compiling Zope: --- /usr/bin/python /infra/portal/Zope-2.8.4-final/setup.py \ build --build-base=/infra/portal/Zope-2.8.4-final/build-base/python-2.3

Re: [Zope] Install Zope

2005-12-07 Thread David H
Harry Forster wrote: I would like to install Zope 2.8.4 on a Suse 9.0 system. Has anyone done this and how did you do it? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! **

Re: [Zope] ZSQL batching with dtml-in

2005-12-08 Thread David H
Ed Colmar wrote: Do ZSQL methods communicate with the dtml-in call and understand the size attribute? for example, in this dtml-in statement: dtml-in SQL_get_large_list size=20 start=query_start /dtml-in Will the database be queried for all results, and only have 20 displayed, or will the

Re: [Zope] Simple User Folder Setup

2005-12-09 Thread David H
Infor Gates wrote: Dear zopist I am having problems in setting up Simple User Folder. Error Message: Error Type: UnconfiguredException Error Value: Addition of users has not been configured I have googled around for an answer. However, there is very little info on it. My

Re: [Zope] Re: live dtml updating?

2005-12-11 Thread David H
Jonathan wrote: This is client side processing (could be done via repetitive calls to the server, but very inefficient), so you want a javascript-type of solution. Not a zope solution. Trying googling 'javascript dynamic lists'... it should get you going in the right direction. Jonathan

Re: [Zope] Re: live dtml updating?

2005-12-11 Thread David H
David H wrote: Jonathan wrote: This is client side processing (could be done via repetitive calls to the server, but very inefficient), so you want a javascript-type of solution. Not a zope solution. Trying googling 'javascript dynamic lists'... it should get you going in the right

Re: [Zope] Simple User Folder Setup

2005-12-12 Thread David H
Infor Gates wrote: Chris Thanks for your email. There is another person I wish to thank. However, I lost his email contact by accident - his advice points me to where to check for the errors. Let me Simple User Folder works. As I googled for some time on this, I noticed there are

Re: [Zope] List within a list - how to use in a page template

2005-12-13 Thread David H
Paul Winkler wrote: On Wed, Dec 14, 2005 at 06:06:21PM +1300, Cameron Beattie wrote: I am trying to get my head around representing a list in a page template. Assume the following list: m [[61282125371L, 1,

Re: [Zope] List within a list - how to use in a page template

2005-12-14 Thread David H
David H wrote: Paul Winkler wrote: On Wed, Dec 14, 2005 at 06:06:21PM +1300, Cameron Beattie wrote: I am trying to get my head around representing a list in a page template. Assume the following list: m

Re: [Zope] sessions in the presence of conflicts

2005-12-14 Thread David H
Dennis Allison wrote: Zope 2.8.4, ZODB 3.4.2 I am still trying to resolve a session variables in the presence of conflicts problem. The observed symptom is that suddenly either some session variables disappear or all session variables disappear. In both cases, Zope has raised a KeyError

Re: [Zope] Unauthorized exception when trying to access a list item

2005-12-14 Thread David H
Cameron Beattie wrote: I am trying to access a value in a list. The script getDIDS_list is passed a list called listoflists: list = listoflists ret = [] tup = (0,1,2) factortup = (1,2) factor = 2 for i in range(len(list)): # 1 == 1 if i in tup: if i in factortup: x = list[i] *

[Zope] zyncer 0.7.0?

2005-12-17 Thread David H
Hi List, I downloaded zsyncer-0.7.0 and am having problems. Its not working for me and it no longer displays prompts for destination password and user name when clicking its edit tab. Anyone else seeing this? More importantly, as a fall-back is there a version (0.6.1?) others

Re: [Zope] zyncer 0.7.0?

2005-12-17 Thread David H
Alan Milligan wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David H wrote: Hi List, I downloaded zsyncer-0.7.0 and am having problems. Its not working for me and it no longer displays prompts for destination password and user name when clicking its edit tab. Anyone

Re: [Zope] Re: [Zope-dev] Re: sessions in the presence of conflicts

2005-12-19 Thread David H
Dennis Allison wrote: Chris McDonough identified a persistence problem with the routine(s) that manage sessions variables. (Thanks Chris) I have put the correction in place which resolved some (but not all) of the problems. There are still problems which are apparently due conflicts in

Re: [Zope] Re: [Zope-dev] Re: sessions in the presence of conflicts

2005-12-19 Thread David H
a downside because one cannot set a _p_changed attribute and so must rely on the assignment paradigm. Perhaps the interface should be in a Product or External Method which is less constrained. Anyhow, David, thanks for the assist. On Mon, 19 Dec 2005, David H wrote: Dennis Allison wrote

Re: [Zope] Change ZSQLMethod connection id

2005-12-23 Thread David H
Andreas Jung wrote: --On 23. Dezember 2005 13:33:08 +0100 Fabio [EMAIL PROTECTED] wrote: Hi! in my zope application I call ZSQLMethods from python script. Is it possible to set connection id property of a ZSQLMethod before call it? How? ZSQLMethod.propertyItems() return only

[Zope] Javascript obfuscator and Zope

2005-12-29 Thread David H
Hi list, I am wondering if anyone is obfuscating JavaScript using a python script or product. I did some googling but nothing cropped up. Seems like a nice idea unless the realities of javascript obfuscation make the exercise pointless. Any thoughts? David

Re: [Zope] Help with Zope Python result object please!

2005-12-30 Thread David H
Alric Aneron wrote: hello, I have a python code that recieves two result objects from two different ZSQL methods. I need to join them (sort of like UNION). I can't do result1+result2, otherwise it raises an exception that the + operator isn't supported. When I try to do this (read below, I

Re: [Zope] Java vs Zope

2006-01-03 Thread David H
Asad Habib wrote: From my experience, Java development has been a lot faster when applications have middle to high level complexity. Since Java is inherently object-oriented, reusability is much easier to achieve then when using Zope. Also, Java has mature development and debugging

Re: [Zope] Javascript obfuscator and Zope

2006-01-04 Thread David H
Jean-Marc Orliaguet wrote: Peter Bengtsson wrote: It's not a Zope product but at least it's python. http://www.issuetrackerproduct.com/Download#slimmer It's basically a javascript whitespace optimiser Compare http://real.issuetrackerproduct.com/tw-sack.js with the original:

Re: [Zope] Change object/role permissions w/ python?

2006-01-05 Thread David H
John Toews wrote: Hi all, I have a need to restrict anonymous access to an object until after a specific action occurs. For example, the View permission by default is restricted to owner and manager, but after a 'release' flag is checked, it is viewable to anyone. I can't seem to find a way

Re: [Zope] Cookie Crumbler

2006-01-06 Thread David H
Dieter Maurer wrote: Infor Gates wrote at 2006-1-4 20:14 -0800: I have a trying time using Cookie Crumbler 1.2 with Zope2.8.4 (windows version). I could NOT figure out how to log out a user. I have simplified to the orginal logged_out form to this: The "Cookie Crumber"

Re: [Zope] Leave the ivory tower now!

2006-01-08 Thread David H
Jonathan wrote: To pour fuel on the flames...   +1 DTML -1 ZPT   Why...   1) For 'quick and dirty' demos and rapid application prototyping DTML does the trick (yes, even including ZClasses), it is fast, easy, reasonably robust and it works!   2) For 'heavy

Re: [Zope] Help me!

2006-01-09 Thread David H
Bruno Grampa wrote: Hello, i'm building a site to sell images (this is the concept, the reality is different...). All the images are in a directory mapped through LocalFS product. For every image i have a record in a SQL table with all the basic informations: author, name of the file, cost.

[Zope] CPU architecture and Zope

2006-01-09 Thread David H
Hi list, Im just wondering what the wisdom is about Zope performance and various CPU types. I'm running Zope on Linux (Ubuntu). I notice that Dell is selling a dual-core Pentium unit. But I have no idea if something like dual core is advantegous to Zope, python execution or one's

Re: [Zope] newbie dtml-in question objectValues

2006-01-10 Thread David H
Alric Aneron wrote: Hello, I am trying to find how to get the relative path of an object. If i do: dtml-in "objectValues('DTML Document')" dtml-var URLPATH0 /dtml-in URLPATH0 does not give me the relative path of the objects interated, but rather the path of the object doing the

Re: [Zope] Re: Question about Zope and security

2006-03-29 Thread David H
Cyrille Bonnet wrote: Hi Terry, thanks for your comment. Stock Zope doesn't use cookie authentication, so you're actually talking about an alternate user folder product (which you don't specify and I don't know that many of them, so I can't really comment much -- except that

Re: [Zope] single sign-on

2006-04-02 Thread David H
robert rottermann wrote: Fernando Martins wrote: Hi, I'm doing single sign-on using Apache+mod_ntlm+FastCGI. Since the last is deprecated, is there any alternative? TIA, Fernando Martins ___ Zope maillist - Zope@zope.org

Re: [Zope] how to include a local html file

2006-04-07 Thread David H
Chris Purves wrote: Hello, How can I include an html file on my local filesystem into a DTML method? Chris, You have asked a two part question. a) how to access your local file system http://sourceforge.net/projects/localfs and b) how to access it in a DTML method Dont know cause I

Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-04-13 Thread David H
Dieter Maurer wrote: manuel spuhler wrote at 2006-4-12 21:40 +0200: ... File "/opt/Zope2.8/lib/python/ZODB/__init__.py", line 21, in ? from persistent import TimeStamp File "/opt/Zope2.8/lib/python/persistent/__init__.py", line 19, in ? from cPersistence import Persistent,

Re: [Zope] REQUEST.form variables order

2006-04-20 Thread David H
Gaute Amundsen wrote: On Thursday 20 April 2006 15:46, Tino Wildenhain wrote: Gaute Amundsen schrieb: ... The order of the form elements that goes into mail headers is ofcourse irelevant. I'ts the rest of the form, you know name, adress, street, etc. that are the

Re: [Zope] Process uploaded text file.

2006-04-26 Thread David H
Jason C. Leach wrote: Hi, Does anyone have an example (URL is fine) on how to processes a text file via a Python script that has been uploaded from a web form? Thanks, Jason. - Jason, Maybe this will help: http://www.zopelabs.com/cookbook/1006887320 David

Re: [Zope] cooked body??

2006-05-10 Thread David H
generated JavaScript - maybe it will work fo you in this case. David H ___ 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

Re: [Zope] Ghost user in Zope 2.7.6 on Win32

2006-06-01 Thread David H
Dale Strickland-Clark wrote: We have a strange case of a user disappearing from the acl_users folder. The user used to be there and has been using the web site for some months but today, she reports that she has lost her permissions. Investigation revealed that her user id had disappeared

Re: [Zope] Templates vs DTML

2006-06-05 Thread David H
Dennis Allison wrote: We've been using DTML but we are at a point where we could move to page templates. We are starting a major restruture and rewrite of much of the system and are debating moving to ZPT. Performance is potentially a major issue. We are using Zope 2.9.X, will eventually

Re: [Zope] Basic Template question : 'truthiness'

2006-06-11 Thread David H
Mark Gibson wrote: I thought I knew how this stuff worked, but this has gotten me banging my head against a wall. I'm trying to evaluate a condition expression, and I'm not getting what I expect when using path, and I get a different result when using python. The following expressions

Re: [Zope] Basic Template question : 'truthiness'

2006-06-11 Thread David H
David H wrote: Mark Gibson wrote: I thought I knew how this stuff worked, but this has gotten me banging my head against a wall. I'm trying to evaluate a condition expression, and I'm not getting what I expect when using path, and I get a different result when using python. The following

Re: [Zope] dictionary from sequence-item

2006-06-19 Thread David H
Alric Aneron wrote: Hello, I am looping through a list of dictionary objects using dtml-in... and within the dtml-in body I have: dtml-var "_.getitem('sequence-item')['titled']" missing="none" Some of the dictionaries in the list don't have 'titled' key so it should replace it with the word

  1   2   >