[Zope] Stupid question of the day

2000-06-22 Thread Andy McKay
How do I find the size of the results returned by the catalog? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] Stupid question of the day

2000-06-26 Thread Andy McKay
Thank you. - Original Message - From: "Dieter Maurer" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, June 23, 2000 3:07 PM Subject: Re: [Zope] Stupid question of the day Andy McKay writes: How do I find the size of

[Zope] STUPID_FILE_LOGGER

2000-06-27 Thread Andy McKay
Hi, Im trying to run Zope on Win2k and use the stupid_file_logger. No matter what I seem to do to the command line or z2.py I still get the logs going to stderr (ie ms-dos console). Can anyone help? Here are command lines I have tried: "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D

Re: [Zope] STUPID_FILE_LOGGER

2000-06-27 Thread Andy McKay
\zope.log" Thanks. - Original Message - From: "Loren Stafford" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, June 27, 2000 11:04 AM Subject: RE: [Zope] STUPID_FILE_LOGGER I develop on Win98 with MKS tools. Using the M

Re: [Zope] DTML/ZClass question

2000-06-27 Thread Andy McKay
You are correct, you're ZClass is not rendering the dtml and it wont. The easiest way I found is simply not to try and find another solution. I came across the same problem a while ago when I was just starting out with Zope. I have solved the problem now, its written in python and derives from

Re: [Zope] ZCatalog counting?

2000-06-27 Thread Andy McKay
But that assumes that they are all in the same folder... a ZCatalog query where meta-type = 'DTML Document' followed by a simple sequence-length would get around that. And I think (but dont quote me on this) that a ZCatalog search is quicker than objectValues. - Original Message - From:

Re: [Zope] How to update DTML built from Python level?

2000-06-28 Thread Andy McKay
Restarting will work (although it is not technically necessary for .dtml). Perhaps there is another reason... - Original Message - From: "Lalo Martins" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 28, 2000 3:48 PM Subject: [Zope] How to update DTML built from Python

Re: [Zope] Available Object List (Was Re: [Zope] GOOD)

2000-06-30 Thread Andy McKay
And a "Check all" while they are at it then again 900 objects in one folder aint the best way to do things - Original Message - From: "J. Atwood" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 30, 2000 7:27 AM Subject: [Zope] Available Object List (Was Re: [Zope]

Re: [Zope] Error handling and super users....

2000-06-30 Thread Andy McKay
Hi Tino My be dtml-try is what you want? A dtml try works well in dtml in a file. But take an error such as "object not found" (analogous to 404) or some other error that does not specifically call a method. Or does it? This is the question I guess. Yes I use try and except's quite a bit.

Re: [Zope] Win2000

2000-06-30 Thread Andy McKay
No prob here. I had a brief problem for me with zope 2.2 beta 2 I think on Windows. That is fixed now though... what version and any more detail of the exact problem? - Original Message - From: "Robin Becker" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 30, 2000 8:24 AM

Re: [Zope] Why can't I subclass a ZSQLMethod?

2000-06-30 Thread Andy McKay
ZSQLMethod is not registered as a base class. I dont know why, but you could try changing it in the init.py... But Im sure there is a good reason why it isnt. - Original Message - From: "Cary O'Brien" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 30, 2000 12:59 PM Subject:

Re: [Zope] calling standard_html_header from external methods

2000-07-01 Thread Andy McKay
It sounds like it needs some arguments... the most obvious one I would try is request. HEADER=self.standard_html_header(REQUEST) - Original Message - From: "Marco Mariani" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 01, 2000 6:33 AM Subject: [Zope] calling

[Zope] Persisting a dictionary as a object property

2000-07-05 Thread Andy McKay
Hi all, Ok so I have an object, I have many properties persisting on the object using the wonderful PropertyManager. But I want to persist a dictionary. This isn't an option for the PropertyManager. I added a dictionary into the object just by adding the line: _map = {} But it only persists

Re: [Zope] howto_GUF

2000-07-06 Thread Andy McKay
Wild stab in the dark is that there is a problem writing a the standard stupid_log_file if you get rid of -D to stop logging. But IMHO logging is useful and there is a problem writing to the file for some reason, its worth fixing. - Original Message - From: "Mario Premke" [EMAIL

Re: [Zope] Re:Web Site newbie

2000-07-06 Thread Andy McKay
A site might be more than just Zope, it could be a whole of bunch of servers applications etc. For example an e-commerce section written in say Perl, or streaming audio from some other server or some fancy. Most stuff 90% of sites do can be done in Zope and ZServer is great for that. To serve

Re: [Zope] Python or DTML

2000-07-06 Thread Andy McKay
The Zope core is *written* in python (with hotspots coded in python modules written in C), not just integrated with it. Since DTML must be interpreted by the Zope core (an interpreter running in an interpreter), whereas the python code in an external method is simply (more or less) executed

Re: [Zope] Is Zope slow?

2000-07-06 Thread Andy McKay
-maybe we could discuss network services/hoster_performance? This is more of a problem for most people. One evening whilst bored we calculated that Zope could happily serve enough people to fill up our pipe... so the bottle neck is our connection. Mind you we'd had a beer or two so

Re: [Zope] Persisting a dictionary as a object property

2000-07-06 Thread Andy McKay
Thanks that worked like a charm! - Original Message - From: "Martijn Pieters" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 05, 2000 5:21 PM Subject: Re: [Zope] Persisting a dictionary as a object property On Wed

Re: [Zope] Redirect Back

2000-07-07 Thread Andy McKay
And Javascripts back function is javascript:history.back() so i think RESPONSE.redirect('javascript:history.back()') - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED]; "'Aaron Williamson'" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent:

Re: [Zope] Am I getting the idea correctly?

2000-07-08 Thread Andy McKay
You still have to write dtml by hand, but you could say Dreamweaver to connect via FTP to Zope. You can then edit the documents in html. Or use you favorite WSYIWYG and ftp / cut and paste them in. For a tool that includes all the dtml check out the one day it might be ready - Zope Studio.

Re: [Zope] Mirroring to IIS

2000-07-10 Thread Andy McKay
I did a similar thing and when I mirrored it to IIS as static files I changed the filename by adding .html You can fix the header to always add the correct content type (RESPONSE.setHeader('Content-Type', 'text/html')) - Original Message - From: "Jake LeBeau" [EMAIL PROTECTED] To:

Re: [Zope] Mirroring to IIS

2000-07-10 Thread Andy McKay
Oops of course you are mirroring to a static file that setting a header will do no good. Damn need more tea to wake me up. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 10, 2000 11:40 AM Subject: Re: [Zope] Mirroring to II

Re: [Zope] Mirroring to IIS

2000-07-10 Thread Andy McKay
th varying degrees of success. See my response to Andy McKay for a description of where I am now. Of course, if I was a real Zopista, instead of a newbie, I would rewrite the ZMirror product to assign file extensions to its output, right? Thanks for your help, Jake [EMAIL PROTECTED] Maik Roe

[Zope] MessageDialog

2000-07-10 Thread Andy McKay
The MessageDialog is cool, but a little sparse, has anyone tried overriding it with their own or fiddling with it? Im looking at including standard header and footer in it and not gotten very far. Thanks. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming

Re: [Zope] cut and paste or an object

2000-07-11 Thread Andy McKay
Sorry, I cant shed any light but I still have the exact same problem. More bizarrely I could copy then delete then paste and that worked fine. - Original Message - From: "Terry Kerr" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 11, 2000 2:10 AM Subject: [Zope] cut and

Re: [Zope] MessageDialog

2000-07-11 Thread Andy McKay
A thanks Chris. I had noticed that and was trying to see if I could do without using REQUEST. I couldnt so I went and changed all the calls to my class *sigh*. Thanks mate. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL P

[Zope] ZClasses gripe

2000-07-17 Thread Andy McKay
estination once a form has been filled. This would give us much better access to things like property manager. Oh well back to Python. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People ___ Zop

Re: [Zope] product docs Re: [Zope] Zope docs ??

2000-07-18 Thread Andy McKay
Im curious too... But then I had to write a trivial class to do xyz yesterday morning and doing it in ZClasses was just quicker. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "ethan mindlace fremen" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; "Zope Mailing List" [EMAIL

[Zope] Re: Python or DTML

2000-07-18 Thread Andy McKay
...if I call an external method as an action resulting from a form post, and spit out raw html, it works great. BUT I cannot seem to use DTML objects very easily from within it. You can, its just very difficult. Not so if one of those DTML methods is an EXTERNAL method which would like to

Re: [Zope] Simple DTML-IN question

2000-07-19 Thread Andy McKay
Part of the problem here is that you cannot loop through a string (which is what a DTML Document returns). You can split the string and loop through that or more efficiently create a lines property on an object and loop through that. Something like: property: Course, type: lines dtml-in Course

[Zope] GUF, 2.2 and SQL

2000-07-20 Thread Andy McKay
failure at getting anywhere, or is it just me? Thanks. Andy McKay ___ 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

[Zope] Fw: [Zope] GUF, 2.2 and SQL

2000-07-20 Thread Andy McKay
t_role(username=username)" dtml-call "REQUEST.set('ret', ret + ' ' + _['sequence-item'].roles)" /dtml-in dtml-return ret - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 20, 2000 2:41 PM Subject: [Zope] GUF, 2.2 and SQ

[Zope] ODBC in 2.2

2000-07-20 Thread Andy McKay
_index=None + + # We need to allow access to not-explicitly-protected + # individual record objects contained in the result. + __allow_access_to_unprotected_subobjects__=1 def __init__(self,file,brains=NoBrains, parent=None, zbrains=None): -- Andy McKay, De

Re: [Zope] dumb dtml-in question

2000-07-21 Thread Andy McKay
dtml-in "objectValues()" dtml-var sequence-length /dtml-in This prints out the value every time though so you might do a return or do a request set depending upon what you are doing, or use a first / last system... dtml-in "objectValues()" dtml-if sequence-end dtml-var sequence-length /dtml-if

Re: [Zope] A Better Way (Stupid DTML code)

2000-07-21 Thread Andy McKay
Other smug answers include: - dont put - in your SQL methods - use your SQL to give the variable a different name - use python - Original Message - From: "Phil Harris" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; "Dennis Baker" [EMAIL PROTECTED] Sent: Friday, July 21, 2000 4:29 PM Subject:

Re: [Zope] GUF Authentication Problems

2000-07-21 Thread Andy McKay
Nope that was a lie. I still have the same problem. Damn. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Mario Premke" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 19, 2000 4:39 PM Subject: Re: [Zope] GUF Authentication Probl

Re: [Zope] A Better Way (Stupid DTML code)

2000-07-24 Thread Andy McKay
ent: Monday, July 24, 2000 6:40 PM Subject: Re: [Zope] A Better Way (Stupid DTML code) "Baker, Dennis [sjmr]" wrote (quote rearranged to be *after* the previous message, as it should be:): -Original Message- From: Andy McKay [mailto:[EMAIL PROTECTED]] Sent: Friday, July

Re: [Zope] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Andy McKay
+1 - Original Message - From: "Brian Lloyd" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 25, 2000 8:35 AM Subject: [Zope] Your feedback: what should DateTime strftime() behavior be? Hi all - There has recently been some confusion over the expected behavior of

Re: [Zope] on ZCatalog

2000-08-14 Thread Andy McKay
You dont need to delete and then add back in the SiteRoot object, just alter the url that is passed to ZCatalog. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: tav To: [EMAIL PROTECTED] Sent: Monday

Re: [Zope] [Ann] Another Zope Book

2000-08-15 Thread Andy McKay
to do it this why... now how do I do that in Zope sort of thing. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Dan L. Pierson" [EMAIL PROTECTED] To: "Dieter Maurer" [EMAIL PROTECTED]

Re: [Zope] Implementing a login form instead of BASIC authentication

2000-08-15 Thread Andy McKay
...that, and getting your CSS to eb compatible with all the major browsers ;-) :) hear, hear -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People ___ Zope maillist - [EMAIL PROTECTED] http

[Zope] copy / paste support

2000-08-15 Thread Andy McKay
? -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] copy / paste support

2000-08-15 Thread Andy McKay
Nope, using cookies for authentication actually. Curious what the cookies are used for now.. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Brian Lloyd" [EMAIL PROTECTED] To: "'Andy

Re: [Zope] Another Product question

2000-08-15 Thread Andy McKay
You will probably find you are missing a doc string. After your method declaration you must have a string enclosed with 3 single quotes (''') so: def manage_addFrameWorkDoc: ''' this is the doc string you must have ''' -- Andy McKay, Developer, ActiveState http

Re: [Zope] copy / paste support

2000-08-15 Thread Andy McKay
Sorry forgot to say Im in 2.2 before latest hotfix. I had a different problem prior to my 2.2 upgrade. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Terry Kerr" [EMAIL PROTECTED] To: &

Re: [Zope] copy / paste support

2000-08-15 Thread Andy McKay
Thanks! Tried copying and pasting newly created 2.2 objects and still have the same problems hmmm -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Terry Kerr" [EMAIL PROTECTED] To: &

Re: [Zope] How can I find memory leaks in External Methods?

2000-08-16 Thread Andy McKay
One place to start is /Control_Panel/DebugInfo/manage_main but Im not sure if this will work for External Methods. But it does show the objects in memory and the change over time. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People

Re: [Zope] Can't change user roles without password

2000-08-16 Thread Andy McKay
The differentiating factor is the version. This was an issue in 2.1.6. Upgrade time :) -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "David Riggs" [EMAIL PROTECTED] To: [EMAIL PROTE

Re: [Zope] Zope and VirtualHost

2000-08-17 Thread Andy McKay
Yep Site Access is the product to go for, it includes help on how to use with Apache if I recall. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "William JOYE" [EMAIL PROTECTED] To: [EMAIL

Re: [Zope] Product inhetitance question

2000-08-17 Thread Andy McKay
Well by inheritance B has all the methods, properties etc you have in A. So the answer is yes, if A has the foobar method then B will have a foobar method. Or do I misunderstand your question? -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming

Re: [Zope] Zope is very slow!

2000-08-17 Thread Andy McKay
Upgrade to 2.2.1 (60% faster on dual processors). Really? I didnt see anything about this in the Changes file... has something else changed I didnt see? I noticed that 2.1.6 wasnt making the best use of dual processors. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com

Re: [Zope] Choose where to create a ZClass instance with EM

2000-08-17 Thread Andy McKay
Get a handle to the object where you wish to create the object then create the object. For example: newobj = getattr(self, 'folderA') will give you folderA in self. The new object will be created in folderA. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com

Re: [Zope] Announce: Squishdot 0.5.0 now available!

2000-08-17 Thread Andy McKay
Good job Chris. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 17, 2000 5:36 AM Subj

Re: [Zope] Product inhetitance question

2000-08-17 Thread Andy McKay
- Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Daniel Rusch" [EMAIL PROTECTED] Sent: Thursday, August 17, 2000 11:21 AM Subject: Re: [Zope] Product inhetitance question Ah... ok sorry you are right, stuff outside the class doesnt get in

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

2000-08-17 Thread Andy McKay
class A: _properties = [ {'a':'A', 'aa':'AA'}, ] class B(A): _properties = [ {'b':'B', 'bb':'BB'}, ] _properties = _properties + A._properties b = B() print b._properties Works for me. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming

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

2000-08-17 Thread Andy McKay
Aargh isnt that annoying. Gosh you are right im using lists of dictionaries... my Zope code is correct, but that example is wrong. The example still works though... -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original

Re: [Zope] Creating an object from within another

2000-08-17 Thread Andy McKay
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" [EMAIL

Re: [Zope] Re: [Zope-dev] Cool, we like the . :-)

2000-08-17 Thread Andy McKay
I vote we continue the dtml tradition and go for some strange unpredictable combination of _[']'_''['] ;-) -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Zope" [EMAIL PROTECTED] To: &quo

[Zope] Re: [Zope-dev] Aaargh, no safe seperators :S

2000-08-17 Thread Andy McKay
Dont put . in id's... I try not to anyway. Could we say . or if your id has a . use something else eg: dtml-foo.[bar.dot].y ? -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Chris Withers&qu

Re: [Zope] Zope is very slow!

2000-08-17 Thread Andy McKay
How many processors? -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Terry Kerr" [EMAIL PROTECTED] To: "J. Atwood" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 17,

Re: [Zope] . makes search engines happy...

2000-08-18 Thread Andy McKay
Andy McKay wrote: Dont put . in id's... I try not to anyway. Could we say . or if your id has a . use something else eg: dots in ids are essential if you rely of search engine hits for your site. .html .gif .txt Just processing the extension on a file name is a lot quicker than

Re: [Zope] [Ann] Another Zope Book

2000-08-18 Thread Andy McKay
There is room for both books. Zope is a powerful and very deep products. The majority of users are unlikely to go into a great deal of python, most are going to use the dtml and other basic functionality. If Zope is going to increase its market then this sort of book is essential to make Zope

[Zope] Merging multiple catalogs

2000-08-18 Thread Andy McKay
sets of records returned... Thanks. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts

[Zope] copy / paste support

2000-08-22 Thread Andy McKay
I know some people have helped me on this thread before but Ive had chance to look at this again and Im still stumped on this. Newly created 2.2 objects still have a problem. Using custom class in Zope 2.2.0. Thanks. - Original Message - From: "Andy McKay" [EMAIL PROTECTED]

Re: [Zope] rotate Z2.log

2000-08-28 Thread Andy McKay
You can patch Z2.py so that line 599 (or thereabouts) instead of: lg = logger.file_logger(LOG_PATH) reads: lg = logger.rotating_file_logger(LOG_PATH, freq='daily', maxsize=400) - Original Message - From: "Marcin Kasperski" [EMAIL PROTECTED] To: "Zope List Submission" [EMAIL

Re: [Zope] _setObject error - urgent!

2000-09-01 Thread Andy McKay
Yeah I know, I apologise I was just panicking with a deadline approaching. Sorry. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Sent: Friday, September 01, 2000 2:26 AM Subject: Re: [Zope] _setObject error - urgent!

Re: [Zope] _setObject error - urgent!

2000-09-01 Thread Andy McKay
Traced the problem to a faulty catalog attribute, which automatically happens. Damn, its been a while I still cant see why I cant cut and paste. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 01, 2000 9:11 AM Subject:

[Zope] Re: [Zope-dev] Folderish objects and multiple inheritance

2000-09-05 Thread Andy McKay
c.test() OUTPUT A - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 05, 2000 11:35 AM Subject: [Zope-dev] Folderish objects and multiple inheritance Hi there, Ok so I have a class that has multiple inheritance. My

Re: [Zope] Re: [Zope-dev] Folderish objects and multiple inheritance

2000-09-05 Thread Andy McKay
Darn sorry wrong alias. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 05, 2000 2:13 PM Subject: [Zope] Re: [Zope-dev] Folderish objects and multiple inheritance Hmmm I can override inheritance in a simple class.

[Zope] Re: [Zope-Perl] Send me your Perl Methods

2000-09-06 Thread Andy McKay
Or maybe using a perl module that doesnt exist in Python? I was looking at MP3::Napster the other day but Im stuck on Windows. - Original Message - From: "Gisle Aas" [EMAIL PROTECTED] To: "Michel Pelletier" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday,

Re: [Zope] Product question

2000-08-15 Thread Andy McKay
Make sure you have the permissions set correctly 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]

Re: [Zope] manage_workspace

2000-09-08 Thread Andy McKay
I actually found that file by a quick grep through the source. Im not sure I understand what you are trying to do with the management interface there, and with more information I cannot help you. - Original Message - From: "Mechtild Hofmann" [EMAIL PROTECTED] To: "And

Re: [Zope] Is Squishdot ready for prime time?

2000-09-08 Thread Andy McKay
Absolutely, totally. Could you be a little more specific than "use at work", that could mean anything. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 08, 2000 6:00 PM Subject: [Zope] Is Squishdot ready for prime time? -BEGIN PGP SIGNED

Re: [Zope] My Z Class

2000-09-12 Thread Andy McKay
A Class is a template for an object, you create it once and any changes affect every object. An object is an instance of a class, it contains data, properties etc. Changing that just changes the object and it is common to change the information in an object. Karl I think you are trying to

[Zope] Ownership and security

2000-09-12 Thread Andy McKay
to explain it on a mailing list. -- Andy McKay, Developer. ActiveState. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman

Re: [Zope] Ownership and security

2000-09-13 Thread Andy McKay
', loginScreen Doing anything with the Security Model makes me nervous. Especially since I fiddled with default=_marker from the original User.py. This seems to work but any feedback from security guru's would be appreciated. - Original Message - From: "Andy McKay" [EMAIL PROTEC

Re: [Zope] Passing parameters to external methods

2000-09-13 Thread Andy McKay
Ive always sent through the REQUEST with no problem, dtml-var "externalmethod(REQUEST)" if you can do that. - Original Message - From: "Andreas Pauley" [EMAIL PROTECTED] To: "Zope" [EMAIL PROTECTED] Sent: Wednesday, September 13, 2000 2:49 PM Subject: [Zope] Passing parameters to

Re: [Zope] How to generate an Object ID automatically

2000-09-15 Thread Andy McKay
There are many different options one simple way I used at the beginning was to base it on date and time: dtml-call "REQUEST.set('id','Faqs'+_.str(_.int(ZopeTime(" dtml-with "Faqs.createInObjectManager(REQUEST['id'], REQUEST)" ... This creates an id along the lines of Faqs958889275 -

[Zope] Folderish DTML Document

2000-09-19 Thread Andy McKay
absolute_url on the object seems to be broken. -- Andy McKay, Developer. ActiveState. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] Folderish DTML Document

2000-09-19 Thread Andy McKay
, but Chris if you are out there any insight would be helpful. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 19, 2000 5:19 PM Subject: [Zope] Folderish DTML Document Am I totally off my head or is it possible to make a

Re: [Zope] Folderish DTML Document

2000-09-20 Thread Andy McKay
Andy McKay wrote: Well here's my proclamation. It cant be done... See Toby's comment ;-) If you want to be able to do dtml-var myFolderishThing then you need to subclass Folder and give it a __str__ or __call__ method. I'd love to know what the difference is between these and which one

Re: [Zope] How-to trap login error ?

2000-09-21 Thread Andy McKay
That works fine, but Id rather use the Zope authentication / authorization system thats there than try to write my own along with the inevitable problems that can occur. Chris - you correct the comment says something about this could use standard_error_message I did a quick hack of changing

[Zope] Re: Patch to let Authorized Exceptions use standard_error_message

2000-09-22 Thread Andy McKay
done. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: "William JOYE" [EMAIL PROTECTED]; [EMAIL PROTECTED]; "Tom Deprez" [EMAIL PROTECTED] Sent: Friday, September 22, 2000 1:26 AM Subject

[Zope] Exporting

2000-09-22 Thread Andy McKay
How do I export a folder using the Import/Export tab with exporting all the subobjects? (Stupidest suggestion so far: delete all subjects, export, undelete) -- Andy McKay, Developer. ActiveState. ___ Zope maillist - [EMAIL PROTECTED] http

[Zope] Re: Can't export only an ObjectManager

2000-09-25 Thread Andy McKay
Yes sorry I mean without (Friday afternoon y'know) A hack is my best bet. Sigh. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, September 25, 2000 2:42 AM Subject: Can't export o

Re: [Zope] Bug or feature? :-)

2000-09-26 Thread Andy McKay
Nice. Sorry I dont think that counts as a feature :) You could do a world of hurt with that. Hello, Zopers. Try this: Create a DTML Method in Zope. Give it an id of 'target', and give it the following body: Woohoo! Now manage the folder that it is contained in. Instant tab

Re: [Zope] Zope 2.2 getUserById error

2000-09-29 Thread Andy McKay
getUserByID seems to have been added in Zope 2.2, I added in a method def getUserById(self, id, default=''): """Return the user corresponding to the given id. """ try: return self.getUser(id) except: raise 'LoginRequired', loginScreen into GUF and it works

Re: [Zope] SQL errors

2000-10-01 Thread Andy McKay
Of course, thank you. That works just fine. - Original Message - From: "Dieter Maurer" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, September 29, 2000 2:55 PM Subject: Re: [Zope] SQL errors Andy McKay writes: Using ZO

Re: [Zope] Sorting and accessing elements in the

2000-10-03 Thread Andy McKay
You need to let item=sequence-item since sequence-item is interpreted in python as a mathemtical operation sequence minus item. dtml-var standard_html_header dtml-call "REQUEST.set('keys', REQUEST.form.keys())" dtml-call "keys.sort()" dtml-in keys dtml-let item=sequence-itemdtml-var item:

Re: [Zope] Sorting and accessing elements in the

2000-10-03 Thread Andy McKay
Although this could be simpler (you dont need the REQUEST.set): dtml-in "REQUEST.form.keys()" sort dtml-let item=sequence-itemdtml-var item: dtml-var "REQUEST.form[item]" /dtml-let /dtml-in - Original Message - From: "Max Møller Rasmussen" [EMAIL PROTECTED] To: [EMAIL

Re: [Zope] List

2000-10-03 Thread Andy McKay
If you want to put a string into a list you can use dtml-var "_.string.split('a|b', '|')" to split a string up. What database are you using and what are actually getting back? - Original Message - From: "Tom Deprez" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 03,

Re: [Zope] how to access the items of an array...

2000-10-03 Thread Andy McKay
Use the in tag: dtml-in form_time_in dtml-var sequence-item /dtml-in - Original Message - From: "zope" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 03, 2000 7:10 AM Subject: [Zope] how to access the items of an array... Hi In a form, I defined an array variable as

Re: [Zope] redirect to user's folder not working

2000-10-05 Thread Andy McKay
AUTHENTICATED_USER is not a string so need to cast it before doing the string operation: dtml-call "RESPONSE.redirect(URL1 + '/' + _.str(AUTHENTICATED_USER))" dtml-var AUTHENTICATED_USER effectively does the same thing, it calls the string representation of AUTHENTICATED_USER. - Original

Re: [Zope] Site search with squishdot and own products

2000-10-05 Thread Andy McKay
One day with nothing better to do I wrote an external method to merge catalogs, but I got stuck on the simple problem that you still have to load the whole query into memory and realised it got very inefficient. In the end I decided it was easier to have one more catalog do everything. -

Re: [Zope] AUTHENTICATED_USER (or something) making me crazy

2000-10-07 Thread Andy McKay
You can check the username of AUTHENTICATED_USER as in dtml-if "AUTHENTICATED_USER.getUserName()=='Anonymous User'" (To all the people who complained about me using _.str(...)) or you might want to check the role as in dtml-if "AUTHENTICATED_USER.has_role('Anonymous User')". - Original

Re: [Zope] Zope.org Feature Request - Product Download Counter

2000-10-10 Thread Andy McKay
Of course the only problem with a hit counter is that high traffic requests mean continually writing the object into the ZODB each time it gets hit / downloaded, whatever. Thats why I release FSCounter which uses the file system. I would like to expand this to cover multiple objects... -

Re: [Zope] How: /foo?var=bar equiv to /foo/bar

2000-10-10 Thread Andy McKay
ZSQLMethods does exactly that, have a look at that. Look at michel's wiki. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Heymann William" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, October 10, 2000 3:56 AM Subject: Re: [Zope] How: /foo?var=bar equiv to

Re: [Zope] Zope.org Feature Request - Product Download Counter

2000-10-10 Thread Andy McKay
PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, October 10, 2000 1:15 PM Subject: Re: [Zope] Zope.org Feature Request - Product Download Counter Andy McKay wrote: Of course the only problem with a hit counter is that high traffic requests mean continually writing

Re: [Zope] Any limit on number of users?

2000-10-12 Thread Andy McKay
Login Manager or Generic User Folder and Shanes excellent BTreeFolder provide a solution for a large number of users. - Original Message - From: "Dieter Maurer" [EMAIL PROTECTED] To: "Paul Winkler" [EMAIL PROTECTED] Cc: "Zope mailing list" [EMAIL PROTECTED] Sent: Thursday, October 12,

[Zope] IIS and PCGI

2000-10-17 Thread Andy McKay
) for example http://127.0.0.1/zope.pcgi/manage brings up 404. Using IIS 5.0, Win2k, Zope 2.2.1. Anyone encountered this and know the solution? Thanks. -- Andy McKay, Developer. ActiveState. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org

  1   2   3   4   5   6   >