[Zope] How to prevent the user from going Back to a page???

2001-01-25 Thread Daniel Rusch
All, Has anyone figured out a way to prevent a user from going "Back" to a page once they have passed it. The situation: We have an Order Entry/Billing intranet site where users fill out several pages of data an then submit the information. After the order is submitted we would like to

[Zope] Urgent Help, raise CorruptedTransactionError, message

2000-12-28 Thread Daniel Rusch
When I try to start zope I get the following error. root@capsprodt1:/home/caps/test/zope$ Traceback (innermost last): File "/home/caps/test/zope/z2.py", line 386, in ? exec "import "+MODULE in {} File "string", line 1, in ? File "/home/caps/test/zope/lib/python/Zope/__init__.py", line

Re: [Zope] How to pass parameters to dtml methods in making dtml-call

2000-12-15 Thread Daniel Rusch
I tried your code and it works fine both ways for me, are you sure that para exists in the second scenario. DR Dirksen wrote: Hi, The case is like this: dtml-var "some_dtml_method(_.None, _, para='blablabla')" Works fine. dtml-call "some_dtml_method(_.None, _, para='blablabla')" The

Re: [Zope] Search and replace

2000-11-20 Thread Daniel Rusch
I have been following this thread with mild amusement. Those of you who don't think that there is any need for a search and replace are being, at the least, disingenuous. Have you never needed to replace a dtml var that is on a hundred or more pages with another one, but replace it only on some

Re: [Zope] Sorting 'in'

2000-11-06 Thread Daniel Rusch
If it's a database query sorting with sql first. i.e. ORDER BY X,Y HTH Dan Yvonne Totty wrote: Hi! I need a query sorted by 2-3 different attributes. The 'in' sort only lets me do it by one. Is there a way to get around it? TIA -y ~~~ Yvonne

[Zope] Re: sending query output as an attachment

2000-11-03 Thread Daniel Rusch
This is what we do dtml-sendmail mailhost="MailHost" To:dtml-var to From:dtml-var from Subject: dtml-var subject dtml-mime type=text/plain encode=7bit !--#var comments-- dtml-boundary type="application/pdf; name=jsp-syntax.pdf" disposition="attachment; filename=EquipmentOrder.pdf"

[Zope] Local Time Zone

2000-11-03 Thread Daniel Rusch
Hey all, I know I can get the users language preference like this: dtml-var "REQUEST['HTTP_ACCEPT_LANGUAGE']" The question then is, is there a similar method of getting the users Local Time Zone??? Thanks, Dan ___ Zope maillist - [EMAIL

[Zope] Check for JavaScript:

2000-11-02 Thread Daniel Rusch
Hey all, Is there a way from zope to check to see if a user has Javascript enabled Thanks, Dan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] images in directories

2000-11-02 Thread Daniel Rusch
When you create your image object set the path correctly then your dtml-var image1 should work :) Dan CURTIS David wrote: Hi, I check the archives but could not find an answer. How do you display images that are burried in directories? For example, dtml-var image1 works with the image1

Re: [Zope] Check for JavaScript:

2000-11-02 Thread Daniel Rusch
Advice: client issues should be dealt with on client side. Great I agree completely, except if the client has Java/JavaScript turned off it is pretty darn difficult to have client issues dealt with on client side!! Dan Oleg Broytmann wrote: On Thu, 2 Nov 2000, Daniel Rusch wrote

[Zope] redirect on Authorization

2000-11-02 Thread Daniel Rusch
Is there a way of having all users redirected upon Authorization? Let me explian. We have a very large site and many of Users bookmark pages. This can cause several problems especially if the site layout changes, security changes at different levels and a user bookmarks a result pages that

[Zope] Re: [Image-SIG] Properly integrating PIL, reportlab, and zope

2000-11-01 Thread Daniel Rusch
I have no idea if this will help you. We use PIL, reportlabs and zope to create P.O.'s, to place a logo on the page we use the following line of code: c.drawInlineImage("gclogo_color.gif", .5*inch, 10.*inch,4*inch) where c is created thusly: c =

[Zope] [Fwd: [Zope] Not grocking RESQUEST.set syntax]

2000-10-25 Thread Daniel Rusch
Try: dtml-in MyFavoiteZSQLMethod dtml-call "REQUEST.set('filename', filename)" dtml-call some_other_thing_that_uses_filename /dtml-in This assumes that MyFavoiteZSQLMethod returns the variable filename Dan Noah wrote: I'm still not grocking the syntax for setting REQUEST fields. I

Re: [Zope] Looking for short term Zope contractor

2000-10-24 Thread Daniel Rusch
If you don't find the person(s) you are looking for, let me know. I am an experienced Zope/Python/SQL/HTML/JavaScript/Unix/Windows developer. Additionally, I have an excellent working relationship with two other developers with similar skills. Unfortunately, we are located in Wisconsin. Dan

Re: [Zope] redirect

2000-10-24 Thread Daniel Rusch
dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod='+_.str(test))" You can't (and don't need to) put dtml tags inside dtml tags. Joaldo Junior wrote: how to for that function REDIRECT understand a variable. ex. dtml-call

Re: [Zope] urgent

2000-10-17 Thread Daniel Rusch
dtml-sendmail mailhost="MailHost" To:!--#var to -- From:!--#var from -- Subject: dtml-var subject dtml-mime type=text/plain encode=7bit !--#var comments-- dtml-boundary type="application/pdf; name=jsp-syntax.pdf" disposition="attachment; filename=EquipmentOrder.pdf" encode=base64dtml-in

Re: [Zope] pop back namespace from stack ?

2000-10-10 Thread Daniel Rusch
In fact I need the id from the dtml-method I'm was called from Try dtml-var HTTP_REFERER Dan Beuserie Frédéric (stbrice dsi) wrote: hi, How can I pop back one namespace from the stack ?. In fact I need the id from the dtml-method I'm was called from. thanks a lot.

[Zope] Error List

2000-10-10 Thread Daniel Rusch
Take a look at this http://www.python.org/doc/current/lib/module-exceptions.html Dan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope] Subtracting DateTimes?????

2000-10-05 Thread Daniel Rusch
We backup our database every night at 3:00 AM CT. 15 minutes prior to this (i.e. 2:45 AM) I would like to display a warning. How do I compare the current time dtml-var "(ZopeTime()).toZone('US/Central')" to 3:00 AM Central Time ? dtml-if "(ZopeTime()).toZone('US/Central') - 0.3" doesn't

Re: [Zope] Detecting Roles not working

2000-10-04 Thread Daniel Rusch
dtml-if "AUTHENTICATED_USER.has_role('Staff', this())" This works for me, no pun intended :) Dan Kapil Thangavelu wrote: Jonathan Cheyne wrote: Hi all I have built the basis of a site with full, form-based webediting of objects. Coming round to cleanup time and I wanted to remove

Re: [Zope] DTML Loop, is there a 'continue'?

2000-09-22 Thread Daniel Rusch
I hope there is a dtml-continue, I also have not been able to find it though. What I have done is resorted to an dtml-if (or some times an dtml-unless) that catches the condition I want to short circuit and wrapped the code in the dtml-else. The dtml-unless probably the better choice. dtml-in

[Zope] Desperate Zope is crashing ....

2000-09-18 Thread Daniel Rusch
Hey all, I have a major problem! Our Zope site is crashing every few hours. I've grep'ed the python processes and they are still running but I can't access any pages. It's very strange because it just started happening last thursday. Prior to that we had no problems. No changes were made to the

Re: [Zope] How to Pass values to a DTML method ??

2000-09-12 Thread Daniel Rusch
They pass in the current name space, the context if you will. Someone posted a reply that had a link to the faq that attempts to explains this. DR Stuart Foster wrote: This is the way I had to do it what's up with the two extra params? -Original Message- From: [EMAIL PROTECTED]

Re: [Zope] How to Pass values to a DTML method ??

2000-09-11 Thread Daniel Rusch
dtml-var "some_method(param='Test')" 'Test' is single quoted if it is a string, if it is a variable then don't quote it. Notice also the double quotes "some_method(param='Test')" Dan Stuart Foster wrote: I have a DTML method that is called from a document. I need to pass a value to it like

[Zope] It Works!!!! I think I'm close, Product Creation and other threads

2000-08-25 Thread Daniel Rusch
ow if you get a good answer to your question.. I'm trying to do something quite similar.. Thank you. Chris Daniel Rusch wrote: Hello, (See bottom of this message for all the iterations I have tried) I've created a product called BasicDocument. I've installed it and it works g

[Zope] Sub Class Question

2000-08-25 Thread Daniel Rusch
I've created a BasicMethod which is derived from the DTMLMethod. everything works great until I try to have the sub class's (BasicMethod) __call__ method call the super class's (DTMLMethod) __call__ method. class BasicMethod(DTMLMethod): """BasicMethod objects are DocumentTemplate.HTML

[Zope] I think I'm close, but still no luck

2000-08-24 Thread Daniel Rusch
Hello, (See bottom of this message for all the iterations I have tried) I've created a product called BasicDocument. I've installed it and it works great. I've also created a folderish product (called SimpleSite). When a user selects the SimpleSite product from the available objects list,

[Zope] What does context.registerBaseClass() do ???

2000-08-24 Thread Daniel Rusch
I have searched the FM's and I cannot find anything on context.registerBaseClass(). Can anyone explain what this does for me and what the syntax of the argument list should be? Thanks, Dan ___ Zope maillist - [EMAIL PROTECTED]

[Zope-dev] Product creation question

2000-08-23 Thread Daniel Rusch
I've created a product called BasicDocument. I've installed it and it works great. I've also created a folderish product. Installed. When a user selects that product from the available objects list, thus creating an instance of that product, they have an option to create sub folders which

[Zope] Product creation question

2000-08-23 Thread Daniel Rusch
I've created a product called BasicDocument. I've installed it and it works great. I've also created a folderish product. Installed. When a user selects that product from the available objects list, thus creating an instance of that product, they have an option to create sub folders which

Re: [Zope] Creating an object from within another

2000-08-21 Thread Daniel Rusch
you're in Python. On Fri, 18 Aug 2000, Kapil Thangavelu wrote: Dieter Maurer wrote: Daniel Rusch writes: So far so good, Next hurdle, at least the problems have been cut down to hurdles from walls. I have a folderish product say myFolder, in the manage_addMyFolder

Re: [Zope] Fourth Posting, is this really that difficult or have I been blackballed :)balled :)

2000-08-21 Thread Daniel Rusch
not sure what you mean by "subobject adding in your __init__ method" Dan Kapil Thangavelu wrote: btw daniel, i've looked at some your postings for the day and i thought i should tell you that most of your problems would go away if you did subobject adding in your __init__ method

[Zope] I'm really confused: Creating an object from within another

2000-08-21 Thread Daniel Rusch
wrote: Dieter Maurer wrote: Daniel Rusch writes: So far so good, Next hurdle, at least the problems have been cut down to hurdles from walls. I have a folderish product say myFolder, in the manage_addMyFolder function I want to create an object of my product B

[Zope] Product question, third posting

2000-08-18 Thread Daniel Rusch
I've created a folderish product. When I select that product from the available objects list, thus creating an instance of that product, I can create objects like dtml document and dtml method in the new folderish object (very similar to what happens when you instantiate a folder object, you can

[Zope] Fourth Posting, is this really that difficult or have I been blackballed :)balled :)

2000-08-18 Thread Daniel Rusch
I've created a folderish product. When I select that product from the available objects list, thus creating an instance of that product, I can create objects like dtml document and dtml method in the new folderish object (very similar to what happens when you instantiate a folder object, you can

Re: [Zope] How to assing a string value to a variable in DTML?

2000-08-17 Thread Daniel Rusch
dtml-let a="'a'" b="'b'" dtml-var "a+b" /dtml-let Notice the quotes. See the How to on Let tags: http://www.zope.org/Members/michel/HowTos/LetTagHow-To DR "iap_y2fun.com" wrote: Forgive me for this stupid question: How to assing a string value to a variable in DTML? for example:

[Zope] Product inhetitance question

2000-08-17 Thread Daniel Rusch
Hey all, Say I have a fully functional (and more importantly, working) Product will call A. I want to extend this Product's capabilities so I wish to derive another class from it, call it B. No problem, class B(A): . The question is, (I think the answer is no) is there a way to

[Zope] getting base classes's (super class) _properties tuple

2000-08-17 Thread Daniel Rusch
Say I have a fully functional (and more importantly, working) Product will call A. I want to extend this Product's capabilities so I wish to derive another class from it, call it B. No problem, class B(A): . now in class B I want to add a new property. Is the a way of getting

Re: [Zope] Product inhetitance question

2000-08-17 Thread Daniel Rusch
and it worked fine for me. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Daniel Rusch" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Sent: Thursday, August 17, 2000 1

Re: [Zope] getting base classes's (super class) _properties tuple

2000-08-17 Thread Daniel Rusch
al Message - From: "Daniel Rusch" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 17, 2000 11:30 AM Subject: [Zope] getting base classes's (super class) _properties tuple Say I have a fully functional (and more importantly, working) Product will call A.

[Zope] Creating an object from within another

2000-08-17 Thread Daniel Rusch
So far so good, Next hurdle, at least the problems have been cut down to hurdles from walls. I have a folderish product say myFolder, in the manage_addMyFolder function I want to create an object of my product B. so I do this: def manage_addmyFolder(self, id, title='',

Re: [Zope] Creating an object from within another

2000-08-17 Thread Daniel Rusch
wrote: Not to sure there Im afraid. The obvious answer is the manage_addB doesnt exist whereas manage_addDTMLDocument does. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Daniel Rusch&qu

Re: [Zope] Creating properties with a product.

2000-08-16 Thread Daniel Rusch
Take a look at the doc string in the class definition of PropertyManager. It states that: An object may specify that it has one or more predefined properties, by specifying an _properties structure in its class:: _properties=({'id':'title', 'type': 'string', 'mode': 'w'},

[Zope] The mysteries of Product icons ?????

2000-08-16 Thread Daniel Rusch
I made an icon form my new product, Zope loaded it correctly. Then someone had the brilliant idea to change it. I can not figure out how to get Zope to load the new icon. I have deleted the product from Product Management at /Control_Panel / Products, rm the *.pyc files, bounced Zope, but it

Re: [Zope] Product question

2000-08-15 Thread Daniel Rusch
for that product, so that you are allowed to create it. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Daniel Rusch" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 15,

[Zope] Another Product question

2000-08-15 Thread Daniel Rusch
Stafford wrote: From: "Daniel Rusch" [EMAIL PROTECTED] I've created a product, installed it and it appears on the Product Management at /Control_Panel / Products list. The question is how do I get it to appear in the drop down of Available Objects? You have to register

Re: [Zope] while

2000-07-26 Thread Daniel Rusch
Try: dtml-in "_.range(1,10)" dtml-var sequence-item /dtml-in "Leichtman, David J" wrote: Is there an easy way to simulate the functionality of a while loop in DTML? ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] zope 2.2.0 simply dies

2000-07-24 Thread Daniel Rusch
Make sure that ALL your dtml-in's are wrapped in try/excepts we have seen this happened when there is a problem with either the sql or database adaptor. DR Andy Pahne wrote: I have a Zope-2.2.0 installation running on a Redhat 6.0 Linux Box. It simply dies sometimes. Three times in the last

Re: [Zope] Zope-killer: zSQL method that crashes Zope

2000-07-21 Thread Daniel Rusch
If it matters to anyone, Andy isn't the only one with Zope killing ZSQL Methods I just spent way too much time trying to figure out why our stage enviroment was crashing. Turns out to be a ZSQL method which fails. Of course it wasn't wrapped in a try/except . Oh well, so much for

[Zope] .dtml files

2000-07-12 Thread Daniel Rusch
I've been digging into to the inner workings of Zope trying to gleen as much Zen as possible, before I implement a write of our existing framework. During this process I have noticed that Zope's dtml pages are stored on the file system as .dtml files (i.e. roleEdit.dtml) The question then is how

Re: [Zope] HEELLPP - Please !!!

2000-07-11 Thread Daniel Rusch
I think this line: where users.user_login=dtml-sqlvar name=login type=string Should be: where users.user_login=dtml-sqlvar login type=string --- no name= DR Hi, I have the following ZSQL-Method: arguments : login - select user_passwd as real_password from users