Re: [Zope] Trapping zope exceptions in python script

2005-12-15 Thread Joe Bezier

On 14 Dec 2005, at 19:54, Nikko Wolf wrote:
In general, TTW coding is very limited; you can use External Methods 
(a.k.a. Extensions) or Products to avoid this.



Please excuse my ignorance, but what does "TTW coding" mean exactly?

Thanks

JB



___ 
Yahoo! Exclusive Xmas Game, help Santa with his celebrity party - http://santas-christmas-party.yahoo.net/

___
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-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Sql statement in dtml code

2005-09-09 Thread Joe Bezier
OK, are you using a Zope with an error_log? [you'll see it in the root 
of your installation]. If so, could you pass on the whole traceback for 
this error?


Hang on - are you calling 'date_count' when your object's called 
'date_count.zsql'? Rename your zsql method 'date_count' and then try - 
I think that should do it. If not, send us the traceback...


Cheers

JB
On 9 Sep 2005, at 11:33, [EMAIL PROTECTED] wrote:


sorry, i meant when i run the code - i'm not with zope terminology yet.
here's my date_count.zsql method:
select count(*) AS endcount from t_transaction

and in the dtml, i've got:




Thanks for the replies so far!
Paul

On Fri, 2005-09-09 at 11:30 +0100, Peter Bengtsson wrote:

When the page is refreshed??? It shouldn't matter. It's got to be
something wrong with the SQL statement.

A ZSQL method doesn't really have "an output", you have to loop over
it and get the "output" for each key in the iterations.

On 9/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi Joe,
thanks for the quick reply!
i've got a zsql method now(called date_count.zsql) which I try to 
call
in my dtml via  - but I get a KeyError when the 
page
is refreshed. The dtml is in the same dir as the zsql...not sure 
whats

up.

Cheers,
Paul

On Fri, 2005-09-09 at 11:06 +0100, Joe Bezier wrote:

I'm not sure if this is what you're looking for





If no parameters, just expr="sql_statement()" or sql_statement>


Cheers,

JB


On 9 Sep 2005, at 10:50, [EMAIL PROTECTED] wrote:


Hi all,
I'm trying to basically get the output of two SELECT statements 
into a

dtml document, but cant get it working.
I've searched, and tried a few examples for similar things, but 
had no

luck. Can anyone recommend a way, please?

Thanks,
Paul

___
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-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )







___
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide 
with voicemail http://uk.messenger.yahoo.com




___
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-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )












___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

___
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-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Sql statement in dtml code

2005-09-09 Thread Joe Bezier

I'm not sure if this is what you're looking for

expr="sql_statement(parameter1=parameter1,parameter2=parameter2)">




If no parameters, just expr="sql_statement()" or 

Cheers,

JB


On 9 Sep 2005, at 10:50, [EMAIL PROTECTED] wrote:


Hi all,
I'm trying to basically get the output of two SELECT statements into a
dtml document, but cant get it working.
I've searched, and tried a few examples for similar things, but had no
luck. Can anyone recommend a way, please?

Thanks,
Paul

___
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-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )







___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

___
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-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Bulk] [Zope] localhost:8080 not found on windows

2005-08-02 Thread Joe Bezier

A couple of obvious ones:

Have you tried 127.0.0.1:8080 or [local_ip]:8080

Are you sure you're running Zope on port 8080?

Cheers,

Joe
On 2 Aug 2005, at 15:09, michael nt milne wrote:


Hi

I have installed Zope and Plone on a windows business server. On
trying to view http://localhost:8080/manage I am getting a 404 not
found etc.

The server is already running a webmail service, however nothing comes
up for locahost or http://127.0.0.1.

I've also tried using the IP address of the machine to access the
interface with the same result. The IP address is available in web
DNS.

Does anyone have any ideas on how to get the zope/plone browser
interface running at all?

Thanks
___
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-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )





___ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

___
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-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] manage_changeProperties quirk?

2005-07-22 Thread Joe Bezier
Yep. Exactly - I hadn't thought of that, but yes, it was created by 
someone who's now left. Deeply impressive.


Thanks Jens.

JB

On 22 Jul 2005, at 11:17, Jens Vagelpohl wrote:



On 22 Jul 2005, at 11:04, Joe Bezier wrote:
So I tried pretty much everything - checking all sorts of permissions 
and other stuff, but eventually made a copy of the folder, to make 
sure it wasn't something peculiar with the folder name - the copy 
worked perfectly. So, I then replaced the original folder with the 
folder copy and this worked fine too.


So, basically, problem solved. But I'm now concerned - could this 
happen again? Is there something I'm missing? Has anyone experienced 
something like this before?


Shot in the dark: Was this folder created (and thus under effective 
ownership) of a user that has been deleted from the user folder?


jens

___
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-announce
http://mail.zope.org/mailman/listinfo/zope-dev )







___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

___
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-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] manage_changeProperties quirk?

2005-07-22 Thread Joe Bezier

Hiya,

I had a strange problem today, on a Zope 2.5 installation (yes, it will 
be upgraded soon...). Basically, I've got a form action which calls 
manage_changeProperties() on a number of subfolders using




Now, this works absolutely fine throughout my installation, but in one 
instance it was raising an Unauthorized Error for all users, no matter 
what their permissions/roles:



Site Error

An error was encountered while publishing this resource.

Unauthorized
You are not authorized to access manage_changeProperties.


So I tried pretty much everything - checking all sorts of permissions 
and other stuff, but eventually made a copy of the folder, to make sure 
it wasn't something peculiar with the folder name - the copy worked 
perfectly. So, I then replaced the original folder with the folder copy 
and this worked fine too.


So, basically, problem solved. But I'm now concerned - could this 
happen again? Is there something I'm missing? Has anyone experienced 
something like this before?


Cheers,

JB



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

___
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-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] IE v. Firefox for viewing Zope sites

2005-06-16 Thread Joe Bezier

Can you show us? It'd be easier to tell you the problem...

It could be the CSS, or it could be the HTML, particularly the DTD - IE 
renders pages differently depending on the validity of your DTD - a 
good DTD gets your page rendered in "compliant" mode, a bad one (or 
none...) gets your page rendered in "quirks" mode. Or it could be many 
other things. Send us a link ;-)


Cheers,

joe


On 16 Jun 2005, at 19:15, John Poltorak wrote:



I've just put together a simple Zope website, but whilst it renders
properly under Firefox, it looks dreadful using IE.

Can anyone explain why? Could it be the CSS?


--
John


___
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-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )





___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

___
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-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Zope product tree inheritance...

2005-06-07 Thread Joe Bezier

Hi there,

I'm using Zope 2.7.5 and have various instances running from the same 
code base - I've edited one of my products and I'd like to test it in 
one particular instance. Can anyone tell me whether Zope will use the 
Product in the [instance]/Products folder ahead of the one in the main 
code tree?


Thanks for any help.

Cheers,

Joe.





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

___
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-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] userFolder that holds user's email

2005-06-07 Thread Joe Bezier
Have a look at ExUserFolder 
(http://sourceforge.net/projects/exuserfolder/) we use it and I think 
it's great...


Cheers,

Joe
On 7 Jun 2005, at 12:27, Haim Ashkenazi wrote:


Hi

I'm looking for a zope (not plone) userFolder that can hold the user's
email and perhaps full name. It should be the same authentication 
method,

but with additional fields. Do I have to write one myself or are there
already products that have this feature?

thanx
--
Haim


___
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-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )





___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

___
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-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Z SQL test in the ZMI aborts on key error

2005-06-07 Thread Joe Bezier

Hi there,

By any chance are you trying to test a ZSQL method that doesn't 
(shouldn't) need any query parameters? For some reason (and I'm not the 
guy who can tell you why...) these types of tests always break - try 
adding '?query=' to the end of the URL. and see if that helps.


Cheers,

Joe.
On 7 Jun 2005, at 11:41, Dennis Allison wrote:


Zope 2.7.6
Python 2.3.5
MySQLDA-1.2.1c3
ZMYSQLDA-2.09b3


Site Error

An error was encountered while publishing this resource.

Error Type: KeyError
Error Value: 'query'

Troubleshooting Suggestions

* This resource may be trying to reference a nonexistent object or
variable 'query'.
* The URL may be incorrect.
* The parameters passed to this resource may be incorrect.
* A resource that this resource relies on may be encountering an
error.


--
Error log:

 2005/06/07 03:33:03.344 GMT-7
User Name (User Id) allison (allison)
Request URL http://group1.agilemind.com/Scratch/simpleq/manage_test
Exception Type KeyError
Exception Value 'query'

Traceback (innermost last):

* Module ZPublisher.Publish, line 101, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 39, in call_object
* Module Shared.DC.ZRDB.DA, line 337, in manage_test
* Module DocumentTemplate.DT_String, line 474, in __call__
* Module DocumentTemplate.DT_In, line 602, in renderwb
* Module DocumentTemplate.DT_Var, line 219, in render

KeyError: 'query'


There does not seem to be a bug like this in the collectors.

Any help/pointers appreciated.


___
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-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )





___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

___
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-announce

http://mail.zope.org/mailman/listinfo/zope-dev )