[Zope] Putting a variable in a redirect call
All, I need to replace the URL below to a partial dtml-var and and an address, like so: dtml-call "RESPONSE.redirect('https://www.mysite.com/scripts/zope.pcgi/Anywhere/COMTemp/'+LUserOut+'.doc')" to: dtml-call "RESPONSE.redirect('dtml-var baserefW/COMTemp...blah, blah)" where baserefW contains the information replaced in the second sentence to make the address easily changeable site-wide. How can I acheive this? TIA, -y ~~~Yvonne TottyDatabase Engineer, x2198-Maximus: What we do in life, echoes in eternity. -- Gladiator
RE: [Zope] Putting a variable in a redirect call
Gosh darn it, it didn't work 8( ~~~ Yvonne Totty Database Engineer, x2198 - Maximus: What we do in life, echoes in eternity. -- Gladiator Exactly as per your first example: dtml-call "RESPONSE.redirect(baserefW + '/COMTemp')" -- Andy McKay. - Original Message - From: "Yvonne Totty" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 3:11 PM Subject: [Zope] Putting a variable in a redirect call All, I need to replace the URL below to a partial dtml-var and and an address, like so: dtml-call "RESPONSE.redirect('https://www.mysite.com/scripts/zope.pcgi/Anywh ere/COMTem p/'+LUserOut+' .doc')" to: dtml-call "RESPONSE.redirect('dtml-var baserefW/COMTemp...blah, blah)" where baserefW contains the information replaced in the second sentence to make the address easily changeable site-wide. How can I acheive this? TIA, -y ~~~~~~~ Yvonne Totty Database Engineer, x2198 - Maximus: What we do in life, echoes in eternity. -- Gladiator ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Dreamweaver
Well, I mean how can I make it 'write' the tags right? For instance, I have this legacy page that needs to be reworked visually. I want to keep the code, but move the stuff around. I open it in DW3, and it is a HUGE mess. Have they released DW4? -y ~~~ Yvonne Totty Database Engineer - Wolverine: You actually go outside in these things? Cyclops: Well, what would you prefer? Yellow spandex? In Dreamweaver 4, you can also use WebDAV to talk to Zope. --- "Sardonic Slaughterer of Sacred Cows" Todd Coram - mailto:[EMAIL PROTECTED] Digital Creations, Inc - http://www.digicool.com Publishers of Zope - http://www.zope.org -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Max M Sent: Monday, December 04, 2000 7:47 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [Zope] Dreamweaver From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Yvonne Totty I heard a nasty rumor that Dreamweaver could be made to use Zope. Is this true? If so, how do I do it? You just log onto Zope via ftp and do a "get site" getting to the dtml tags in the editor can be a bother though. I believe Dreamweaver 4.0 is better in this regards. Regards Max M Max M. W. Rasmussen,Denmark. New Media Director private: [EMAIL PROTECTED] work: [EMAIL PROTECTED] - Specialization is for insects. - Robert A. Heinlein ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Dreamweaver
I heard a nasty rumor that Dreamweaver could be made to use Zope. Is this true? If so, how do I do it? TIA Yvonne ~~~ Yvonne Totty Database Engineer - Wolverine: You actually go outside in these things?Cyclops: Well, what would you prefer? Yellow spandex?
[Zope] Sorting 'in'
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 Totty Database Engineer - Wolverine: You actually go outside in these things?Cyclops: Well, what would you prefer? Yellow spandex?
RE: [Zope] Sorting 'in'
Yes, that is what I am doing, however was wanting to not have to write several Z SQL Methods. 8) ~~~ Yvonne Totty Database Engineer - Wolverine: You actually go outside in these things? Cyclops: Well, what would you prefer? Yellow spandex? 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 Totty Database Engineer - Wolverine: You actually go outside in these things? Cyclops: Well, what would you prefer? Yellow spandex? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Z SQL Objects (Newbie)
I have the O'Reilly book, but can't seem to find more complete information on how to do 'if's' in a SQL thing. Here's the scenario: I have three different 'teams' and want to run a call specific to each team. I am passing in three parameters, two of which go in the sql statement, the other goes in the if statement: :if "team='S"' sql statement :elif "team='C'" blah, blah /:if It tells me it doesn't like the syntax of the 'if' (I have stuff in the python file that lets me use ':' in place of 'dtml-'). I have tried all the flavors: "team=='S'", "team=S", "team==S", etc. and it doesn't like any of them. If you guys know of another reference, please let me know! TIA, Yvonne 8) ~~~ Yvonne Totty Database Engineer - Wolverine: You actually go outside in these things?Cyclops: Well, what would you prefer? Yellow spandex?
RE: [Zope] Z SQL Objects (Newbie)
Error message stuff: Expression (Python) Syntax error: invalid syntax , for tag :if "team=='S'", on line 23 of string Traceback (innermost last): File C:\PROGRA~1\ATIANY~1\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\ATIANY~1\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\ATIANY~1\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: TeamDates) File C:\PROGRA~1\ATIANY~1\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\ATIANY~1\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_edit) File C:\PROGRA~1\ATIANY~1\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_edit) File C:\Program Files\ATIAnywhere\lib\python\Shared\DC\ZRDB\DA.py, line 242, in manage_edit (Object: TeamDates) File C:\PROGRA~1\ATIANY~1\lib\python\DocumentTemplate\DT_String.py, line 383, in cook (Object: string) File C:\PROGRA~1\ATIANY~1\lib\python\DocumentTemplate\DT_String.py, line 228, in parse (Object: string) File C:\PROGRA~1\ATIANY~1\lib\python\DocumentTemplate\DT_String.py, line 292, in parse_block (Object: string) File C:\PROGRA~1\ATIANY~1\lib\python\DocumentTemplate\DT_String.py, line 126, in parse_error (Object: string) Document Template Parse Error: (see above) ~~~~~~~ Yvonne Totty Database Engineer - Wolverine: You actually go outside in these things?Cyclops: Well, what would you prefer? Yellow spandex? Hi, Arguments| team Query template dtml-if "team == '5'" select * from data dtml-else select * from data/dtml-if this is normal but may it helps if you post the traceback of the error message Jens Grewen - Original Message - From: Yvonne Totty To: [EMAIL PROTECTED] Sent: Thursday, October 26, 2000 3:22 PM Subject: [Zope] Z SQL Objects (Newbie) I have the O'Reilly book, but can't seem to find more complete information on how to do 'if's' in a SQL thing. Here's the scenario: I have three different 'teams' and want to run a call specific to each team. I am passing in three parameters, two of which go in the sql statement, the other goes in the if statement: :if "team='S"' sql statement :elif "team='C'" blah, blah /:if It tells me it doesn't like the syntax of the 'if' (I have stuff in the python file that lets me use ':' in place of 'dtml-'). I have tried all the flavors: "team=='S'", "team=S", "team==S", etc. and it doesn't like any of them. If you guys know of another reference, please let me know! TIA, Yvonne 8) ~~~ Yvonne Totty Database Engineer - Wolverine: You actually go outside in these things?Cyclops: Well, what would you prefer? Yellow spandex?
RE: [Zope] Z SQL Objects (Newbie)
Jim, Nah, I thought of that, too and it didn't work 8(. I have been using :sqlvar ... inside my statements and those seem to be doing just fine. Yvonne 8) Try it with the dtml-if syntax rather than :if. It made a difference for me. If this works for you, please post a comment. it appears that the newest syntax did not filter into ZSQL methods. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Z SQL Objects (Newbie)
Well, I will be darned, it did work. I must have left out the quotes before when I tried it. That is weird, how, in the very same object, the :sqlvar... works, but :if... doesn't. Thanks so much!!! ~~~ Yvonne Totty Database Engineer - Wolverine: You actually go outside in these things? Cyclops: Well, what would you prefer? Yellow spandex? Yvonne, The format of your 'if' is incorrect: You have :if . it should be dtml-if. so the whole statement is as Jens says below. hth Phil [EMAIL PROTECTED] - Original Message - From: Jens Grewen To: [EMAIL PROTECTED] Cc: Zope Maillist Sent: Thursday, October 26, 2000 2:51 PM Subject: Re: [Zope] Z SQL Objects (Newbie) Hi, Arguments | team Query template dtml-if "team == '5'" select * from data dtml-else select * from data /dtml-if this is normal but may it helps if you post the traceback of the error message Jens Grewen - Original Message - From: Yvonne Totty To: [EMAIL PROTECTED] Sent: Thursday, October 26, 2000 3:22 PM Subject: [Zope] Z SQL Objects (Newbie) I have the O'Reilly book, but can't seem to find more complete information on how to do 'if's' in a SQL thing. Here's the scenario: I have three different 'teams' and want to run a call specific to each team. I am passing in three parameters, two of which go in the sql statement, the other goes in the if statement: :if "team='S"' sql statement :elif "team='C'" blah, blah /:if It tells me it doesn't like the syntax of the 'if' (I have stuff in the python file that lets me use ':' in place of 'dtml-'). I have tried all the flavors: "team=='S'", "team=S", "team==S", etc. and it doesn't like any of them. If you guys know of another reference, please let me know! TIA, Yvonne 8) ~~~ Yvonne Totty Database Engineer - Wolverine: You actually go outside in these things? Cyclops: Well, what would you prefer? Yellow spandex? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Mass Mailing (newbie)
Hi! I need to send out mass mailings from time to time (newsletters, announcements and the such). Is there an easy way to get this done? I already have the email addy's in the database. TIA, Yvonne ~~~ Yvonne Totty Database Engineer - Wolverine: You actually go outside in these things?Cyclops: Well, what would you prefer? Yellow spandex?
[Zope-dev] Newbie SQL Question
HI! I am having a slight newbie problem and for the life of me cannot find any references for how to do it. I have input boxes on a page. I want the information from that box to be input into a database table upon clicking the Submit button. I cannot figure out how to get that information from point 'A' to point 'B'. PLEASE HELP! TIA, Yvonne Totty ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] Error List
Hi! Is there somewhere I can get a list of errors and their meanings? Thanks! Yvonne ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )