[Zope] Is this a bug? Posting data to another DTML document

2000-08-15 Thread Jarkko Veijalainen

I developed my project on Zope 2.1.6 on NT environment.
Last week i installed Zope 2.2.0 on Solaris 8.
i transferred my project to 'new' Zope.

But when i try to access my DTML document comes authentication window. I
can't authenticate it in any of my usernames.

Traceback (innermost last): File
/usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222, in
publish_module File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py,
line 187, in publish File
/usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171, in publish
File /usr/local/Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160, in
mapply (Object: email_accounts) File
/usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112, in
call_object (Object: email_accounts) File
/usr/local/Zope-2.2.0/lib/python/OFS/DTMLDocument.py, line 170, in __call__
(Object: email_accounts) File
/usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 502, in
__call__ (Object: email_accounts) File
/usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Let.py, line 147, in
render (Object: resDTML="Imap('Authentication',REQUEST,1)") File
/usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Util.py, line 337, in
eval (Object: resDTML.cn) (Info: resDTML) File , line 0, in ? File
/usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Util.py, line 142, in
careful_getattr File /usr/local/Zope-2.2.0/lib/python/OFS/DTMLMethod.py,
line 189, in validate (Object: email_accounts) File
/usr/local/Zope-2.2.0/lib/python/AccessControl/SecurityManager.py, line 139,
in validate File
/usr/local/Zope-2.2.0/lib/python/AccessControl/ZopeSecurityPolicy.py, line
159, in validate Unauthorized: cn 
case is that i have login window which passes user information to another
DTML document. User information is different than my zope user.

ex. i log into my Zope management as jarkkov (so that stays at my browsers
cache, until i restart browser)
i type in my login document '66' and 'password', these values are
submitted to another document called email_accounts, which uses external
method with submitted parametres and return values into email_accounts
document. Above error message is shown. in zope 2.1.6 environment it did'nt
happen.

I tied to create all kind of users on users folder and tried to give all
permissions to anonymous user and tried to access anonymously thrue another
browser, but nothing seems to work.

This is essential that i can anonymously access to this DTML documents and
submit any kind of values on my REQUEST.

All the documents are on subfolder called testweb and i noticed that Zope
2.2.0, i have ownership in all documents and folders. testweb is owned
directly by jarkkov (testweb/acl_users) and all documents in that folder. 

I also tried post data to email_accounts thrue browser like this:
http://194.42.57.17:8080/proto_test/email_acounts?cn=66&password=1234
on Zope 2.1.6 it worked, but with Zope 2.2.0, ZServer asked authentication.

I can't remove ownership or can i? Is it the blocking my access anonymously
to documents?
What i have to do to make my project work on new Zope version?

jarkkov




___
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] UserDb, GUF, LoginManager, etc, which one?

2000-08-15 Thread Bak @ kedai

On Mon, 14 Aug 2000, Martijn Faassen wrote:
> Hi there,
>
> What I want is an acl_users equivalent that has an SQL database backend.
> I want an easy to understand, easy to install solution for this that
> has some kind of future in Zope land. Currently I'm deploying 2.1 but
> that should change into 2.2 eventually.
>
> UserDb isn't developed anymore. Besides, it might not work for 2.2.
> (does it?)
>

i'm using userdb on 2.2.0 and it has been smooth sailing.   setup is easy.  
but there are several drawbacks:
-password is not encrypted.
-it's not maintained - probably means that it's stable. until a new version 
of zope changes this, of course.

i've tried GUF, but decided to stick with UserDB until i really have to 
change.  login manager, i havenot tried yet

note:  userdb are not installed on a fresh zope2.2.0, but upgraded from 
2.1.6.  but i do remember installing on a fresh zope2.2.0 and encountered no 
problems.

___
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] DTML: fetch an object by its url?

2000-08-15 Thread R. David Murray

On Wed, 16 Aug 2000, Scott Shepherd wrote:
> In DTML is it possible to get an object using its url? Something like
> 
> ...

Something like.

I asked this question a long time ago, and refound the answer by
searching the zope.nipltd.com mailing list archives using the
search terms 'resolve and url'.



I also have a vauge memory that this may be a depricated interface
and that 2.2 has some new method you should use instead.  But I couldn't
come up with a search phrase to get the right message for that one .

--RDM


___
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] String Module ??? newbie question

2000-08-15 Thread R. David Murray

On Wed, 16 Aug 2000, Indra Gunawan wrote:
> my installation is Zope 2.2.0 on W2K.
> I try to use the find method as follow, why can't it runs?
> 
> it said Attribute error: find

_.string.find

--RDM


___
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] How to use RESPONSE.redirect ?

2000-08-15 Thread R. David Murray

On Tue, 15 Aug 2000, Kapil Thangavelu wrote:
> #example call to above
> #

If your original form submits using the GET method, then QUERY_STRING
will contain the already URL encoded parameters that the browser
sent originally.

DTML also has a url_encode format you can use to cause a string to
be url encoded if it isn't already.  Check the dtml reference.

--RDM


___
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] String Module ??? newbie question

2000-08-15 Thread Indra Gunawan

Hello,
my installation is Zope 2.2.0 on W2K.
I try to use the find method as follow, why can't it runs?

it said Attribute error: find
-IGUN-


___
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] How to use RESPONSE.redirect ?

2000-08-15 Thread Kapil Thangavelu

Stuart Foster Wrote:
> I want to use redirect to call another form passing the current form, how
> can I do that.
> 
> 
> 

Hi Stuart,

i ran into the same problem a little while ago. i was trying to pass the
user around to the proper display&process page(with inputs inplace)
after a logic page that determined where they should go based on their
inputs. IMO, The crux of the problem is that Zope as a web development
platform should include the urlparse lib from the python core more over
this problem and others like it should be remedied i believe by a
standard method of extending the modules in the _ namespace with thread
safe modules that a developer deems nesc. OK enough soap box... i ended
up reimplementing the nesc. functionality in a python method and created
another method to implement complete form insertion in much the same the
style that of some ACS(arsdigita) utiltiy methods do. here they are,
usage examples are included in the code.

of course this solution requires evan simpson's python methods product
be installed on your zope.

Cheers Kapil


name: url_encode_form_vars
args: namespace

# depends on url_encode_vars

try:
vars=namespace['REQUEST'].form
method =  namespace.getitem('url_encode_vars', 0)
return method(vars)
except:
pass



#example call to above
#







name: url_encode_vars
args:



'''
Code straight from urllib minor
changes to get around assignment to sub_scripts,
access to string module, and namepace issues

expects a dictionary of key value pairs to be encoded

example call 


'''

global always_safe, quote, quote_plus
always_safe = _.string.letters + _.string.digits + '_,.-'

def quote(s, safe = '/'):
global always_safe
safe = always_safe + safe
res = []
for c in s:
if c not in safe:
res.append('%%%02x'%ord(c))
else:
res.append(c)
return _.string.joinfields(res, '')


def quote_plus(s, safe='/'):
global quote
if ' ' in s:
res = []
# replaec ' ' with '+'
l = _.string.split(s, ' ')
for i in l:
res.append(quote(i, safe))
return _.string.join(res, '+')
else:
return quote(s, safe)


def urlencode(dict):
 global quote_plus
 l = []
 for k, v in dict.items():
 k = quote_plus(str(k))
 v = quote_plus(str(v))
 l.append(k + '=' + v)
 return _.string.join(l, '&')


return urlencode(vars)



___
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] DTML: fetch an object by its url?

2000-08-15 Thread Scott Shepherd

In DTML is it possible to get an object using its url? Something like

...

Similar to

...

but what I have is the object's zserver url, not its name in the 
current namespace.

TIA,
Scott

___
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] OT: UTC

2000-08-15 Thread David Trudgett

At 2000-08-16 01:54 +, Curtis Maloney <[EMAIL PROTECTED]> wrote:

>So, when are you joining me in working in UTC?  I mean, really.  We deal with
>people globally on a daily basis.  Why bother with all this timezone nonsens?
>  So I get up and out of bed at 2100, get to work at a fresh and early 2300,

You get up late! Myself, I'm up and at 'em at a brisk 2000 (in theory).  :-)

Cheers.

David Trudgett



___
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] Hotfixes: serious suggestion

2000-08-15 Thread Curtis Maloney

On Wed, 16 Aug 2000, David Trudgett wrote:
> At 2000-08-15 10:18 +0200, "Frank Tegtmeyer" <[EMAIL PROTECTED]> wrote:
> >The current format is Hotfix_08_09_2000, my proposed format is
> >  Hotfix_2000-08-09.
> >This is the ISO 8601 format (abbreviated form).
> >
> >Reasoning:
> >
> >First of all Zope is a product of a north american company but is used
> >worldwide. Not all countries use the american form of dates, so it would
> >be nice to have a standardized one (in my opinion this applies also to the
> >standard date functions in Zope).
> >
> >The reasons for establishing ISO 8601 apply here as well:
> >- ordering of month and day are different in Europe and America,
> >   this leads to difficulties interpreting date values
> >- ISO dates are sortable by string functions
> >- ISO dates are easy to parse by humans AND programs
> >
> >Opinions?
>
> I agree. If everyone standardised on ISO 8601 in written date and time
> formats, the world would be a saner place. Writing MM-DD-YY(YY) is just
> silly in my opinion, no matter how you like to say it out loud. It may have
> been acceptable in times past (like when the Internet was not nearly
> globally ubiquitous), but these days it's just an anachronism (as is
> DD-MM-YY, because it is easily mistaken for MM-DD-YY). Likewise for 12 hour

We had a similar discussion here at work, and simply put "Largest to 
smallest" makes the most sense.  / MM / DD / HH : MM : SS

> time. There's only one 14:00 in the day, and that's the way I like it! ;-)
>

So, when are you joining me in working in UTC?  I mean, really.  We deal with 
people globally on a daily basis.  Why bother with all this timezone nonsens? 
 So I get up and out of bed at 2100, get to work at a fresh and early 2300, 
have lunch when the sun is high at 0200, and finally make it home, on an 
early day, for dinner at 0900. (o8

> David Trudgett
>
>
Confuses people when they ask you for the time, tho. (o8

Have a better one,
Curtis Maloney

___
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] Zope bug or my stupidity?

2000-08-15 Thread Jonothan Farr

Once again I'll point out that I have a patch that allows sequence_item. I've
submitted it to the collector but it was rejected because of the AFAIK
not-yet-scheduled "named dtml-in" feature.

http://www.zope.org/Members/jfarr/Patches/dtml-in-sv/

--jfarr

Hardware, n.:
The parts of a computer system that can be kicked.

- Original Message -
From: Curtis Maloney <[EMAIL PROTECTED]>
To: Peter Hernberg <[EMAIL PROTECTED]>; Chris Withers <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, August 15, 2000 5:51 PM
Subject: Re: [Zope] Zope bug or my stupidity?


> On Wed, 16 Aug 2000, Peter Hernberg wrote:
> > --- Chris Withers <[EMAIL PROTECTED]> wrote:
> > > Peter Hernberg wrote:
> > > > Here's the method that calls that method:
> > > > 
> > >
> > > Why the quotes?
> > >
> > > try  instead
> >
> > But then I get the following weird error:
> > Traceback (innermost last):
> *snip*
>
> > (Object: objectValues('Story'))
> >   File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_Util.py, line
> > 337, in eval
> > (Object: sequence-index == 0)
> > (Info: index)
> >   File , line 0, in ?
> > NameError: (see above)
> >
> > I am fairly new to zope, but this seems pretty weird, especially the method
> > returning its dtml source.
>
> And you've been caught by one of the most common (and understandable) newbie
> mistakes. (o8.
>
> 'sequence-item' is not a valid Python name.  To Python it looks like  "
> sequence - item ", the mathematical expression.
>
> This is a holdover from days of old, and not much has been done to deprecate
> it (all my shouting, and that of others, has so far come to naught.)
>
>   will work, because that is in Zope Land... no
> quotes.
>
>  is the Python Land equivalent.  the _[] name
> space lookup is your friend for this sort of problem.
>
> 
>
> should be written as:
>
> 
>
> >
> > =
> > Peter Hernberg
> > An all-purpose, antibacterial, lemon-scented geek/nerd
> >
> I guess I should really try to rally people to send this to the collector...
>
> Have a better one,
> Curtis Maloney.
>
> 
>
> ___
> 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 )




Re: [Zope] How to use RESPONSE.redirect ?

2000-08-15 Thread Curtis Maloney

On Wed, 16 Aug 2000, Stuart Foster wrote:
> I want to use redirect to call another form passing the current form, how
> can I do that.
>
> 
>
> If I do
> 
> The current form isn't being passed ?
>
If you want to pass the form variables, you're in for a fight. (o8
otherwise, you could simply try :

 instead of a redirect.

If you want to make sure only the correct form vars are passed, you could 
flub it with something like:



If this doesn't help, some more detail on your part might. (o8

> Any ideas..
>
> TIA
> Stuart
>

Have a better one,
Curtis.

___
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] Using ZCatalog with SiteAccess in Zope 2.2

2000-08-15 Thread Christian Scholz

Hi!

> ZCatalog does not seem to like Site Access2
> 
> i applied the patch from http://www.zope.org/Members/4am//SiteAccess/patch
> 
> and then updated Zope with all the patches from CVS
> 
> and it still gives me:
> 
> 
> Error Type: IndexError
> Error Value: list index out of range
> 
> 
> if i get rid of SiteRoot from the folder, then ZCatalog works, but Z Search
> Interface doesnt :/
> 
> any help would be much appreciated

Now I also encountered this thing as I needed to have also ZCatalog
and some AccessRule in the same folder..

The problem ist line 321 of ZCatalog.py:

path=urllib.unquote(string.split(URL2, REQUEST.script)[1])

And here the actual problem is that SiteAccess does not change
REQUEST.script correctly. REQUEST.script begins still with the
wrong server url in my case. Thus it does not match the first part
of URL2.

As I understand the meaning of this to get only the path of an object
I replaced REQUEST.script with REQUEST.SERVER_URL thus getting

path=urllib.unquote(string.split(URL2, REQUEST.SERVER_URL)[1])

and it worked (SERVER_URL _is_ changed by SiteRoot and also by my
Access Rule (actually my AccessRule does also the SiteRoot job
as I can set the SERVER_URL more dynamic then)).

I dunno if somewhere in Zope REQUEST.script is supposed to be
different to the Server URL, so I might have introduced another
bug with this patch ;-)

I guess I should also put it into the collector, right?

cheers,
  Christian

PS: I also applied the given ZCatalog patch found at SiteRoot/patch
I dunno if this makes a difference, though.. ;)
(means: If it's is also working without it..)


> 
> --
> best regards, tav
> 
> 
> ___
> 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 )
> 
> 

-- 
Christian Scholz   MrTopf@IRC
COM.lounge  http://comlounge.net/
communication & design   [EMAIL PROTECTED]

___
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] 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: "Andy McKay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, August 15, 2000 5:44 PM
Subject: Re: [Zope] copy / paste support


> i had horrible cut and paste problems with my python product in 2.1.6.
Then
> when I imported instantiations of my product into a fresh install of 2.2,
I
> still am having problems.  However, if I create a new instance of the
product
> in 2.2, it all seems to work fine.
>
> Andy McKay wrote:
>
> > 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: "Andy McKay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Tuesday, August 15, 2000 4:46 PM
> > Subject: Re: [Zope] copy / paste support
> >
> > > cut and paste of catalog aware products is broken pre 2.2.  i think it
is
> > all
> > > fixed in 2.2+ ?
> > >
> > > Andy McKay wrote:
> > >
> > > > When trying to copy an item I get the following item on paste:
> > > >
> > > > One or more items referred to in the clipboard data was not found.
The
> > item
> > > > may have been moved or deleted after you copied it.
> > > >
> > > > This is a custom python class which is catalogued. Ive no idea why
this
> > is
> > > > happening. Any ideas?
> > > >
> > > > --
> > > >  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://lists.zope.org/mailman/listinfo/zope-announce
> > > >  http://lists.zope.org/mailman/listinfo/zope-dev )
> > >
> > > --
> > > Terry Kerr ([EMAIL PROTECTED])
> > > Adroit Internet Solutions Pty Ltd (www.adroit.net)
> > > Phone:   +613 9563 4461
> > > Fax: +613 9563 3856
> > > Mobile:  +61 414 938 124
> > > ICQ: 79303381
> > >
> > >
> > >
> >
> > ___
> > 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 )
>
> --
> Terry Kerr ([EMAIL PROTECTED])
> Adroit Internet Solutions Pty Ltd (www.adroit.net)
> Phone:   +613 9563 4461
> Fax: +613 9563 3856
> Mobile:  +61 414 938 124
> ICQ: 79303381
>
>
>


___
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] Zope bug or my stupidity?

2000-08-15 Thread Curtis Maloney

On Wed, 16 Aug 2000, Peter Hernberg wrote:
> --- Chris Withers <[EMAIL PROTECTED]> wrote:
> > Peter Hernberg wrote:
> > > Here's the method that calls that method:
> > > 
> >
> > Why the quotes?
> >
> > try  instead
>
> But then I get the following weird error:
> Traceback (innermost last):
*snip*

> (Object: objectValues('Story'))
>   File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_Util.py, line
> 337, in eval
> (Object: sequence-index == 0)
> (Info: index)
>   File , line 0, in ?
> NameError: (see above)
>
> I am fairly new to zope, but this seems pretty weird, especially the method
> returning its dtml source.

And you've been caught by one of the most common (and understandable) newbie 
mistakes. (o8.

'sequence-item' is not a valid Python name.  To Python it looks like  " 
sequence - item ", the mathematical expression.

This is a holdover from days of old, and not much has been done to deprecate 
it (all my shouting, and that of others, has so far come to naught.)

  will work, because that is in Zope Land... no 
quotes.

 is the Python Land equivalent.  the _[] name 
space lookup is your friend for this sort of problem.



should be written as:



>
> =
> Peter Hernberg
> An all-purpose, antibacterial, lemon-scented geek/nerd
>
I guess I should really try to rally people to send this to the collector...

Have a better one,
Curtis Maloney.



___
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] copy / paste support

2000-08-15 Thread Terry Kerr

i had horrible cut and paste problems with my python product in 2.1.6.  Then
when I imported instantiations of my product into a fresh install of 2.2, I
still am having problems.  However, if I create a new instance of the product
in 2.2, it all seems to work fine.

Andy McKay wrote:

> 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: "Andy McKay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, August 15, 2000 4:46 PM
> Subject: Re: [Zope] copy / paste support
>
> > cut and paste of catalog aware products is broken pre 2.2.  i think it is
> all
> > fixed in 2.2+ ?
> >
> > Andy McKay wrote:
> >
> > > When trying to copy an item I get the following item on paste:
> > >
> > > One or more items referred to in the clipboard data was not found. The
> item
> > > may have been moved or deleted after you copied it.
> > >
> > > This is a custom python class which is catalogued. Ive no idea why this
> is
> > > happening. Any ideas?
> > >
> > > --
> > >  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://lists.zope.org/mailman/listinfo/zope-announce
> > >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
> > --
> > Terry Kerr ([EMAIL PROTECTED])
> > Adroit Internet Solutions Pty Ltd (www.adroit.net)
> > Phone:   +613 9563 4461
> > Fax: +613 9563 3856
> > Mobile:  +61 414 938 124
> > ICQ: 79303381
> >
> >
> >
>
> ___
> 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 )

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax: +613 9563 3856
Mobile:  +61 414 938 124
ICQ: 79303381




___
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] how to generate a Vcard ?

2000-08-15 Thread Tino Wildenhain

Hi,

Didier Georgieff wrote:
> 
> HEllo,
> 
> I'm looking for providing a way to generate a vcard for desktop
> adressbooks.
> I guess someone already thought about that but i can't find
> anything on zope.org or mail archive.
> 
> Any tip out there ?

Just send your self a vcard and look at the text...
(The plain message of course)

HTH
Tino Wildenhain

___
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] [Ann] Another Zope Book

2000-08-15 Thread Bill Anderson

Dieter Maurer wrote:
> 
> Dear Zopistas,
> 
> I plan to write another book about Zope: "Building Dynamic WebSites
> with Zope".
> 
> The book idea:
> 
>   Realize a demanding dynamic WebSite with Zope.
>   Describe everything that is necessary for this purpose.
> 
> This will contain:
>   Concepts: HTTP, HTML, Zope, Databases, JavaScript, ...
>   Components: catalogs, sessions, topics, news, discussions,
>   stores, mails, LoginManager, customizers, workflows, ...
>   Programming: building your own components (ZClasses and
>Product API)

[...]
 
> What do you think about my plan?
> Do you feel, it is worth persuing or redantant in view of the
> official Zope book?

I think it sounds great. Of course, I may be biased since that's some of what I am 
doing for mine, but IMO it is an
excellent idea.


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] PROBLEM(100) ZServer Computing default hostname

2000-08-15 Thread Bill Anderson

Chris Withers wrote:
> 
> George Osvald wrote:
> > 2000-08-15T17:35:20 PROBLEM(100) ZServer Computing default hostname
> >
> > ZOPE is running OK though. Is there a problem I do not see?
> 
> Nah, you're just running in debug mode...

But, why is it a 'PROBLEM', why not 'INFO' ?


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Hotfixes: serious suggestion

2000-08-15 Thread David Trudgett

At 2000-08-15 10:18 +0200, "Frank Tegtmeyer" <[EMAIL PROTECTED]> wrote:


>The current format is Hotfix_08_09_2000, my proposed format is
>  Hotfix_2000-08-09.
>This is the ISO 8601 format (abbreviated form).
>
>Reasoning:
>
>First of all Zope is a product of a north american company but is used
>worldwide. Not all countries use the american form of dates, so it would
>be nice to have a standardized one (in my opinion this applies also to the
>standard date functions in Zope).
>
>The reasons for establishing ISO 8601 apply here as well:
>- ordering of month and day are different in Europe and America,
>   this leads to difficulties interpreting date values
>- ISO dates are sortable by string functions
>- ISO dates are easy to parse by humans AND programs
>
>Opinions?

I agree. If everyone standardised on ISO 8601 in written date and time 
formats, the world would be a saner place. Writing MM-DD-YY(YY) is just 
silly in my opinion, no matter how you like to say it out loud. It may have 
been acceptable in times past (like when the Internet was not nearly 
globally ubiquitous), but these days it's just an anachronism (as is 
DD-MM-YY, because it is easily mistaken for MM-DD-YY). Likewise for 12 hour 
time. There's only one 14:00 in the day, and that's the way I like it! ;-)

David Trudgett



___
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] 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: "Andy McKay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, August 15, 2000 4:46 PM
Subject: Re: [Zope] copy / paste support


> cut and paste of catalog aware products is broken pre 2.2.  i think it is
all
> fixed in 2.2+ ?
>
> Andy McKay wrote:
>
> > When trying to copy an item I get the following item on paste:
> >
> > One or more items referred to in the clipboard data was not found. The
item
> > may have been moved or deleted after you copied it.
> >
> > This is a custom python class which is catalogued. Ive no idea why this
is
> > happening. Any ideas?
> >
> > --
> >  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://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
>
> --
> Terry Kerr ([EMAIL PROTECTED])
> Adroit Internet Solutions Pty Ltd (www.adroit.net)
> Phone:   +613 9563 4461
> Fax: +613 9563 3856
> Mobile:  +61 414 938 124
> ICQ: 79303381
>
>
>


___
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] copy / paste support

2000-08-15 Thread Terry Kerr

cut and paste of catalog aware products is broken pre 2.2.  i think it is all
fixed in 2.2+ ?

Andy McKay wrote:

> When trying to copy an item I get the following item on paste:
>
> One or more items referred to in the clipboard data was not found. The item
> may have been moved or deleted after you copied it.
>
> This is a custom python class which is catalogued. Ive no idea why this is
> happening. Any ideas?
>
> --
>  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://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax: +613 9563 3856
Mobile:  +61 414 938 124
ICQ: 79303381




___
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] how to generate a Vcard ?

2000-08-15 Thread Didier Georgieff

HEllo,

I'm looking for providing a way to generate a vcard for desktop 
adressbooks.
I guess someone already thought about that but i can't find 
anything on zope.org or mail archive.

Any tip out there ?

Didier.

___
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] restrict -tree tag global navigation- to subfolders

2000-08-15 Thread Marcus Schopen

Hi,

the answer to my post

[Zope] restrict -tree tag global navigation- to subfolders
Marcus Schopen [EMAIL PROTECTED]
Tue, 15 Aug 2000 00:00:42 +0100 

seems to be  .

Right?

Bye
Marcus
__

 (0>   Marcus Schopen
 //\   Bielefeld, Germany
 V_/_
__


___
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] Managing subobjects

2000-08-15 Thread Menard . Jean-Francois

(I speak frech, sorry for my english!)
I created a ZClass, zRow.  This class can contain other ZClass: zField_Text,
zField_Date, etc.
This let me define the columns contained in a zRow.
I then defined a Class zTable, wich contains zRows.

Question:

-  In my manage tabs, I needed a have a tab "Define columns".  Do
achieve this, I inserted a ZRow Instace (with id Definition) in my zTable
product definition, and a method called Define_Columns, containing:


  


And I defined a view "Define Columns" pointing to that method.  When
i click on the "Define Columns", I can see the manage screen of the instance
"Definition", that's what I wantwd.

But when Add a zField, the instance is create in the zTable level,
not IN Definition instance!  All the classes are Based on CatalogAware,
ObjectManager.

Any ideas how to fix that?  Any sugestion how I could implement
this?

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


___
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] copy / paste support

2000-08-15 Thread Brian Lloyd

> Nope, using cookies for authentication actually. Curious what 
> the cookies
> are used for now..

They are used to carry around a marshalled list of object 
ids that identify the items to cut/copied.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



___
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] Seeking Zope Volunteers

2000-08-15 Thread Lyn A Headley


Andrew> campaign cannot accept | contributions from corporations,
Andrew> PACs or special interest organizations so | we rely on
Andrew> contributions from individuals like you.

Andrew> And you are now Lyno Sullivan, Spammer and in violation of
Andrew> your own laws.

What is your problem?  I don't see you flaming people for posting zope
job advertisements or other requests for help with zope projects.
This guy's post is directly relevant to zope and free software.
Calling it spam is way way _way_ out of line, and you should
apologize.

Andrew> Too bad I don't even live in the same country as you. Or
Andrew> in the same hemisphere. I don't think too many people
Andrew> subscribed to the list signed on to a technical list for
Andrew> Political Announcements.

Perhaps less narrow-minded folks would see the advancement of Free
software in ANY arena as a positive step, regardless of whether it
happened in their country of origin.

-Lyn

___
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] Another Product question

2000-08-15 Thread Loren Stafford

All modules published by Zope must have a "doc string" i.e. a Python comment
defining the content before any other Python code. For example:

""" Doc string for Frame Work Doc product """

import string

# etc

-- Loren

- Original Message -
From: "Daniel Rusch" <[EMAIL PROTECTED]>
To: "Loren Stafford" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: August 15, 2000 12:20 PM
Subject: [Zope] Another Product question


> Thanks,
>
> I had made a small misspelling which did not generate any errors but which
> hosed the Product.
>
> New problem,
>
> My product appears on the Product Management at /Control_Panel / Products
> page and in the drop down of Available Objects. I select my Product from
the
> drop down
> and I get my add product page. But when i fill out the page and click add,
I
> get the following error message:
>
>
>Zope Error
>
>Zope has encountered an error while publishing this resource.
>
>Debugging Notice
>
>Zope has encountered a problem publishing your object.
>
>Missing doc string at:
> http://hal9000:8080/manage_addProduct/FrameWorkDoc/manage_addFrameWorkDoc
>
>
>Troubleshooting Suggestions
>
> 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.
>
>For more detailed information about the error, please refer to
> the HTML source for this page.
>
>If the error persists please contact the site maintainer. Thank
> you for your patience.
>
>
> Traceback (innermost last):
>   File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
> 214, in publish_module
>   File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
> 179, in publish
>   File /home/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py, line 202,
in
> zpublisher_exception_hook
>   File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
> 151, in publish
>   File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/BaseRequest.py,
> line 348, in traverse
>   File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/HTTPResponse.py,
> line 521, in debugError
> NotFound: (see above)
>
> Any thoughts ???
>
> Dan
>
> Loren 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 the class it defines. If you want the class to be
> > subclassable by ZClasses, you also have to registerBaseClass. Here's an
> > example copied from the __init__.py of my Xron product:
> >
> >   context.registerClass(
> > XronDTMLMethod.XronDTMLMethod,
> > permission = 'Add Scheduled Method',
> > constructors = (
> >   XronDTMLMethod.manage_addXronDTMLMethodForm,
> >   XronDTMLMethod.manage_addXronDTMLMethod),
> > icon = 'www/Event.gif')
> >   context.registerBaseClass(XronDTMLMethod.XronDTMLMethod)
> >   context.registerHelp()
> >
> > -- HTH
> > -- Loren
> >
> > ___
> > 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 )




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://www.ActiveState.com
 Programming for the People


- Original Message -
From: "Daniel Rusch" <[EMAIL PROTECTED]>
To: "Loren Stafford" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, August 15, 2000 12:20 PM
Subject: [Zope] Another Product question


> Thanks,
>
> I had made a small misspelling which did not generate any errors but which
> hosed the Product.
>
> New problem,
>
> My product appears on the Product Management at /Control_Panel / Products
> page and in the drop down of Available Objects. I select my Product from
the
> drop down
> and I get my add product page. But when i fill out the page and click add,
I
> get the following error message:
>
>
>Zope Error
>
>Zope has encountered an error while publishing this resource.
>
>Debugging Notice
>
>Zope has encountered a problem publishing your object.
>
>Missing doc string at:
> http://hal9000:8080/manage_addProduct/FrameWorkDoc/manage_addFrameWorkDoc
>
>
>Troubleshooting Suggestions
>
> 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.
>
>For more detailed information about the error, please refer to
> the HTML source for this page.
>
>If the error persists please contact the site maintainer. Thank
> you for your patience.
>
>
> Traceback (innermost last):
>   File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
> 214, in publish_module
>   File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
> 179, in publish
>   File /home/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py, line 202,
in
> zpublisher_exception_hook
>   File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
> 151, in publish
>   File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/BaseRequest.py,
> line 348, in traverse
>   File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/HTTPResponse.py,
> line 521, in debugError
> NotFound: (see above)
>
> Any thoughts ???
>
> Dan
>
> Loren 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 the class it defines. If you want the class to be
> > subclassable by ZClasses, you also have to registerBaseClass. Here's an
> > example copied from the __init__.py of my Xron product:
> >
> >   context.registerClass(
> > XronDTMLMethod.XronDTMLMethod,
> > permission = 'Add Scheduled Method',
> > constructors = (
> >   XronDTMLMethod.manage_addXronDTMLMethodForm,
> >   XronDTMLMethod.manage_addXronDTMLMethod),
> > icon = 'www/Event.gif')
> >   context.registerBaseClass(XronDTMLMethod.XronDTMLMethod)
> >   context.registerHelp()
> >
> > -- HTH
> > -- Loren
> >
> > ___
> > 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 )




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 McKay'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, August 15, 2000 11:23 AM
Subject: RE: [Zope] copy / paste support


> > When trying to copy an item I get the following item on paste:
> >
> > One or more items referred to in the clipboard data was not
> > found. The item
> > may have been moved or deleted after you copied it.
> >
> > This is a custom python class which is catalogued. Ive no
> > idea why this is
> > happening. Any ideas?
>
> Andy,
>
> You don't happen to have cookies turned off in your
> browser options do you? Cut/Copy/Paste support requires
> that cookies be turned on.
>
> Brian Lloyd[EMAIL PROTECTED]
> Software Engineer  540.371.6909
> Digital Creations  http://www.digicool.com
>
>
>
> ___
> 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] Another Product question

2000-08-15 Thread Daniel Rusch

Thanks,

I had made a small misspelling which did not generate any errors but which
hosed the Product.

New problem,

My product appears on the Product Management at /Control_Panel / Products
page and in the drop down of Available Objects. I select my Product from the
drop down
and I get my add product page. But when i fill out the page and click add, I
get the following error message:


   Zope Error

   Zope has encountered an error while publishing this resource.

   Debugging Notice

   Zope has encountered a problem publishing your object.

   Missing doc string at:
http://hal9000:8080/manage_addProduct/FrameWorkDoc/manage_addFrameWorkDoc


   Troubleshooting Suggestions

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.

   For more detailed information about the error, please refer to
the HTML source for this page.

   If the error persists please contact the site maintainer. Thank
you for your patience.


Traceback (innermost last):
  File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
214, in publish_module
  File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
179, in publish
  File /home/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
  File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
151, in publish
  File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/BaseRequest.py,
line 348, in traverse
  File /home/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/HTTPResponse.py,
line 521, in debugError
NotFound: (see above)

Any thoughts ???

Dan

Loren 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 the class it defines. If you want the class to be
> subclassable by ZClasses, you also have to registerBaseClass. Here's an
> example copied from the __init__.py of my Xron product:
>
>   context.registerClass(
> XronDTMLMethod.XronDTMLMethod,
> permission = 'Add Scheduled Method',
> constructors = (
>   XronDTMLMethod.manage_addXronDTMLMethodForm,
>   XronDTMLMethod.manage_addXronDTMLMethod),
> icon = 'www/Event.gif')
>   context.registerBaseClass(XronDTMLMethod.XronDTMLMethod)
>   context.registerHelp()
>
> -- HTH
> -- Loren
>
> ___
> 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 )




Re: [Zope] How to use RESPONSE.redirect ?

2000-08-15 Thread Peter Bengtsson


Should do it!
or maybe



> 
> 
> If I do
> 
> The current form isn't being passed ?
> 
> Any ideas..
> 
> TIA
> Stuart
> 
> 
> ___
> 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 )




Re: [Zope] Product question

2000-08-15 Thread Loren Stafford


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 the class it defines. If you want the class to be
subclassable by ZClasses, you also have to registerBaseClass. Here's an
example copied from the __init__.py of my Xron product:

  context.registerClass(
XronDTMLMethod.XronDTMLMethod,
permission = 'Add Scheduled Method',
constructors = (
  XronDTMLMethod.manage_addXronDTMLMethodForm,
  XronDTMLMethod.manage_addXronDTMLMethod),
icon = 'www/Event.gif')
  context.registerBaseClass(XronDTMLMethod.XronDTMLMethod)
  context.registerHelp()

-- HTH
-- Loren


___
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] dtml-in and tuples

2000-08-15 Thread Dieter Maurer

Chris Withers writes:
 > Why and how are python tuples (like, this) handled differently (and not
 > in a logical way I can see...) than python lists [like, this]?
The "how" has been explained already.

The "why" is only my guess: support for the widespread idiom
".items()", "objectItems" etc.


Form the DTML reference:

sequence-key
  The key associated with the element in an items
  sequence. An items sequence is a sequence of
  value pairs that represent a mapping from a key
  to a value.


Dieter

___
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] Struggling with Permissions

2000-08-15 Thread Dieter Maurer

Jean Jordaan writes:
 > ... anonymous user despite authentication 
 > (this is from ccDocClass_add). When I arrive I *still* see:
I may be a cache issue as suggested earlier in the list.

However, I may also be a Zope feature.

  When you access an unprotected object, Zope may not
  determine the "true" authenticated user but simply
  return the anonymous user object.


This is nasty, if user objects have additional properties
or additional roles that are inspected in an unprotected
page.


Dieter

___
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] Structured Text Rendering

2000-08-15 Thread Dieter Maurer

Chris Withers writes:
 > I have a list of string.strip'ped strings which I'd like to render using

 > structured text.

 > 
 > Input:
 > """
 > sdfsdf
 > 
 >  - sdfsdf
 >  
 >  - sdfsdf
 > 
 >  - sdfsdf
 > """

 > Structured text output:
 > """
 >  p>sdfsdf
 > 
 >  - sdfsdf
 > 
 >  - sdfsdf
 > 
 >  - sdfsdf
 > 
 > 
 > """
 > (what happened to the < for the  ?
I do not know

 > 2) why just the one paragraph beign picked up, instead of 4?
You said, the list consists of "strip"ped strings?
Structured text uses indentation and newlines to
determine paragraphs and their nesting.

 > 3) why are the '-'s being turned into list items?
This is what structured text should do:
a paragraph (!) starting with '-' or '*' is turned into
a list item.
Because, however, no paragraphs are recognized, I would
not expect to see list items.


Dieter

___
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] Looking up other row records in an SQLMethod?

2000-08-15 Thread Dieter Maurer

Theodore Patrick writes:
 > Is it possible to look up other SQL record values while iterating through a
 > ?
I did not understand your requirements.

But the answer is yes:


  


  
...
  



Dieter

___
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] speeding up dtml-tree

2000-08-15 Thread Dieter Maurer

Clinton Roy writes:
 > i'm using the dtml-tree tag and generating it's contents via external
 > methods. Unfortunately child lookups are quite slow, as well as the
 > icon choosing machinery; is there any way to cache the tree node
 > objects that my external method creates?
The tree tag itself does not cache.

You could implement your own cache in your external methods.

We extended the tree tag with a "has_branches" argument.
If present, it should be a method that tells for the
current object whether it has branches (aka children).
This reduced the number of database accesses (where
our tree data really lives) by an order of magnitude.


In principle, I could give you (or the community) a
patch for "has_branches". Unfortunately, we extended
the tree tag quite drastically (configurable icons, "has_branches",
"input type=image" instead of "a href" tags for tree operations).
Thus, the "has_branches" extension comes embedded in a big
patch that may not be easy to understand.



Dieter

___
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] copy / paste support

2000-08-15 Thread Brian Lloyd

> When trying to copy an item I get the following item on paste:
> 
> One or more items referred to in the clipboard data was not 
> found. The item
> may have been moved or deleted after you copied it.
> 
> This is a custom python class which is catalogued. Ive no 
> idea why this is
> happening. Any ideas?

Andy,

You don't happen to have cookies turned off in your 
browser options do you? Cut/Copy/Paste support requires 
that cookies be turned on.

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



___
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] Product question

2000-08-15 Thread Daniel Rusch

Not to sound like a completely blithering idiot, but how does one go about
setting the permissions to allow it to be created. I'd assume in the
__ac_permissions class attribute. What the specific permission is escapes me.

DR


Andy McKay wrote:

> 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]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 15, 2000 9:11 AM
> Subject: [Zope] Product question
>
> > 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?
> >
> > Dan
> >
> >
> > ___
> > 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] copy / paste support

2000-08-15 Thread Andy McKay

When trying to copy an item I get the following item on paste:

One or more items referred to in the clipboard data was not found. The item
may have been moved or deleted after you copied it.

This is a custom python class which is catalogued. Ive no idea why this is
happening. Any ideas?

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




Re: [Zope] PROBLEM(100) ZServer Computing default hostname

2000-08-15 Thread Chris Withers

George Osvald wrote:
> 2000-08-15T17:35:20 PROBLEM(100) ZServer Computing default hostname
> 
> ZOPE is running OK though. Is there a problem I do not see?

Nah, you're just running in debug mode...

cheers.

Chris

___
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] How to use RESPONSE.redirect ?

2000-08-15 Thread Jonothan Farr

HTTP is stateless. You'll have to build the entire query string and put it into
your redirect URL.
--jfarr

- Original Message -
From: Stuart Foster <[EMAIL PROTECTED]>
To: Zope List <[EMAIL PROTECTED]>
Sent: Tuesday, August 15, 2000 10:19 AM
Subject: [Zope] How to use RESPONSE.redirect ?


> I want to use redirect to call another form passing the current form, how
> can I do that.
>
> 
>
> If I do
> 
> The current form isn't being passed ?
>
> Any ideas..
>
> TIA
> Stuart



___
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] PROBLEM(100) ZServer Computing default hostname

2000-08-15 Thread George Osvald

I'm getting this when starting ZOPE:

2000-08-15T17:35:20 PROBLEM(100) ZServer Computing default hostname

ZOPE is running OK though. Is there a problem I do not see?

George


___
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] ProxyPass - where ???

2000-08-15 Thread Stephen Harrison

NameVirtualHost 123.45.678.9


ServerName www.mydomaine.com.au
ProxyPass / http://demon.server.com.au:8080/okstudio/
ProxyPassReverse / http://demon.server.com.au:8080/okstudio/


This is the setup you want.  Note the trailing /'s.  It means that
anything sent to the root of www.mydomain.com.au will be proxied to
demon.server.com.au:8080/okstudio

The NameVirtualHost directive is necessary for the VirtualHost
directives to work.  It basically says this ip address is used for name
based VIP.

I don't quite see how this can be any use to you though, if you don't
have root access then you presumably cannot edit apache's httpd.conf
file which is where these settings need to be.

How were you running it before, if you don't have this access?

Cheers,
Stephen

-- 
Stephen Harrison[EMAIL PROTECTED]
New Information Paradigms   www.nipltd.com

___
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] How to use RESPONSE.redirect ?

2000-08-15 Thread Stuart Foster

I want to use redirect to call another form passing the current form, how
can I do that.



If I do

The current form isn't being passed ?

Any ideas..

TIA
Stuart


___
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] Getting a document's contents

2000-08-15 Thread R. David Murray

On Tue, 15 Aug 2000, Joshua Brauer wrote:
> I have a folder (Parts) that contains dtml documents that are snippets of code. I 
>want to include some of them which I have listed in a variable (select).
> 
> So I use code like this:
> 
> 
> 
> 
> 
> 

Right idea, but not quite there.  Your 'select' variable holds the
string ids of the objects, but you need the actual objects in order
to get them rendered.  getitem will look up the object given the
id, but you're actually telling it here to look up the value (in
the namespace) of the string 'sequence-item'.  What you get, as
you observed, is the id string stored at that moment in sequence-item.
So you need to loose the quotes so it will look up that id string
in the namespace.  However, there's a wrinkle:  sequence-item
is not a valid python variable name.  So you have to look sequence-item
up in the namespace after all.  You could do:



However, Zope provides a shortcut for this, using the namespace variable
(_) as a dictionary:



This, though, is going to *just* retrieve the object, it won't cause
it to render (I think you'll get the DTML source, which I think is
the representation of the object as string, which is the default
conversion in this context )>.

So what you a really want to do is execute the object after you've
retreived it, which will case it (unless it is a ZClass that is
not subclassed from Renderable) to render itself, which is what
I think you want.  To do that you pass a true flag to getitem as
its second argument:



Now, _ has this additional feature (Chris Whithers would say bug) that it
calls any callable object it is asked to retrieve via the dictionary lookup.
So you should be able to shorten this to:



There's one more subtlety (are you getting tired of this yet?) involving
the need to pass the namespace to called DTML methods, but
I believe _ takes care of that for you in this example so I won't
go into it.  But it's a FAQ, too, so you might want to look for
the answer before it bites you .

--RDM


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

2000-08-15 Thread T.J. Mannos

?


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Withers
Sent: Tuesday, August 15, 2000 9:02 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [Zope] 


Always bear in mind that anything inside double quotes gets executed as
python.

Therefor, the followign lines are not doing what you intend:
Peter Hernberg wrote:
> 
> 

try these instead:



cheers,

Chris

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




Re: [Zope] speeding up dtml-tree

2000-08-15 Thread Andy McKay

A real crude way to hack the dtml-tree tag is to make it always assume there
are child nodes. This prevents the look up and is a lot faster. Think of
Windows Explorer style tag.

--
 Andy McKay, Developer, ActiveState
 http://www.ActiveState.com
 Programming for the People


- Original Message -
From: "Clinton Roy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 14, 2000 9:06 PM
Subject: [Zope] speeding up dtml-tree


> hello folks
>
> i'm using the dtml-tree tag and generating it's contents via external
> methods. Unfortunately child lookups are quite slow, as well as the
> icon choosing machinery; is there any way to cache the tree node
> objects that my external method creates?
>
> thanks for any help.
> --
> Clinton Roy
>
>
> ___
> 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 )




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://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] 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]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 15, 2000 9:11 AM
Subject: [Zope] Product question


> 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?
>
> Dan
>
>
> ___
> 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 )




Re: [Zope] [Ann] Another Zope Book

2000-08-15 Thread Andy McKay

Great, idea! Lets face it this is what the majority of users will be using
Zope for. IHMO you cannot have too many books on Zope. One thing I would
like to see is comparisons of how you would do something in other systems...
for example I used to start thinking when I used Perl or ASP I used 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]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, August 15, 2000 7:58 AM
Subject: [Zope] [Ann] Another Zope Book


> Dieter Maurer writes:
>  > Dear Zopistas,
>  >
>  > I plan to write another book about Zope: "Building Dynamic WebSites
>  > with Zope".
>
> [ ... much good stuff snipped ... ]
>
> Sounds great!  Don't rush though, I can wait until tomorrow for my
> copy :-)
>
> ___
> 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] ProxyPass - where ???

2000-08-15 Thread George Osvald

I'm having trouble configuring ProxyPass on my ISP's server. I tried to
follow the instructions in the appropriate HOW-TO's without a success. I
think they all assume that the user would have root access. I don't. I have
built ZOPE in my user directory.
Anyway ProxyPass takes two arguments, a virtual path and a URL. In my case
is the virtual path a local path to my user directory or zope install
directory ?

So if:
user directory is located @ /home/virtuals/myaccount/
and zope installation @ /home/virtuals/myaccount/zope
my web site is @ www.mydomaine.com.au
the server is demon.server.com.au
and sub directory in ZOPE with my web site is 'okstudio' (I've used
SiteAccess for this)
then is this correct?


ServerName www.mydomaine.com.au
ProxyPass /home/virtuals/myaccount/ http://demon.server.com.au:8080/okstudio
ProxyPassReverse /home/virtuals/myaccount/
http://demon.server.com.au:8080/okstudio


or maybe:


ServerName www.mydomaine.com.au
ProxyPass /home/virtuals/myaccount/zope
http://demon.server.com.au:8080/okstudio
ProxyPassReverse /home/virtuals/myaccount/zope
http://demon.server.com.au:8080/okstudio


originally when using stuff copied from the HOW-TO I used:


ServerName www.mydomaine.com.au
ProxyPass / http://demon.server.com.au:8080/okstudio
ProxyPassReverse / http://demon.server.com.au:8080/okstudio


The result was this error message in my browser:

>Proxy Error
>The proxy server received an invalid response from an upstream server.
>The proxy server could not handle the request GET /.

>Reason: Could not connect to remote machine: Connection refused



Regards,

George
OK Studio
[EMAIL PROTECTED]

 Notebook.jpg


[Zope] Getting a document's contents

2000-08-15 Thread Joshua Brauer


There is probably a simple solution that I'm overlooking here

I have a folder (Parts) that contains dtml documents that are snippets of code. I want 
to include some of them which I have listed in a variable (select).

So I use code like this:







or this








In either case I get the name of sequence-item but I want the contents of sequence-item

Josh
-- 
-
Joshua Brauer
Computer Support Scientist
Department of Biochemistry and Molecular Biology
Colorado State University
Fort Collins, CO 80523
(970) 491-1080/pager:  (970) 498-7995, #5837
-

___
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] Product question

2000-08-15 Thread Daniel Rusch

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?

Dan


___
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] [Ann] Another Zope Book

2000-08-15 Thread Dan L. Pierson

Dieter Maurer writes:
 > Dear Zopistas,
 > 
 > I plan to write another book about Zope: "Building Dynamic WebSites
 > with Zope".

[ ... much good stuff snipped ... ]

Sounds great!  Don't rush though, I can wait until tomorrow for my
copy :-)

___
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] RE: Cannot save Version

2000-08-15 Thread Jentsch, Peter

packing the DB solved the problem :-)

still I'd like to know how to avoid future occurrences

Cheers
Peter

___
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] Import Error 'PTKDemo' - but *no* PTKDemo objects around..

2000-08-15 Thread Tony McDonald

Hi all,
I'm having a nightmare here.

I have a Zope 2.2 (src, solaris) installation that I built from 
scratch. Then, because *it would not* import an exported folder from 
a 2.1.6 installation I had to use the Data.fs from the 2.1.6 
installation and strip out everything other than the folder I was 
interested in.

Things seemed to be ok, but I found a nasty error I can't get around.

I wanted to use the 'advanced' tab on a ZSQL method and immediately 
got this traceback. This happens on *any* ZSQL method. I use the 
ZMySQL database adaptor.





I've also tried this with Zope 2.2.1b1 and get the same result.

Any thoughts would be appreciated here, I'm out of ideas.
tone.
--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5116
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

___
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] [Ann] Another Zope Book

2000-08-15 Thread Chris McDonough

This sounds like a good idea, IMHO.  The Zope Book doesn't go into much
detail about technologies outside Zope.  It sounds like your book would,
and this would be a good thing.

> -Original Message-
> From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 15, 2000 10:45 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [Zope] [Ann] Another Zope Book
> 
> 
> Dear Zopistas,
> 
> I plan to write another book about Zope: "Building Dynamic WebSites
> with Zope".
> 
> The book idea:
> 
>   Realize a demanding dynamic WebSite with Zope.
>   Describe everything that is necessary for this purpose.
> 
> 
> This will contain:
>   Concepts: HTTP, HTML, Zope, Databases, JavaScript, ...
>   Components: catalogs, sessions, topics, news, discussions,
> stores, mails, LoginManager, customizers, workflows, ...
>   Programming: building your own components (ZClasses and
>Product API)
> 
> 
> There will be some overlap with the official Zope book.
> However, my book has a different focus:
> 
>   I will not be complete about Zope. I will just
>   describe the 40 per cent of features that are used
>   for 85 per cent of the applications.
> 
>   I will cover aspects of dynamic Web publishing not
>   directly related to Zope such as e.g. the basics of
>   HTTP requests and HTML form processing.
> 
>   I will mainly stay near the concrete example dynamic
>   WebSite.
> 
> 
> What do you think about my plan?
> Do you feel, it is worth persuing or redantant in view of the
> official Zope book?
> 
> 
> Dieter
> 
> 
> 
> ___
> 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 )




Re: [Zope] Zope bug or my stupidity?

2000-08-15 Thread Peter Hernberg

--- Chris Withers <[EMAIL PROTECTED]> wrote:
> Peter Hernberg wrote:
> > Here's the method that calls that method:
> > 
> 
> Why the quotes?
> 
> try  instead
> 

But then I get the following weird error:
Traceback (innermost last):
  File /root/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /root/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /root/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /root/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /root/Zope-2.2.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: get_stories)
  File /root/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: get_stories)
  File /root/Zope-2.2.0-src/lib/python/OFS/DTMLMethod.py, line 167, in __call__
(Object: get_stories)
  File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_String.py, line 502,
in __call__
(Object: get_stories)
  File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_In.py, line 691, in
renderwob
(Object: objectValues('Topic'))
  File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_With.py, line 146, in
render
(Object: sequence-item)
  File /root/Zope-2.2.0-src/lib/python/OFS/DTMLMethod.py, line 163, in __call__
(Object: get_storys)
  File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_String.py, line 502,
in __call__
(Object: get_storys)
  File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_In.py, line 691, in
renderwob
(Object: objectValues('Story'))
  File /root/Zope-2.2.0-src/lib/python/DocumentTemplate/DT_Util.py, line 337, in
eval
(Object: sequence-index == 0)
(Info: index)
  File , line 0, in ?
NameError: (see above)

I am fairly new to zope, but this seems pretty weird, especially the method
returning its dtml source.

=
Peter Hernberg
An all-purpose, antibacterial, lemon-scented geek/nerd

"If there were a nation of Gods,it would govern itself 
democratically. A government so perfect is not suited to 
men."
--Jean-Jacques Rousseau

__
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

___
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] [Ann] Another Zope Book

2000-08-15 Thread Dieter Maurer

Dear Zopistas,

I plan to write another book about Zope: "Building Dynamic WebSites
with Zope".

The book idea:

  Realize a demanding dynamic WebSite with Zope.
  Describe everything that is necessary for this purpose.


This will contain:
  Concepts: HTTP, HTML, Zope, Databases, JavaScript, ...
  Components: catalogs, sessions, topics, news, discussions,
  stores, mails, LoginManager, customizers, workflows, ...
  Programming: building your own components (ZClasses and
   Product API)


There will be some overlap with the official Zope book.
However, my book has a different focus:

  I will not be complete about Zope. I will just
  describe the 40 per cent of features that are used
  for 85 per cent of the applications.

  I will cover aspects of dynamic Web publishing not
  directly related to Zope such as e.g. the basics of
  HTTP requests and HTML form processing.

  I will mainly stay near the concrete example dynamic
  WebSite.


What do you think about my plan?
Do you feel, it is worth persuing or redantant in view of the
official Zope book?


Dieter



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

2000-08-15 Thread Chris Withers

Always bear in mind that anything inside double quotes gets executed as
python.

Therefor, the followign lines are not doing what you intend:
Peter Hernberg wrote:
> 
> 

try these instead:



cheers,

Chris

___
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] ZCatalog Question

2000-08-15 Thread Jeff Sasmor

I have a product that has three CatalogAware Zclasses.  They
are indexed by the catalog correctly, but when I look at the
catalog's status tab, the number of objects for each index are
identical, even though the ZClasses themselves don't all have the same
properties.

Intuitively, this seems wrong. Or maybe my intuition is wrong.
It "makes more sense" to have differing number of objects
based on how many of each type of ZClass instance was indexed
and what the properties of each one was.

Anyone have any enlightenment (or is that Zen...) ?

Jeff Sasmor
[EMAIL PROTECTED]




___
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] Reloading file objects?

2000-08-15 Thread Dieter Maurer

Peter Arvidsson writes:
 > Does anyone know a way to get the file to show the new pdf-file when I
 > want to view it? 
You can use an "Expires" header to control how long a browser
might cache a page.



Dieter


___
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] Struggling with Permissions

2000-08-15 Thread Jean Jordaan

Hi RDM 

> My bet is that this is a browser caching issue.  

Mine too. But how does everyone else manage authentication?

-- 
Jean Jordaan   --technical writer--
Mosaic Sofware --Zope 2.16 on W2K

___
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] dtml-in and tuples

2000-08-15 Thread Chris Withers

Shane Hathaway wrote:


> 
> I don't know of any place.  It ought to be in the DTML reference.

I guess I'll hope and wait for the Zope Book :-)

cheers,

Chris

___
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] dtml-in and tuples

2000-08-15 Thread Shane Hathaway

Chris Withers wrote:
> 
> Shane Hathaway wrote:
> > Looking at the code, it appears that if you pass a list of two-element
> > tuples, dtml-in will sort by the first element of each pair and render
> > the second element.
> 
> Unluckilly, that's exactly what I was passing it. But not the result I
> was looking for :S
> 
> > If, on the other hand, you pass a list of lists, it
> > won't try to sort that way.
> 
> Yeah, using just a list of length-two lists did the job :-)
> 
> Can I be brave enough to ask why it does this and where it's documented
> (other than the source ;-)

I don't know of any place.  It ought to be in the DTML reference.

Shane

___
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] Looking up other row records in an SQLMethod?

2000-08-15 Thread Theodore Patrick

Is it possible to look up other SQL record values while iterating through a
?

Sample Data returned by SQL Method:

ID, ORDER
23, 1 
25, 3
34, 6
39, 19
12, 23

Using a  I need to get the following during a single pass through
the SqlMethod:

HEADER >>ID   ORDER  PREV  NEXT
PASS 1   >>231null3
PASS 2   >>253  1 6
PASS 2   >>256  319
PASS 2   >>25   19 623
PASS 2   >>25   2319   null

Calculating the PREV and NEXT is the problem and this cannot be done via
SQL.

1. What is the syntax for writing out SQL Fields Directly?

Say in a 

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] Hotfixes: serious suggestion

2000-08-15 Thread Brian Lloyd

> I already wrote it to DC but got no response, so I will try 
> to get some feedback here.

Who did you send it to? I don't recall seeing it...


> At the moment DC uses the north american way of expressing dates and 
> assigns them in this form to the names of the Hotfixes. I 
> propose another 
> naming scheme and will explain the reasons below.
> 
> The current format is Hotfix_08_09_2000, my proposed format is
>  Hotfix_2000-08-09.
> This is the ISO 8601 format (abbreviated form).

That sounds reasonable. We'll move to this for 
future hotfix releases.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



___
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] Struggling with Permissions

2000-08-15 Thread R. David Murray

On Tue, 15 Aug 2000, Jean Jordaan wrote:
> (this is from ccDocClass_add). When I arrive I *still* see:
> 
>   (I'm Anonymous User and I have Anonymous role(s).) 
> 
> Now I edit the URL manually and visit /docs/manage, which
> works *without* prompting me for authentication. I edit the 
> URL back to /docs, and now I see: 
> 
>   (I'm docEditor and I have ContentManager and Manager role(s).)
> 
> Also, this doesn't *always* happen. Perhaps it's an IE problem?
> Does anyone know exactly how this works?

My bet is that this is a browser caching issue.  Click on the link
that takes you back to the original page, get the cached page.
Edit the URL, edit the URL *back*, now you've undoubtably hit
return in the URL box, and IE (sometimes) does a page refresh at
that point.

--RDM


___
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] Z2.py DNS_IP (name resolution)

2000-08-15 Thread Hugo Ramos

Yellow ppl,

I inserted my local machine IP address in DNS_IP section of Z2.py as I used
to in version 2.1.6 (now running 2.2.1b1). This used to work for me and
instead of numbers I would get resolved names in the Z2.log.

Since I upgraded to 2.2.0 and now 2.2.1b1 I only get numbers. DNS_IP section
of Z2.py is not working properly anymore...

anyone??

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
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] File uploads causing memory to be used up

2000-08-15 Thread Tony McDonald

Hi all,
I have an external method that uploads RTF files(and only RTF files) 
into a unix directory. It works fine, except it doesn't seem to 
release the memory it uses up in uploading the file.

The method is;

def process_file(self, file, location, REQUEST):
 if file.read(1) == '':
 return "NO file. Something wrong?"
 file.seek(0)
 split = string.split(file.filename, '\\')
 filename = string.lower(split[-1])

# save the file into the correct directory
 oname = os.path.join(savedir + location, filename)
 f = open(oname, "wb")
 body = file.read()
 f.write(body)
 f.close()
 if type(body) is not type(''):
 body=body.data
 content_type, enc = guess_content_type(oname, body, None)

 if content_type == 'application/rtf':
# it's ok, we can go ahead and process this file.

# need to strip off the .rtf extension however
 guideid = string.replace(filename, '.rtf', '')
 filesize = os.stat(oname)[6]

# copy the file from savedir to opsdir
 os.system("cp -f %s %s" % (oname, opsdir))

# now cd to the operations directory and do some stuff.
 os.chdir(opsdir)

# actually do the grinding...
 os.system("DoAGuide %s" % guideid)

# return the output of the log file
 logfilename = os.path.join(opsdir, "%s.log" % guideid)
 f = open(logfilename, "r")
 logoutput = f.read()
 f.close()

# get the template we're going to use for output.
 template_str = self.done.read_raw()
 template = DocumentTemplate.HTML(template_str)
 theresult = template(self, filename=filename, 
contenttype=content_type, filesize=filesize, guideid=guideid, 
logoutput=logoutput)
 return theresult

 return "File saved %s, size (bytes) %s. content-type [%s]" % 
(filename, filesize, content_type)

The files are roughly 2-3 megs in size, and each time they're 
uploaded the amount of memory (as reported by 'top') used by the 
process increases by about that amount.

*Any* ideas or thoughts would be greatly appreciated. We've had our 
server brought down twice by a python process (ie zope) that was 
taking up 1.1 gigs of RAM.

Tone
--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5116
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

___
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] Zope bug or my stupidity?

2000-08-15 Thread Peter Hernberg

...I'm betting on the latter :)

The problem in a nutshell is that a dtml method seems to be returning itself
(that is, the dtml source of the method), rather than what it ought to be
returning. I have two classes, a "Topic" class, derived from ObjectMananger, and
a "Story" class. The Topics contain Stories. As you might imagine, I wanted a
method that would dig up the most recent stories in a Topic. So I wrote one and
put it in the the methods of the Topic class. Done with that, I wanted a method
that would decide which of the Stories from each topic to put on the main page.
But a weird thing happened. I got errors telling me that my function was
returing a string (I was trying to use it in a dtml-in tag). That's odd, I
thought, so changed the function to simply spit out the results of the method
call with a dtml-var tag. I discovered that it was spitting out the source of my
dtml method. Yikes! Aren't all variables supposed to be rendered?

Here's the method (named get_storys) in the Topic's methods:














Here's the method that calls that method:









In case you're wondering, I'm running zope 2.2.0.

=
Peter Hernberg
An all-purpose, antibacterial, lemon-scented geek/nerd

"If there were a nation of Gods,it would govern itself 
democratically. A government so perfect is not suited to 
men."
--Jean-Jacques Rousseau

__
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

___
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] Zope bug or my stupidity?

2000-08-15 Thread Chris Withers

Peter Hernberg wrote:
> Here's the method that calls that method:
> 

Why the quotes?

try  instead

cheers,

Chris

___
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] Implementing a login form instead of BASIC authentication

2000-08-15 Thread Phil Harris

All,

PHPlib (http://phplib.netuse.de)  has a piece of javascript that creates MD5
hashes from the entries in a form:

so you would never have to pass passwords in clear text, as long as the hash
agrees with the one created server side, login is successful.

the PHPlib docs describe it better than me, but it works great.

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Chris Withers" <[EMAIL PROTECTED]>
To: "albert boulanger" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, August 15, 2000 2:13 PM
Subject: Re: [Zope] Implementing a login form instead of BASIC
authentication


> albert boulanger wrote:
> > DIGEST seems good in that it is encrypted and uses the
> > Challange/Response like BASIC for every HTTP transaction -- matched well
> > with the stateless nature of HTTP.
>
> AFAIK, no browsers (maybe Mozilla, but that has the stability of a house
> of cards ;-) support Digest adn I'm pretty sure that Zope doesn't either
> :(
>
> >  1) One should encrypt the info in the cookie
>
> Definitely
>
> >  2) How does one get around the stateless nature or HHTP in secure way
using
> > cookies? In other words, unless the HTTP transaction is challenged
every
> > time, how do you really know that someone is not trying to slip into
an
> > existing session?
>
> Hehe, welcome to one of the biggest challenges on the web...
>
> ...that, and getting your CSS to eb compatible with all the major
> browsers ;-)
>
> cheers,
>
> Chris
>
> ___
> 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 )




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

2000-08-15 Thread Chris Withers

albert boulanger wrote:
> DIGEST seems good in that it is encrypted and uses the
> Challange/Response like BASIC for every HTTP transaction -- matched well
> with the stateless nature of HTTP.

AFAIK, no browsers (maybe Mozilla, but that has the stability of a house
of cards ;-) support Digest adn I'm pretty sure that Zope doesn't either
:(

>  1) One should encrypt the info in the cookie

Definitely

>  2) How does one get around the stateless nature or HHTP in secure way using
> cookies? In other words, unless the HTTP transaction is challenged every
> time, how do you really know that someone is not trying to slip into an
> existing session?

Hehe, welcome to one of the biggest challenges on the web...

...that, and getting your CSS to eb compatible with all the major
browsers ;-)

cheers,

Chris

___
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] dtml-in and tuples

2000-08-15 Thread Chris Withers

Shane Hathaway wrote:
> Looking at the code, it appears that if you pass a list of two-element
> tuples, dtml-in will sort by the first element of each pair and render
> the second element.  

Unluckilly, that's exactly what I was passing it. But not the result I
was looking for :S

> If, on the other hand, you pass a list of lists, it
> won't try to sort that way.

Yeah, using just a list of length-two lists did the job :-)

Can I be brave enough to ask why it does this and where it's documented
(other than the source ;-)

cheers,

Chris

___
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] Implementing a login form instead of BASIC authentication

2000-08-15 Thread albert boulanger



   Stephan Goeldi wrote:
   > 
   > Wouldn't that reduce system security?

   I think he mean cookie-based authentication, as found on zope.org.

   > >I am currently looking into implementing a login form to replace the
   > >standard BASIC authentication.

   Gérard,

   Take a look at things like LoginManager and GUF which can do this sort
   of thing. They are standard replacements for the acl_users folder and
   will serve you a lot better than hackign around in User.py...

I am intersested in this issue as well since we are looking hard at security.
Here is my current thinking.

BASIC is not secure since the name:password is base64 encoded and not
encrypted.

DIGEST seems good in that it is encrypted and uses the
Challange/Response like BASIC for every HTTP transaction -- matched well
with the stateless nature of HTTP.

Cookie based methods seem to assume some notion of session to me which
fundamentally is a hack and is less secure than DIGEST, to wit:

 1) One should encrypt the info in the cookie
 2) How does one get around the stateless nature or HHTP in secure way using
cookies? In other words, unless the HTTP transaction is challenged every 
time, how do you really know that someone is not trying to slip into an 
existing session?

Also on the server side I need to share the login info among Zope, and
Tomcat -- has a methodolgy been developed to do so?

Regards,
Albert Boulanger
[EMAIL PROTECTED]

___
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] Hotfixes: serious suggestion

2000-08-15 Thread Gijs Reulen

Totally agree. In fact I think it is so logically that the question should
be:
Can anyone think of an argument against it ?
(Else then: I am an arrogant American, I like it and f**k the rest of the
world).

Gijs Reulen

> -Oorspronkelijk bericht-
> Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Dyon Balding
> Verzonden: dinsdag 15 augustus 2000 10:26
> Aan: Frank Tegtmeyer
> CC: [EMAIL PROTECTED]
> Onderwerp: Re: [Zope] Hotfixes: serious suggestion
>
>
> On Tue, Aug 15, 2000 at 10:18:24AM +0200, Frank Tegtmeyer wrote:
> > Hi all,
> >
> > The current format is Hotfix_08_09_2000, my proposed format is
> >  Hotfix_2000-08-09.
> > This is the ISO 8601 format (abbreviated form).
>
> totally agree.
>
> american style dates are frustrating in many ways.
>
> whereever it can be done, i believe the ISO format should
> be used.
>
> -d
>
> --
> |Dyon Balding [EMAIL PROTECTED] |
>
> ___
> 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 )




Re: [Zope] dtml-in and tuples

2000-08-15 Thread Shane Hathaway

Chris Withers wrote:
> 
> "R. David Murray" wrote:
> >
> > On Mon, 14 Aug 2000, Jonothan Farr wrote:
> > > Well in Python a list is mutable and a tuple is not.
> >
> > Right, but he's asking why dtml-in treats tuples in a special way,
> > and exactly what that behavior is.
> 
> That's right :-)
> 
> ..and in particular why it's so weird. It seems to do something like use
> return the last element of the tuple rather than return the tuple
> object...

Looking at the code, it appears that if you pass a list of two-element
tuples, dtml-in will sort by the first element of each pair and render
the second element.  If, on the other hand, you pass a list of lists, it
won't try to sort that way.

Shane

___
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] Structured Text Rendering

2000-08-15 Thread Chris Withers

Hi,

I have a list of string.strip'ped strings which I'd like to render using
structured text.

I'm currently trying:

stx = str(StructuredText.html_with_references(join(storedLines,' \n'),
level=3))

but that isn't working :(

The text in the form submission is:
"""
sdfsdf

 - sdfsdf
 
 - sdfsdf

 - sdfsdf
"""

print join(storedLines,'\n') prints:
"""
sdfsdf

 - sdfsdf

 - sdfsdf

 - sdfsdf
"""

while 'print stx' ,very wierdly shows:
"""
 p>sdfsdf

 - sdfsdf

 - sdfsdf

 - sdfsdf


"""
(what happened to the < for the  ?

and finally, what actually ends up in the HTML source as the result of
this
(which is called by )
is:
"""
sdfsdf
 

 
 - sdfsdf
 
 
 
 - sdfsdf
 

 
 - sdfsdf
 

 

"""

The questions are:
1) why all the extra newlines in the HTML source?
2) why just the one paragraph beign picked up, instead of 4?
3) why are the '-'s being turned into list items?

cheers,

Chris

___
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] Cannot save Version

2000-08-15 Thread Jentsch, Peter

Hello! I created and logged in to a version object on my Zope-Site to do
some extensive remodelling. When I tried to commit the changes, Zope
responded with the following error:

Error Type: KeyError
Error Value: %} 
[...]
Traceback (innermost last):
  File /opt/Zope-2.0.1-2/lib/python/ZPublisher/Publish.py, line 214, in
publish_module
  File /opt/Zope-2.0.1-2/lib/python/ZPublisher/Publish.py, line 179, in
publish
  File /opt/Zope-2.0.1-2/lib/python/Zope/__init__.py, line 201, in
zpublisher_exception_hook
(Object: Fake)
  File /opt/Zope-2.0.1-2/lib/python/ZPublisher/Publish.py, line 169, in
publish
  File /opt/Zope-2.0.1-2/lib/python/ZODB/Transaction.py, line 237, in commit
  File /opt/Zope-2.0.1-2/lib/python/ZODB/DB.py, line 557, in commit
  File /opt/Zope-2.0.1-2/lib/python/ZODB/FileStorage.py, line 368, in
commitVersion
(Object: /dmz-inter03/opt/Zope-2.0.1-2/var/Data.fs)
KeyError: (see above)

where %} was preceded by 6 nullbytes.

I'm still able to access the version, so I could reconstruct the changes
after discarding the version, but actually I'd rather find a way to *save*
the changes.

Thanks
Peter

___
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] Struggling with Permissions

2000-08-15 Thread Jean Jordaan

Hi all

I've run into something baffling regarding authentication.
For debugging purposes, my standard_html_header tells me:

  (I'm  and I have 
   role(s).)

When I visit /docs, it tells me:

  (I'm Anonymous User and I have Anonymous role(s).) 

That's cool. Now I visit:

  /docs/manage_addProduct/ccDoc/ccDocClass_factory

via a link from /docs, and I am prompted for username and
password. I add an instance of my ZClass, and am redirected
to /docs:

  
   njj: Called from the public interface
  

  

  

(this is from ccDocClass_add). When I arrive I *still* see:

  (I'm Anonymous User and I have Anonymous role(s).) 

Now I edit the URL manually and visit /docs/manage, which
works *without* prompting me for authentication. I edit the 
URL back to /docs, and now I see: 

  (I'm docEditor and I have ContentManager and Manager role(s).)

Also, this doesn't *always* happen. Perhaps it's an IE problem?
Does anyone know exactly how this works?

-- 
Jean Jordaan   --technical writer--
Mosaic Sofware --Zope 2.16 on W2K

___
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] Administrator Guide

2000-08-15 Thread Stephan Goeldi

On which URL is the Administrator Guide for Unix?

-goe-


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


___
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] Seeking Zope Volunteers

2000-08-15 Thread Andrew Kenneth Milton

y+---[ Dieter Maurer ]--
| Andrew Kenneth Milton writes:
|  > +---[ Lyno Sullivan, Candidate ]--
|  > | Greetings,
|  > | 
|  > | My name is Lyno Sullivan and I am the endorsed Independence Party (see
|  > 
|  > [ snip ]
|  > 
|  > And you are now Lyno Sullivan, Spammer and in violation of your own laws.
|
| I would not be that hard.
| 
| I think political support is essential for the free software movement.
| I see this in Europe where the European Commission prepares
| to make software and business rules patentable -- a nightmare
| for free software and free look&feel.
| Therefore, it is not bad for the free software movement to support
| the right politics.

Volunteers is tolerable, campaign donations is an entirely different ballgame.
Especially since on one hand they're not taking donations from 'special
interest groups.' The "Free Software Movement" is a special interest group,
if they don't support special interest groups then they don't support you.

| I, personnally, do not mind *one time* announcements of the above
| kind.

I do. One time announcements belong on mailing-lists like zope-announce, or
zope-chat. We have enough people who rouse when stuff is off topic 
(like this whole thread, and I do apologise for continuing it),
without the introduction postings about stuff that is completely and 
totally unrelated.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
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] Problem with nested dtml-in

2000-08-15 Thread Dieter Maurer

Bill Welch writes:
 > I'm having trouble with nested dtml-in. The outer ZSQL returns the
 > coordinates of a zip code as zlat and zlong. The inner ZSQL takes
 > zlat and zlong as well as Range and Otype as arguments.  
 > 
 > When I run it I get:
 >   Error Type: Bad Request
 >   Error Value: ['zlat', 'zlong']
This is an FAQ: comes up at least twice per month in this list
(there is a searchable archive supported by NIP (thank you, NIP)):

Z SQL methods do not look in the namespace,
only in the REQUEST object (provided there are
no keyword parameters).

You can use:




or




Dieter

___
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] Implementing a login form instead of BASIC authentication

2000-08-15 Thread Chris Withers

Stephan Goeldi wrote:
> 
> Wouldn't that reduce system security?

I think he mean cookie-based authentication, as found on zope.org.

> >I am currently looking into implementing a login form to replace the
> >standard BASIC authentication.

Gérard,

Take a look at things like LoginManager and GUF which can do this sort
of thing. They are standard replacements for the acl_users folder and
will serve you a lot better than hackign around in User.py...

cheers,

Chris

___
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] Looking for different style

2000-08-15 Thread Dieter Maurer

cuiod-tec Jens Gelhaar writes:
 > I need a better way to render a DTMLDocument and store the result in
 > variable than
 > 
 > but I do not like the style, it looks clumsy. Is there an another way? I
 > would think something like documentname(...), but the acquisition does not
 > work.
Usually, you simply use



You need the "_[...]" only, if either:

  *  "..." is not a valid Python name

  *  "..." is a Python expression


Dieter

___
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] Persistence.py does not define Persistent

2000-08-15 Thread Dieter Maurer

Skip Montanaro writes:
 > 
 > I'm trying to publish my own module with ZServer (from Zope 2.2.0).  I get
 > the following traceback:
 > 
 > 
 >  from Persistence import Persistent
 > ImportError: cannot import name Persistent
 > 
 > When I look at lib/python/Persistence.py, all I see is a copyright notice
 > and the following short doc string:
 > 
 > """Provide access to Persistent and PersistentMapping
 > 
 > This avoids dependency on the database package name.
 > """
 > 
 > I can't find a definition of an object named Persistent (probably ought to
 > be a class or ExtensionClass, based upon the usage I saw) anywhere in the
 > Zope 2.2.0 tree.

"Persistence" is only a "placeholder" module that gets filled
by the really used Object Database package (ZODB, BoboPOS2, BoboPOS3, ...)
that implements persistence.

For the current Zope, "ZODB/__init__.py" fills this module
with "cPersistence.Persistent" and "PersistentMapping".


By the way, Andrew Kuchling works on separate packages for
various Zope parts. I think, ZODB is one of this packages.
There was an announcement in zope-dev.


Dieter

___
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] Best way to subclass DTML Document and some other ZClasses questions

2000-08-15 Thread Dieter Maurer

Marcin Kasperski writes:
 > I decided to subclass DTML Document and (using ZClass) create my own
 > document class 
 > 
 > 1) How can I set standard DTML Document properties (title!) from my
 > constructor? I created constructor form and constructor method, I
 > succesfully prompt for and set all my properties but I do not know how
 > to set properties belonging to DTML Document.
Your ZClass inherits the methods of its base classes.
You use the base classes methods to access their features.

In your specific case, you would use "manage_changeProperties"
to change the DTML Document properties.
"manage_changeProperties" is defined by "OFS.PropertyManager.PropertyManager".

 > 2) Can I do anything to have single property screen which would behave
 > as original DTML Document property screen but present both original
 > properties and properties belonging to my custom property sheet?
You can create your own ZClass "view" that does this.

 > 3) Can I influence property editing screens (what I want is to increase
 > some edit boxes)?
Same as 2)

 > 4) Can I do something to have ZCatalog PrincipiaSearch (i.e. full text
 > search) to scan some property of my custom ZClass (say property body
 > from propertysheet Basic)?
You just define "Meta Data" or indexes for them.

 > 5) Can I write index_html method of my custom class so it interpret DTML
 > tags (like dtml-var substitution)?
I do not understand this question:

  "index_html" has nothing to do with interpreting DTML tags.

  If there is an "index_html", then, via the web, you
  can use ".../my_object" and, in fact, ".../my_object/index_html"
  is used. That is all.

  When you want to interpret DTML tags, you will need to somehow
  use DocumentTemplate instances.

 > And one question after the whole mess. I migrated my (fairly small so
 > far) website from DTML Documents to my custom document class - and I did
 > it manually. But I would not like to perform similar operation manually
 > if the site contained 500 or 5000 pages. 
You will find in the list's archive a suggestion for converting
DTML documents into DTML methods.
It could be adapted for your purpose.

You may have a look at ZPublisher.Client, too.
It allows to control Zope by external Python scripts.


Dieter

___
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] Seeking Zope Volunteers

2000-08-15 Thread Dieter Maurer

Andrew Kenneth Milton writes:
 > +---[ Lyno Sullivan, Candidate ]--
 > | Greetings,
 > | 
 > | My name is Lyno Sullivan and I am the endorsed Independence Party (see
 > 
 > [ snip ]
 > 
 > And you are now Lyno Sullivan, Spammer and in violation of your own laws.
I would not be that hard.

I think political support is essential for the free software movement.
I see this in Europe where the European Commission prepares
to make software and business rules patentable -- a nightmare
for free software and free look&feel.
Therefore, it is not bad for the free software movement to support
the right politics.

I, personnally, do not mind *one time* announcements of the above
kind.


Dieter

___
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] "Computed" variable access (was: [Zope] use properties to get an object with dtml-var)

2000-08-15 Thread Dieter Maurer

Gerard Metrailler Jr. writes:
 > Hello,
 > 
 > I am trying to get the following more generic.
 > 
 > 
 > 
 > In that case, content and whos_who are folder, gmetrail is a ZClass I 
 > created which derivates from Image and real_name is a property of that object.
 > 
 > What I am trying to do is getting something like:
 > 
 >  where 
 > user_info is a property that I defined in /
You do not want to access a fixed variable but want the variable
to be accessed computed in some way.

Computed variable access is provided by

"_[expression]"

Sometimes, you must use:

"_.getitem(expression)"


Both forms evaluate "expression" into a variable name
and look it up in the namespace resulting in an object.
The first form calls the object, if it is callable, and returns
the result of this function call.
The second form always returns the object itself without
calling it.

For a DTML document/method "calling" means rendering, thus
the result is a string.


There is a related need: computed attribute access.
Here, an attribute to be accessed is not fixed but
must be computed.

You would use "_.getattr(object,expression)" in this case.



Dieter

___
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] problems connections to database

2000-08-15 Thread Dieter Maurer

Tom Deprez writes:
 > Hi,
 > 
 > I get a strange error here. Suddenly the connection to my interbase db
 > doens't works anymore. I get the following message :
 > 
 >   File /usr/local/zope/lib/python/Products/gvibDA/db.py, line 178, in _abort
 >   File gvib/gvib.py, line 466, in rollback
 > Error: - Unable to complete network request to host "localhost".
 > -- Error writing data to the connection. -- Broken pipe
This is a nice and very specific error message.

It says that the communication channel to your interbase
server (or relay) has been broken and no more
data can be send through it.

Usually, this means that the other side of the communication channel
has closed the channel (this happens automatically, when the
associated process dies). Look in the logfiles of the
server (or relay) whether you can find any hint about
why this happens.

You could try to figure out, whether the problem occurs always
in the same context. In your report, the problem was in
the "_abort". Maybe, "aborts" are not handled correctly.


There is some very strange code in the ZOracle Database
adapter: When a query returns an exception, the code
assumes that the database may be hosed, closes/reopens
the connection and tries again once.
I removed the strange code (during a memory corruption
hunt) and we determined that Oracle 8.1.6 does not
need it any more.
But maybe, this is a way for your Interbase problem?


Dieter

___
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] Implementing a login form instead of BASIC authentication

2000-08-15 Thread Dieter Maurer

Meeting Maker Webmaster writes:
 > I am currently looking into implementing a login form to replace the 
 > standard BASIC authentication.

Have a look at GUF or the new LoginManager.

They do something similar to what you want.
Either, you can use them directly, or learn how they work
and realize your own solution.


Dieter

___
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] Adding new News items using Yihaw

2000-08-15 Thread Chris Withers

Meaghan Aldridge wrote:
> What I want to happen is that I can have a link to a page that displays
> a form with one field with the message to be displayed, and perhaps
> another field with a brief title.  (The other fields, being the date and
> the name of the person who posted the message, I will have
> automatically, using the datetime function, and the authorised_user
> function.)  This then generates itself into a Yihaw News item.

Never used Yihaw, but that sounds a lot like Squishdot to me. Giev it a
spin and let me know what you think :-)

cheers,

Chris

___
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] dtml-in and tuples

2000-08-15 Thread Chris Withers

"R. David Murray" wrote:
> 
> On Mon, 14 Aug 2000, Jonothan Farr wrote:
> > Well in Python a list is mutable and a tuple is not.
> 
> Right, but he's asking why dtml-in treats tuples in a special way,
> and exactly what that behavior is.

That's right :-)

..and in particular why it's so weird. It seems to do something like use
return the last element of the tuple rather than return the tuple
object...

I'm just guessing though :S

cheers,

Chris

___
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] Implementing a login form instead of BASIC authentication

2000-08-15 Thread Stephan Goeldi

Wouldn't that reduce system security?


>I am currently looking into implementing a login form to replace the 
>standard BASIC authentication.


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


___
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] Hotfixes: serious suggestion

2000-08-15 Thread Dyon Balding

On Tue, Aug 15, 2000 at 10:18:24AM +0200, Frank Tegtmeyer wrote:
> Hi all,
> 
> The current format is Hotfix_08_09_2000, my proposed format is
>  Hotfix_2000-08-09.
> This is the ISO 8601 format (abbreviated form).

totally agree.

american style dates are frustrating in many ways.

whereever it can be done, i believe the ISO format should
be used.

-d

-- 
|Dyon Balding [EMAIL PROTECTED] |

___
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] Hotfixes: serious suggestion

2000-08-15 Thread Frank Tegtmeyer

Hi all,

I already wrote it to DC but got no response, so I will try to get some 
feedback here.

At the moment DC uses the north american way of expressing dates and 
assigns them in this form to the names of the Hotfixes. I propose another 
naming scheme and will explain the reasons below.

The current format is Hotfix_08_09_2000, my proposed format is
 Hotfix_2000-08-09.
This is the ISO 8601 format (abbreviated form).

Reasoning:

First of all Zope is a product of a north american company but is used 
worldwide. Not all countries use the american form of dates, so it would 
be nice to have a standardized one (in my opinion this applies also to the 
standard date functions in Zope).

The reasons for establishing ISO 8601 apply here as well:
- ordering of month and day are different in Europe and America,
  this leads to difficulties interpreting date values
- ISO dates are sortable by string functions
- ISO dates are easy to parse by humans AND programs

Opinions?

Regards, Frank

___
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] Adding new News items using Yihaw

2000-08-15 Thread Meaghan Aldridge

I am a Zope Newbie, and have been creating a company Intranet using
Zope, and have stumbled across a problem that has me absolutely stumped!

I have created a basic Web Interface using the Yihaw Product, and in
this, I have added News Items.  To search this, I use ZCatalog, which
works quite well.

The aim of this is to have a message board that authorised users can add
and delete messages from.

So far, the only way that I have found to add messages, is to actually
add a new "Yihaw News" product from the Zope Management Interface.

What I want to happen is that I can have a link to a page that displays
a form with one field with the message to be displayed, and perhaps
another field with a brief title.  (The other fields, being the date and
the name of the person who posted the message, I will have
automatically, using the datetime function, and the authorised_user
function.)  This then generates itself into a Yihaw News item.

Does anyone know how I could achieve this, or perhaps a work around for
this?

Thanks,

Meaghan


begin:vcard 
n:Aldridge;Meaghan
tel;fax:9518-7620
tel;work:9518-7011
x-mozilla-html:FALSE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Meaghan Aldridge
end:vcard



  1   2   >