Re: [Zope] dtml-var null

2000-07-04 Thread Brenton Bills



On 5 Jul 2000, Clinton Roy wrote:

> 
> 
> just doesn't seem to be working.
> 
Hi Clinton,
null is only used in conjunction with fmt, so you would want to
use,


If this does not work mail me back.

Thanks,
Brenton Bills.


___
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 doesn't appear in Add List

2000-07-04 Thread sakurai
Hi,

I'm a beginner of Zope.

I read Documentation(ZCMG) and trying to create a sample Zope Product,
just the same thing as in that tutorial.

I did as follows:

1. create Product Distribution Archive (tgz file) in Distribution tab.
2. delete original one (with open-box icon).
3. shutdown zope.
4. re-install it (by extracting tgz in zope directory).
5. restart zope.

As a result, it appears in Control_Panel/Products directory (with normal

close-box icon), but doesn't appear in the 'Available Objects' Add List.

I didn't forget to create factory object. I'm using Zope 2.1.6.

Please help. Thanks.



___
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-var null

2000-07-04 Thread Clinton Roy

the following:



just doesn't seem to be working.

any hints?


___
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] Comparing two dates WITH time?

2000-07-04 Thread Nils Jeppe



Hello All,

I need help again.


How do I compare two dates that include full timestamps?

If I try date_updated <= ZopeTime() it works only for dates that do not
include times... as soon as you have a time in the date_updated field,

If the date_updated contains only a date (200/07/04 for example) it works
flawlessly. What am I doing wrong?

(Note that if I set the date_updated to yesterday with a time, it works
also. is this a bug, or what? My logic would tell me that 2000/07/04
12:00:00 GMT+1 is smaller than 2000/07/04 11:59:00 GMT+1).


Please someone tell me what's going on, I am beinning to feel that I am
either asking too stupid questions, or I have problems no-one has any clue
about. I am not sure what'd frighten me more... ;-)


Best wishes,
Nils





___
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] Fun with Trees

2000-07-04 Thread Charlie Wilkinson

On Mon, Jul 03, 2000 at 10:38:27PM +0200, Dieter Maurer waxed eloquent:
> Charlie Wilkinson writes:
>  > On Mon, Jul 03, 2000 at 09:35:06AM +0200, Rik Hoekstra waxed eloquent:
>  > > 
>  > > Charlie Wilkinson writes:
>  > [...] 
>  > > I'm trying to use dtml-tree to create a selective menu of objects based
>  > > on whether or not the object has an "add_to_menu" property.
>  > [...]
>  > > [rh]
>  > > Try (yes, this is tested):
>  > > 
>  > >  
>  > >  
>  > > 
>  > >  
>  > >  
>  > > 
>  > > 
>  > The bigger problem seems to be the namespace issue that Dieter was
>  > speaking of.
> 
> I found a solution that is much easier than hacking the
> TreeDisplay code:
> 
>   You do not plan to use REQUEST for information about the
>   request but only as a container for a temporary list.
>   This can be achieved without REQUEST
> 
>   
> 
>   
>  
>   
> 
> 
>   

Lots of good ideas, thanks guys!  However, I'm still getting an attribute
error on __getitem__.  I'm trying to figure out how namespaces get passed
around in Python to see if there's an easy way to fix this.

I've also found a workaround and pondered another:

- pass ['Folder','DTML Document'] to optionValues the normal way, i.e.:



  

  

  


...and then simply use DTML Documents and *only* DTML Documents for
stuff I want in the tree menu, primarily CGI forms, some of which might
be dynamically generated.  I guess if I smack into any limitations with
DMTL Documents, I'll have a Document call a method.  It's not ideal, but
it seems workable enough.

The other alternative might be to use ZCatalog with the Tree tag somehow.
I think it might do what I need, but I haven't given it much thought.

That said, I still think the idea you and Rik have been helping me
with is the most "elegant", but I've got a big site to build and very
little time.  Would it be any easier if instead of a DTML Method I used
an ExternalMethod as a wrapper/filter around objectValues?

It's very frustrating, as I keep thinking there's *got* to be an easy
way to fix this if I only had a half a Zope/Python clue.  I'm already
reading about as fast as I can!

Regards,
Charlie

-- 
~
Charlie Wilkinson - [EMAIL PROTECTED] - N3HAZ
Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer...
Visit the Radio For Peace International Website: http://www.rfpi.org/
~
CLOBBER INTERNET SPAM:  See!! 
   Join!! 
~
QOTD:
Failure is not an option. It's bundled with your software.

___
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] [newbie] cgi-tasks howto? stupid question

2000-07-04 Thread Nils Kassube

[EMAIL PROTECTED] (Rajil Saraswat) wrote:

> i tried out this but this isnt working  out for me. can you point out the
> error.

The DTML source is okay. This should work. 

> when i submit the form the print page is outputted but the value of the
> textbox(valname) is not outputted. whats wrong?

What do you mean by "the print page is outputted"? Do you see
the source? Or is only the  part not displayed?

Cheers,
Nils
--
[EMAIL PROTECTED]   | [EMAIL PROTECTED] (preferred)
[EMAIL PROTECTED] | [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] WorldPilot and UW-IMAP?

2000-07-04 Thread Charlie Wilkinson

Greets,
I'm experiencing an issue with WorldPilot not showing the body of messages
that have attachments.  I can only guess that this is because WorldPilot
was designed for use with the Cyrus IMAP server and I'm using it on a
stock RedHat system, which I presume sports UW-IMAP.

I've searched around and not found too much detail about UW vs. Cyrus
for WorldPilot.  Can anyone enlighten me as to whether or not my problems
are due to using UW-IMAP and generally whether it's worthwhile to suffer
a Cyrus install, vs. a hack or patch to WorldPilot?  I frankly don't
want or need what Cyrus has to offer.

I really like WorldPilot and I'm trying to push it on an office full of
people, but you can imagine how thrilled they are about not being able
to read select messages.  They are starting to make noises about wanting
to go back to Outlook now.  (shudder)

Thanks for any clues,
Charlie
-- 
~
Charlie Wilkinson - [EMAIL PROTECTED] - N3HAZ
Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer...
Visit the Radio For Peace International Website: http://www.rfpi.org/
~
CLOBBER INTERNET SPAM:  See!! 
   Join!! 
~
QOTD:
Failure is not an option. It's bundled with your software.

___
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 with large -t

2000-07-04 Thread Bak @ kedai

hello ppl,
what are the bad things that will happen if i increase zope thread from the
default to another number, say 25, or 50.  will anything bad happen?  i guess,
the greater number of zope threads will help process request faster, or am i
mistaken?  i currently have hugh connection numbers from apache (> 200 at one
time) and only 15 zope threads.

correct me if i'm wrong.
thanks


 -- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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] What is the best way to do this?

2000-07-04 Thread Jens Vagelpohl

alex,

IMHO when you try to do stuff using ZClasses and DTML and it starts
looking too complex to you then it is. DTML is made for presentation,
not for driving an application.

a very sound architectural approach, and one that scales very well as
your site and organzation grows, is a base of python-based zope products
with ZClasses that derive from them. all the logic happens in the python
product and all presentation is in the derived ZClasses. this will not
only speed up your code but it will also make it easy to control
presentation because that is stored in the ZODB and can be manipulated
through the web. the only drawback is that a change in the underlying
python product code requires you to restart zope.

if you're like me and can't stand messy and kludgy code you will
appreciate the extra effort spent on writing a real python zope product.

for starters look at "How to create a Boring Product" at
http://www.zope.org/Members/gtk/Boring/HowTo-Boring . this will explain
some of the structure that is needed for a python class to become a
"zope product". another guide is at
http://www.zope.org/Members/Zen/howto/ProductAPITutorial . for the
latest changes that need to be considered when writing a product for
zope 2.2 read brian's guide at
http://www.zope.org/Documentation/How-To/ProductAuthorUpdateGuide .

a good deal of knowledge can be gained from simply looking at the code
of products available in your zope install under
/lib/python/Products. 


jens



Jens Vagelpohl  [EMAIL PROTECTED]
Software Engineer www.digicool.com
Digital Creations   (888) 344-4332

Got Zope?

 
 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Alex Gould
> Sent: Tuesday, July 04, 2000 21:11
> To: [EMAIL PROTECTED]
> Subject: [Zope] What is the best way to do this?
> 
> 
>   Hello zope-masters, I humbly ask your advice on several 
> matters.  I am
> making an internal website for a statewide student activist group with
> many members.  It will hopefully feature discussion boards, a contact
> database, and a calendar of events.  I want to make the users of the
> site part of the contact database, so that an entry in the database (a
> name, phone number, etc.) can be easily "promoted" into a user with a
> password and varying priveliges based on his/her role (volunteer, core
> member, board chair, etc.)
>   Another feature I want to include is regional 
> specialization - each
> contact/user, calendar event, and forum has an associated "region" -
> statewide or a specific campus or something in between.  That way a
> user's default view of the statewide calendar won't be cluttered by
> irrelevant events, and a search through the contact database would by
> default only return results pertaining to the user's region.
>   I've tried building some custom zClasses but when 
> things start to get
> complex the dtml code gets really messy, so I think I should use
> external methods to do most of the work.
>   Basically I'd appreciate any advice on how to put these 
> ideas into code
> or pointers to relevant documentation.  I don't mean to sound like
> "here's my very complicated plan, write the code for me", I just need
> some tips on how to get started.  Thanks.
> 
>  
> -- 
> Building highways to reduce traffic is like 
> loosening your belt to reduce obesity.
> 

___
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] What is the best way to do this?

2000-07-04 Thread Alex Gould

Hello zope-masters, I humbly ask your advice on several matters.  I am
making an internal website for a statewide student activist group with
many members.  It will hopefully feature discussion boards, a contact
database, and a calendar of events.  I want to make the users of the
site part of the contact database, so that an entry in the database (a
name, phone number, etc.) can be easily "promoted" into a user with a
password and varying priveliges based on his/her role (volunteer, core
member, board chair, etc.)
Another feature I want to include is regional specialization - each
contact/user, calendar event, and forum has an associated "region" -
statewide or a specific campus or something in between.  That way a
user's default view of the statewide calendar won't be cluttered by
irrelevant events, and a search through the contact database would by
default only return results pertaining to the user's region.
I've tried building some custom zClasses but when things start to get
complex the dtml code gets really messy, so I think I should use
external methods to do most of the work.
Basically I'd appreciate any advice on how to put these ideas into code
or pointers to relevant documentation.  I don't mean to sound like
"here's my very complicated plan, write the code for me", I just need
some tips on how to get started.  Thanks.

 
-- 
Building highways to reduce traffic is like 
loosening your belt to reduce obesity.

___
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] RFC: is this the best way to make a referal app and a "jump" navmenu *2nd time*menu *2nd time*

2000-07-04 Thread George Donnelly

Basically i would like people's opinions as to whether i built these things
in the "right" way or not. tia!

>jump menu

*created a selection list and told it to pass a variable (the url of the
selected item) called "url" to a method called "jump" which consists of the
following:



its a little slow but it works :-)

>referral product (as in http://www.recommend-it.com/)

i pass the variables on the first page (where people enter name, email, and
up to 5 of their friends email addresses) to a method called success

here's the problem i think: since i am enabling people to email up to 5
friends, i've got 5 copies of the same email message in the success method
inside the sendmail tags. the last 4 are in if statements.

i know there must be a better way but i really have no idea. any help?

(btw if anybody wants to use these things just email me and ill send you the
terribly simple yet useful code. :-)

tia!

Regards,
G e o r g e D o n n e l l y
[EMAIL PROTECTED]
http://www.LetsJapan.com/
Share Your Experiences, Learn From Others' !


___
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] Re: Traversal of ZODB

2000-07-04 Thread David Trudgett

At 2000-07-04 20:32 +0100, Steve Alexander <[EMAIL PROTECTED]> wrote:

>On Fri, 30 Jun 2000, David Trudgett wrote:
> > I wonder if anyone has a sample Python script that traverses the ZODB to
> > query or perform arbitrary operations on the objects found in it? My
> > present requirement is to write a script that goes through and does some
> > automated updating of several dozen DTML documents.
>
>Hi David,
>
>I just posted something similar to Zope-Dev:
>
>   http://lists.zope.org/pipermail/zope-dev/2000-July/005744.html

Thanks for that. I actually worked out a fairly similar hack myself, which 
only did one folder (which was OK for the particular task that I wanted it 
to do). Your recursive method has no doubt saved me quite a bit of time in 
generalising it. There are still a couple of little question marks in my 
mind, though. But before I get to them, I'll just post a sample of what I 
came up with (minus most of the gory details of the actual processing I 
wanted to do:



def processDTML(self):
 """Process DTML documents within a folder."""
 import re
 myregex = re.compile(r"(.*?)")
 thisdoc = self.getFirstChild()
 while thisdoc is not None:
 if hasattr(thisdoc, 'meta_type'):
 if thisdoc.meta_type == 'DTML Document':
 # Do processing stuff here
 doctext = thisdoc.raw
 doctext = myregex.sub(r"\1\n\nProfile\n", doctext)
 thisdoc.raw = doctext
 thisdoc = thisdoc.getNextSibling()
 return 'Complete!'



Just for easy reference, this was what you came up with:




import re

def convert_dtml(self):
 """Convert DTML Methods and DTML Documents from old syntax to
new syntax.
Warning: recursive!
This assumes that DTML Method and DTML Document haven't been
subclassed.
 """
 print 'convert_dtml: id=%s' % self.title_and_id()
 if hasattr(self, 'meta_type') and \
   (self.meta_type == 'DTML Method' or \
self.meta_type == 'DTML Document'):
 convert(self)

 # should this be "isPrincipiaFolderish"?
 if hasattr(self, 'isAnObjectManager') and self.isAnObjectManager:
 for v in self.objectValues():
 v.convert_dtml()

_convert_regex =
re.compile('')

def convert(dtml_item):
 print 'converting...'
 title = dtml_item.title
# like document_src, but doesn't require RESPONSE
 data = dtml_item.PrincipiaSearchSource()
 print 'data'
 print data
 newdata = _convert_regex.sub('<\g<1>dtml-\g<2>>', data)
 print 'newdata'
 print newdata
 print 'end'
 dtml_item.manage_edit(newdata, title)




Some questions I have in my mind:

1. I used "raw" and you used "PrincipiaSearchSource()" . The reason I used 
raw was because I wanted to be sure that what I got wasn't munged in any 
way, and that what I put back reflects what was actually there before.

2. You used the "manage_edit()" method, whereas I just assigned to the 
"raw" property. My way seems to work OK, but I'm not sure how yours works: 
I assume it brings up an edit page in the browser for each document?

3. I don't like resorting to testing the "meta_type" for a particular 
string value. As you noted in your code, it doesn't allow for subclassing, 
so it's not fully general.

4. I was surprised that the import statement (not to mention 
"re.compile()") could be put outside of the method definition, considering 
that Zope's external methods grab on to individual methods within a Python 
module.



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

2000-07-04 Thread Rik Hoekstra




>can you tell me how can I use the "cookies"

try:





   

   no blurk today


Also see the relevant portion of the DTML reference guide
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.4.5.html#pgfId-10470
78

and the dtml-snippet

http://zdp.zope.org/projects/zsnippet/snippets/ClientServerInteraction/SetCo
okie


Rik


___
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] Authentication, Anonymous and Public

2000-07-04 Thread Chris Withers

Dieter Maurer wrote:
> A user that does not log in, i.e. a user you know nothing of,
> gets the "Anonymous" role automatically (at least with "acl_users").
> A logged in user may not get the "Anonymous" role.
> 
> This does not provide additional security, because this
> user may simply shut down his browser and access the page again
> as anonymous user.
> On the other hand, it may result in surprises: suddenly (after
> a log on) I can no longer do things that I was able to do
> before the log on.
> 
> I think, this should be changed.

I agree, and I've said so, many times before ;-)

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] [newbie] cgi-tasks howto? stupid question

2000-07-04 Thread Rik Hoekstra




>i tried out this but this isnt working  out for me. can you point out the
>error.
>
>my index_html file is
>
>http://localhost:8080/3inet/print>
>Enter name: 
>
>
>
>
>
>
>the print file is
>
>
>
>
>
>
>
>when i submit the form the print page is outputted but the value of the
>textbox(valname) is not outputted. whats wrong?

Um, perhaps a stupid question, but since you are talking about files - is
this a Zope object that is in the Zope object database or is it a file that
is on your file system? If the last, it will not work. Zope keeps it's
objects (files) in it's own database, the ZODB. It is
/var/data.fs. You can't read it directly, it is an object database


>
>another thing i havent understood is that zope.org is running on zope,
>then why they donot have url based on 8080. if they are using pcgi then
>the url must have been http://zope.org/zope.cgi/index_html   isnt this so?

No, apache let's you circumvent this.


>i also want my url to be simply on http://localhost, what do i need to do
>for this.

 Zope has it's built in webserver, called ZServer. It will run on any port,
as long as you have the right privileges. If you want to change the port,
change /z2.py It is heavily commented. Look for the http port
section, it shouldn't be a problem.

Rik


___
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] [newbie] cgi-tasks howto? stupid question

2000-07-04 Thread Rajil Saraswat

i tried out this but this isnt working  out for me. can you point out the
error.

my index_html file is

http://localhost:8080/3inet/print>
Enter name: 






the print file is

 





when i submit the form the print page is outputted but the value of the
textbox(valname) is not outputted. whats wrong?

another thing i havent understood is that zope.org is running on zope,
then why they donot have url based on 8080. if they are using pcgi then
the url must have been http://zope.org/zope.cgi/index_html   isnt this so?
i also want my url to be simply on http://localhost, what do i need to do
for this.
Thanks for helping me out.

On Tue, 4 Jul 2000, Nils Kassube wrote:

> [EMAIL PROTECTED] (Rajil Saraswat) wrote:
> 
> > browser with the name as valname. Then how do i print this valname thru
> > dtml.
> 
> This is easy. 
> 
> 
> 
> See the rules for "Name Lookup" in the DTML Reference Guide. There
> are circumstances where it's not so simple... 
> 
> > ofcourse i checked out with the guides but could locate cgi calls,
> 
> That's so because the documentation sucks^H^H^H^H^Hneeds to
> be improved. Digital Creations is aware of this.
> 
> > ps: dont kick me out, everybody has to have a start.
> 
> We are all gentle tolerant people here. Well, most of the time.
> 
> Cheers,
> Nils
> --
> [EMAIL PROTECTED]   | [EMAIL PROTECTED] (preferred)
> [EMAIL PROTECTED] | [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 )




[Zope] Re: Traversal of ZODB

2000-07-04 Thread Steve Alexander

On Fri, 30 Jun 2000, David Trudgett wrote:
> I wonder if anyone has a sample Python script that traverses the ZODB to 
> query or perform arbitrary operations on the objects found in it? My 
> present requirement is to write a script that goes through and does some 
> automated updating of several dozen DTML documents.

Hi David,

I just posted something similar to Zope-Dev:

  http://lists.zope.org/pipermail/zope-dev/2000-July/005744.html


--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
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] [newbie] cgi-tasks howto? stupid question

2000-07-04 Thread Nils Kassube

[EMAIL PROTECTED] (Rajil Saraswat) wrote:

> browser with the name as valname. Then how do i print this valname thru
> dtml.

This is easy. 



See the rules for "Name Lookup" in the DTML Reference Guide. There
are circumstances where it's not so simple... 

> ofcourse i checked out with the guides but could locate cgi calls,

That's so because the documentation sucks^H^H^H^H^Hneeds to
be improved. Digital Creations is aware of this.

> ps: dont kick me out, everybody has to have a start.

We are all gentle tolerant people here. Well, most of the time.

Cheers,
Nils
--
[EMAIL PROTECTED]   | [EMAIL PROTECTED] (preferred)
[EMAIL PROTECTED] | [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] Authentication, Anonymous and Public

2000-07-04 Thread Dieter Maurer

Stuart Bishop writes:
 > On Fri, 30 Jun 2000, Dieter Maurer wrote:
 > > In Zope, each user has a set of roles.
 > > Any user has the "Anonymous" role. Log-in users may have
 > > additional roles.
 > > 
 > > Thus, what you see, should not happen.
 > 
 > Users, by default, are not granted the 'Anonymous' role. If you
 > explicity grant the Anonymous role to your users you will get the behaviour
 > you want.
Let's discuss whether this is useful.

A user that does not log in, i.e. a user you know nothing of,
gets the "Anonymous" role automatically (at least with "acl_users").
A logged in user may not get the "Anonymous" role.

This does not provide additional security, because this
user may simply shut down his browser and access the page again
as anonymous user.
On the other hand, it may result in surprises: suddenly (after
a log on) I can no longer do things that I was able to do
before the log on.

I think, this should be changed.


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] [newbie] cgi-tasks howto? stupid question

2000-07-04 Thread Rajil Saraswat

hi,
 is there any document around which list procedures how to accomplish
simple cgi tasks with dtml. say i get a input into a text box thru the
browser with the name as valname. Then how do i print this valname thru
dtml.
ofcourse i checked out with the guides but could locate cgi calls,
something called request i did find, but dont know how to use it.
thankx
ps: dont kick me out, everybody has to have a start.



___
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] too many open files

2000-07-04 Thread Olivier Deckmyn

Recompile your kernel with a higher value for MAXUSERS (x4 for example)

- Original Message - 
From: "Ragnar Beer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 04, 2000 6:31 PM
Subject: [Zope] too many open files


> Help!
> 
> Zope 2.1.6 refuses to work in the middle of an external method on my 
> i386 running under OpenBSD 2.7. Is says:
> 
> OSError
> [Errno 24] Too many open files: '[EMAIL PROTECTED]'
> 
> 
> I've never ever seen this problem before and this external method 
> used to work well until some minutes ago. Now the error keeps 
> reappearing even after rebooting and also other external methods that 
> used to run well now deliver the same message.
> 
> Does anybody have suggestions how to diagnose/cure this problem?
> 
> --Ragnar
> 
> ___
> 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] too many open files

2000-07-04 Thread Andrew Kenneth Milton

+[ Ragnar Beer ]-
| Help!
| 
| Zope 2.1.6 refuses to work in the middle of an external method on my 
| i386 running under OpenBSD 2.7. Is says:
| 
| OSError
| [Errno 24] Too many open files: '[EMAIL PROTECTED]'
| 
| 
| I've never ever seen this problem before and this external method 
| used to work well until some minutes ago. Now the error keeps 
| reappearing even after rebooting and also other external methods that 
| used to run well now deliver the same message.
| 
| Does anybody have suggestions how to diagnose/cure this problem?

You have several options:-

First type 'unlimit' at your prompt before you start Zope (or in a
shell script).
This should raise your max files from 64 to 800+

You should verfiy this by typing 'limits' at a prompt to see what
the settings are before and after the unlimit.

Next you can increase the MAXUSERS in your kernel conf to something larger
(say over 100) which will increase the maximum number of file descriptors
available and increase the number network buffers availalble (which you
will need for a webserver anyway)


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




[Zope] too many open files

2000-07-04 Thread Ragnar Beer

Help!

Zope 2.1.6 refuses to work in the middle of an external method on my 
i386 running under OpenBSD 2.7. Is says:

OSError
[Errno 24] Too many open files: '[EMAIL PROTECTED]'


I've never ever seen this problem before and this external method 
used to work well until some minutes ago. Now the error keeps 
reappearing even after rebooting and also other external methods that 
used to run well now deliver the same message.

Does anybody have suggestions how to diagnose/cure this problem?

--Ragnar

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

2000-07-04 Thread Nils Kassube

[Sorry for writing in German.]

[EMAIL PROTECTED] (Bruno Nana) wrote:

[Die deutschsprachige Mailing-Liste zu Zope kann man auf

http://mailman.beehive.de/mailman/listinfo/zope

abonnieren. Diese Liste, [EMAIL PROTECTED], ist üblicherweise
englischsprachig.] 

> Und alle diese Tabellen habe ich definiert und initialisiert, bei bestimmten
> Sachen werden die einige Tabelle gefunden, oder andere Tabellen gar nicht.

In welchem DBMS, Name und Version sind hilfreich, wurden die 
Tabellen definiert? Wie wird auf sie zugegriffen? Wie ist
die Rechtevergabe? Welches Betriebssystem?

Auffällig ist doch schon einmal, daß die Probleme scheinbar
nur auftreten, wenn versucht wird, Datensätze zu löschen. 

> Bitte könnte jemanden mir helfen, diese Fehler aufzuheben?

Vielleicht :-)

Tip: Wenn man andere um Hilfe bitte, immer alle relevanten
Informationen mitliefern. Wenn man im Zweifel ist, lieber
zuviel Details geben als zuwenig. 

Cheers,
Nils
--
[EMAIL PROTECTED]   | [EMAIL PROTECTED] (preferred)
[EMAIL PROTECTED] | [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] Lists and external methods

2000-07-04 Thread Tony McDonald

Oleg,
Thanks for that. It's the clearest explanation I've seen as to what 
'mapping' does (and I've read the docs a fair bit)
cheers
tone.

At 1:00 pm + 4/7/00, Oleg Broytmann wrote:
>On Tue, 4 Jul 2000, Pieter Claerhout wrote:
>>  I want the external method to return this in a list, where I can 
>>iterate over using the
>>   tag, so that I can reference the different fields in 
>>each record with a name.
>>
>>  What should the list look like so that I can accomplish this?
>
>dtml-in eats a list of objects or a list of dictionaries.
>
>Example 1.
>
>class Item:
>pass
>
>Your external methods should return:
>
>l = []
>
>item1 = Item()
>item1.date = "21/12/67"
>item1.foo = "bar"
>l.append(item1)
>
>item2 = Item()
>item2.date = "1/1/2000"
>item2.foo = "baz"
>l.append(item2)
>
>...etc...
>
>return l
>
>In the DTML use the list: date>
>
>
>Example 2 (dictionaries).
>
>Your external methods should return:
>
>l = []
>
>item1 = {}
>item1["date"] = "21/12/67"
>item1["foo"] = "bar"
>l.append(item1)
>
>item2 = {}
>item2["date"] = "1/1/2000"
>item2["foo"] = "baz"
>l.append(item2)
>
>...etc...
>
>return l
>
>In the DTML use the list: date>
>   ^^^
>dtml-in needs to be notified these are dicttionaries.
>
>Oleg.(All opinions are mine and not of my employer)
--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
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] Programmierungshilfe

2000-07-04 Thread Joachim Schmitz

Hallo Herr Nana,


es sieht nicht so aus als würden Sie Zope benutzen. Falls doch, geben Sie
bitte die Installationsdaten an.


Mit freundlichen Grüßen

Joachim Schmitz  

  
Email:   [EMAIL PROTECTED]  
Telefon: +49-2464-8851 
FAX: +49-2464-905163

On Tue, 4 Jul 2000, Bruno Nana wrote:

> Sehr Geehrte Damen und Herren,
> 
> dies Fehler kommt mir wiederholt vor, bei dem Onlineaufruf von erstellten
> Tabelle im Web.
> 
...



___
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, subtransactions permissions

2000-07-04 Thread Eric L. Walstad

Hi All,

I have a user that is trying to go thru the JobBoard tutorial.  In part of
the tutorial he is supposed to turn off subtransactions in his instance of
ZCatalog.  However, he does not have the necessary permissions to do so.

I'm the one that is supposed to setup his permissions, but I can't seem to
find how or where to do it.  Which permission is it and where is it set?

There is no security tab in the ZCatalog folder, so I can't change his local
role for that folder.  I've tried changing his local role in the folder that
contains the ZCatalog folder, but without any luck.

TIA,  Eric.


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

2000-07-04 Thread Bruno Nana

Sehr Geehrte Damen und Herren,

dies Fehler kommt mir wiederholt vor, bei dem Onlineaufruf von erstellten
Tabelle im Web.

<<<
Error Type: Error
Error Value: Error processing delete from iekundegeschaeft where firma_id=14
iekundegeschaeft not found. Specify owner.objectname or use sp_help to check
whether the object exists (sp_help may produce lots of output).


<<<
Error Type: Error
Error Value: Error processing delete from iekundegeschaeft where firma_id=3
iekundegeschaeft not found. Specify owner.objectname or use sp_help to check
whether the object exists (sp_help may produce lots of output).
<< Die Tabelle hier ist iekundegeschaeft

Error Type: Error
Error Value: Error processing delete from iereferenz where id_nr=1
iereferenz not found. Specify owner.objectname or use sp_help to check
whether the object exists (sp_help may produce lots of output).
>>> Die Tabelle hier ist iereferenz.

Und alle diese Tabellen habe ich definiert und initialisiert, bei bestimmten
Sachen werden die einige Tabelle gefunden, oder andere Tabellen gar nicht.

Bitte könnte jemanden mir helfen, diese Fehler aufzuheben?


___
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] generate a list of date

2000-07-04 Thread Steve Spicklemire


How about:







> "F" == F Richter <[EMAIL PROTECTED]> writes:

F> Hello, I want generate and show a list of days in a period.

F> For instance: (period from 2000-06-07 to 2000-06-30)

F> 2000-06-07, 2000-06-08, 2000-06-08 ... 2000-06-30

F> How can I do this???  -- By Frank

F> ___ Zope maillist -
F> [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No
F> cross posts or HTML encoding!  ** (Related lists -
F> http://lists.zope.org/mailman/listinfo/zope-announce
F> 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] cookies

2000-07-04 Thread Vincent Maton

Hello !!!
can you tell me how can I use the "cookies"

Thank you very much


___
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] Sorting a list descending using dtml-in

2000-07-04 Thread Pieter Claerhout

Seems to work fine in Zope 2.1.6...

Pieter


-Original Message-
From: Jerome Alet [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 04, 2000 3:48 PM
To: Pieter Claerhout
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Zope] Sorting a list descending using dtml-in


On Tue, 4 Jul 2000, Pieter Claerhout wrote:

> if I'm iterating over a list using the dtml-in tag, is it then possible
> to sort the items descending?

IIRC:





bye,

Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE

___
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] Sorting a list descending using dtml-in

2000-07-04 Thread Jerome Alet

On Tue, 4 Jul 2000, Pieter Claerhout wrote:

> if I'm iterating over a list using the dtml-in tag, is it then possible
> to sort the items descending?

IIRC:





bye,

Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE


___
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] Sorting a list descending using dtml-in

2000-07-04 Thread Oleg Broytmann

On Tue, 4 Jul 2000, Pieter Claerhout wrote:
> if I'm iterating over a list using the dtml-in tag, is it then possible
> to sort the items descending?

   

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] Sorting a list descending using dtml-in

2000-07-04 Thread Pieter Claerhout

Hello,

if I'm iterating over a list using the dtml-in tag, is it then possible
to sort the items descending?


Pieter

Pieter Claerhout
Application Support - CreoScitex Europe


___
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] Lists and external methods

2000-07-04 Thread Oleg Broytmann

On Tue, 4 Jul 2000, Pieter Claerhout wrote:
> I want the external method to return this in a list, where I can iterate over using 
>the
>  tag, so that I can reference the different fields in each record with a 
>name.
> 
> What should the list look like so that I can accomplish this?

   dtml-in eats a list of objects or a list of dictionaries.

Example 1.

class Item:
   pass

   Your external methods should return:

l = []

item1 = Item()
item1.date = "21/12/67"
item1.foo = "bar"
l.append(item1)

item2 = Item()
item2.date = "1/1/2000"
item2.foo = "baz"
l.append(item2)

   ...etc...

return l

   In the DTML use the list: 


Example 2 (dictionaries).

   Your external methods should return:

l = []

item1 = {}
item1["date"] = "21/12/67"
item1["foo"] = "bar"
l.append(item1)

item2 = {}
item2["date"] = "1/1/2000"
item2["foo"] = "baz"
l.append(item2)

   ...etc...

return l

   In the DTML use the list: 
  ^^^
   dtml-in needs to be notified these are dicttionaries.

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] Help needed: why is this DTML not working in zope 2 ?

2000-07-04 Thread Shane Hathaway

Shane Hathaway wrote:
> I think you've been bitten by a recently solved bug in dtml-try.  When
> 2.2.0b4 comes out, please download it and try it out with your DTML (or
> if you're in a hurry, download from CVS.)  If 2.2.0b4 doesn't solve it,
> e-mail me right away.

Oops, looks like you solved it.  Well, don't try it with 2.2.0b3 cause
it won't work. :-)

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] Lists and external methods

2000-07-04 Thread Pieter Claerhout

Hello there,

I started working with Zope a few days ago, and I'm currently having some troubles
with external methods. I made an external method that returns a record like list,
but this doesn't seem to work correctly>

The list look a bit like this:
90, "x86", "Explanation", "22/06/200"
89, "x86", "Explanation", "22/06/200"
89, "mac", "Explanation", "22/06/200"

I want the external method to return this in a list, where I can iterate over using the
 tag, so that I can reference the different fields in each record with a name.

What should the list look like so that I can accomplish this?


Pieter

___
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] Help needed: why is this DTML not working in zope 2 ?

2000-07-04 Thread Shane Hathaway

Hello Gilles,

I think you've been bitten by a recently solved bug in dtml-try.  When
2.2.0b4 comes out, please download it and try it out with your DTML (or
if you're in a hurry, download from CVS.)  If 2.2.0b4 doesn't solve it,
e-mail me right away.

Shane

Gilles Lavaux wrote:
> 
> Hello,
> 
> I am a little bit disappointed not getting any echo from my previous
> question, so I report it.
> Maybe my dtml is wrong for zope2, but I would appreciate to have some
> explanation from more experienced peoples.
> If I can not find a solution, we will have to keep our zope1 production
> server, and it will be the end of the Zope story in my company :-(
> 
> So my question was :
> 
> I want to display the content of a site starting from a folder called 'Site'
> with a tree tag.
> I want also to render immediately inside the tree the documents with an
> ID=='PUBLIC_Doc'.
> In Zope 1.x I have a working dtml method like this:
> 
> 
> 
>   
>   
> ##
> 
>   
> 
>   
> 
> ##
>   
> 
> 
> 
> Unfortunatly for me , with zope 2.1.6 i get an error when I try to render
> the 'PUBLIC_Doc' document:
> .
> PUBLIC_Doc !#
> Error type:AttributeError
> Error Message:
> Error Message:__call__
> Error TB:Traceback (innermost last): File
> "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Try.py", line 221, in
> render_try_except result = render_blocks(self.section, md) File
> "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 335, in
> eval return eval(code,globals,d) File "", line 0, in ? File
> "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 161, in
> careful_getitem v=mapping[key] File
> "/usr/share/zope/lib/python/OFS/DTMLMethod.py", line 146, in __call__
> r=apply(HTML.__call__, (self, client, REQUEST), kw) File
> "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py", line 502,
> in __call__ try: return render_blocks(self._v_blocks, md) AttributeError:
> __call__
> 
> has someone a solution ??
> 
> Thanks,
> 
> Gilles
> 
> ___
> 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] "Powered By Zope" logo

2000-07-04 Thread Martijn Pieters

On Tue, Jul 04, 2000 at 12:44:14PM +0100, Peter Bengtsson wrote:
> The "Powered by Zope" logo in the footer is slow to load for some
> reason, and I don't like the colour of it (nice, but not one the site
> I'm working on at the moment.
> Basically, where do I find the source for this: 

The image is loaded from ib/python/App/www/zope_button.jpg

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

___
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] Restarting with NT

2000-07-04 Thread J. Michael Mc Kay

If I stop Zope as a service from NT's Service Manager or from the Zope
management interface it seems to kick and scream while restarting. In the
application log I see repeated errors stating the service could not start.
These repeat until the application log is full.  Zope appears to be running,
but I have not yet learned how long it is cycling to start.

The error series is essentially, "Starting Zope Service" , "Could not Start
Zope Service" until the log is full.  From there I'm not sure.

Is this a known issue or am I missing a switch setting for start-up?

This does not occur from reboot.  Everything is as normal as I know
normalcy.

Thanks


___
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] generate a list of date

2000-07-04 Thread F.Richter

Hello,

I want generate and show a list of days in a period.

For instance:
(period from 2000-06-07 to 2000-06-30)

2000-06-07, 2000-06-08, 2000-06-08 ... 2000-06-30

How can I do this???
-- 
By 
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] "Powered By Zope" logo

2000-07-04 Thread Peter Bengtsson



Dear Zpeople
 
 
The "Powered by Zope" logo in the footer is slow to 
load for some reason, and I don't like the colour of it (nice, but not one the 
site I'm working on at the moment.
Basically, where do I find the source for this: 

 
Yes, I know that I can create my own, but why 
bother when one already exist.
 
Yours truly, Peter
 
 


Re: [Zope] problem with ZopeFind and objectValues

2000-07-04 Thread Jerome Alet

I can now answer in part:

On Mon, 3 Jul 2000, Jerome Alet wrote:

> 
>- 
> 
> 
> gives me the following error:
> 
> """Unauthorized
> 
> You are not authorized to access id."""
> 
> If I set a proxy role of manager to this dtml-method that doesn't change
> anything, it still doesn't work.

In fact if I give this method a proxy role of Manager then it works fine
if I access directly to this method from my browser. However if I call
this method from inside another dtml method then it seems that the method
loose its proxy role of manager.

e.g.: 

say mymethod has a proxy role of manager and a method called anothermethod
contains somewhere: 



then if anothermethod has no proxy role at all:

browsing: http://myserver/myfolder/mymethod works fine.

browsing: http://myserver/myfolder/anothermethod doesn't work
(Unauthorized).

I have to give the proxy role of Manager to anothermethod too if I want
both to work correctly.

Is it a feature or a bug ?

thanks in advance.

Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE



___
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] About "Powered by Zope"...very simple, isn't it?

2000-07-04 Thread Robert Wohlfahrt

Hi,

> well... this is not a very important thing, but I would like to remove
> the picture "Powered by Zope" at the end of my Zope Pages...
> is it possible..? I though it was in the "standard html header" but it
> seems that it is not...gasp...

it is in standard_html_footer ...

Robert

___
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] About "Powered by Zope"...very simple, isn't it?

2000-07-04 Thread Nils Jeppe

On Tue, 4 Jul 2000, Pierre Rougier wrote:

> is it possible..? I though it was in the "standard html header" but it
> seems that it is not...gasp...

Yeah it's in the standard html footer! :-)


best wishes,
Nils


___
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] About "Powered by Zope"...very simple, isn't it?

2000-07-04 Thread Oleg Broytmann

On Tue, 4 Jul 2000, Pierre Rougier wrote:
> well... this is not a very important thing, but I would like to remove
> the picture "Powered by Zope" at the end of my Zope Pages...
> is it possible..? I though it was in the "standard html header" but it

   footer

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] About "Powered by Zope"...very simple, isn't it?

2000-07-04 Thread Andrew Kenneth Milton

+[ Pierre Rougier ]-
| Hi zopatistas,
| well... this is not a very important thing, but I would like to remove
| the picture "Powered by Zope" at the end of my Zope Pages...
| is it possible..? I though it was in the "standard html header" but it
| seems that it is not...gasp...
| someone can help me?
| 

It's in standard_html_footer, you were pretty close.


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




[Zope] About "Powered by Zope"...very simple, isn't it?

2000-07-04 Thread Pierre Rougier

Hi zopatistas,
well... this is not a very important thing, but I would like to remove
the picture "Powered by Zope" at the end of my Zope Pages...
is it possible..? I though it was in the "standard html header" but it
seems that it is not...gasp...
someone can help me?


___
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] Re: [Zope-dev] Help needed: why is this DTML not working in zope 2 ?

2000-07-04 Thread Gilles Lavaux

Thanks Chris,

Unfortunatly no, I have already try the new syntax (and a lot of other
things).

The problem is at the line :


if I change this line with : 

my tree works, expand, collapse  well, and display  the name of my objects,
but I want to have the content in case the object name is 'PUBLIC_Doc'. It's
why I have use the code   in zope 1, 2 levels of _[,
to get the content of the content of the variable id . I try also to use a
external method to render the object -> same result. I can get the object
code, but the rendering failed, I think it's some acquisition pb.

gilles

-Original Message-
From: Chris Withers <[EMAIL PROTECTED]>
To: Gilles Lavaux <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, July 04, 2000 11:27 AM
Subject: [Zope] Re: [Zope-dev] Help needed: why is this DTML not working in
zope 2 ?


>You could try moving stuff to the new dtml style for starters:
> and the like.
>
>That might help, if not let us know..
>
>cheers,
>
>Chris
>
>Gilles Lavaux wrote:
>>
>> Hello,
>>
>> I am a little bit disappointed not getting any echo from my previous
>> question, so I report it.
>> Maybe my dtml is wrong for zope2, but I would appreciate to have some
>> explanation from more experienced peoples.
>> If I can not find a solution, we will have to keep our zope1 production
>> server, and it will be the end of the Zope story in my company :-(
>>
>> So my question was :
>>
>> I want to display the content of a site starting from a folder called
'Site'
>> with a tree tag.
>> I want also to render immediately inside the tree the documents with an
>> ID=='PUBLIC_Doc'.
>> In Zope 1.x I have a working dtml method like this:
>>
>> 
>> 
>>   
>>   
>> ##
>> 
>>   
>> 
>>   
>> 
>> ##
>>   
>> 
>> 
>>
>> Unfortunatly for me , with zope 2.1.6 i get an error when I try to render
>> the 'PUBLIC_Doc' document:
>> .
>> PUBLIC_Doc !#
>> Error type:AttributeError
>> Error Message:
>> Error Message:__call__
>> Error TB:Traceback (innermost last): File
>> "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Try.py", line 221,
in
>> render_try_except result = render_blocks(self.section, md) File
>> "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 335,
in
>> eval return eval(code,globals,d) File "", line 0, in ? File
>> "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 161,
in
>> careful_getitem v=mapping[key] File
>> "/usr/share/zope/lib/python/OFS/DTMLMethod.py", line 146, in __call__
>> r=apply(HTML.__call__, (self, client, REQUEST), kw) File
>> "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py", line
502,
>> in __call__ try: return render_blocks(self._v_blocks, md) AttributeError:
>> __call__
>>
>> has someone a solution ??
>>
>> Thanks,
>>
>> Gilles
>>
>> ___
>> Zope-Dev maillist  -  [EMAIL PROTECTED]
>> http://lists.zope.org/mailman/listinfo/zope-dev
>> **  No cross posts or HTML encoding!  **
>> (Related lists -
>>  http://lists.zope.org/mailman/listinfo/zope-announce
>>  http://lists.zope.org/mailman/listinfo/zope )
>
>___
>Zope 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] site versions with zope

2000-07-04 Thread Diny van Gool

At 10:38 4-7-00 +0200, Nathalie Bernier wrote:
>Hello,
>
>I'd like to modify a live site, instead of working on a mirror copy. Could
>someone explain me, step by step, how sessions work?

Hi,

At http://www.zope.org/Documentation/Guides/ZCMG (Zope Content Manager's
Guide) you'll find a section called 'Working with versions'. May be this is
what you are looking for.

Diny.



DIVA
Faculty of Veterinary Medicine
The Netherlands
http://www.vet.uu.nl

___
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] uploading from client PC in MySQL thru ZSQL

2000-07-04 Thread Andrew Kenneth Milton

+[ Didier Georgieff ]-
|
| SQL used:
| LOAD DATA LOCAL INFILE 'D:/Data/SIT67/AnnuaireTest.csv' 
| INTO TABLE annuaire FIELDS TERMINATED BY ';'

Local means local to the actual mysql client (your webserver), not local to 
your user (browser).

You could get your form to upload the file to a LocalFS directory and
then use that path the INFILE.

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




[Zope] uploading from client PC in MySQL thru ZSQL

2000-07-04 Thread Didier Georgieff

Hello,

I'm trying to "import" a CSV text file for feeding a MySQL database.

I have :

* DTML method including :






* ZSQL method 'import'
parameter : loadFileAnnu
query template : 
LOAD DATA LOCAL INFILE '' 
INTO TABLE annuaire FIELDS TERMINATED BY ';'

when i process the form, i always get the import/manage_testForm
and if i try to upload the (local on my PC) file thru this, i get an 
MySQL error 

Error, _mysql.InterfaceError: (0, "File 'D:/AnnuaireTest.csv' not 
found (Errcode: 2)") 

SQL used:
LOAD DATA LOCAL INFILE 'D:/Data/SIT67/AnnuaireTest.csv' 
INTO TABLE annuaire FIELDS TERMINATED BY ';'

Am i doing something wrong or is it impossible to load/import in 
MySQL from the local file (so i should upload the file on the server 
then load into MySQL) ??
Thanks in advance for any tip or info.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
GéoWeb http://10.67.90.3 (Intranet Agriculture)
GéoWeb http://sertit10.u-strasbg.fr (Internet)

___
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: [Zope-dev] Help needed: why is this DTML not working in zope 2 ?

2000-07-04 Thread Chris Withers

You could try moving stuff to the new dtml style for starters:
 and the like.

That might help, if not let us know..

cheers,

Chris

Gilles Lavaux wrote:
> 
> Hello,
> 
> I am a little bit disappointed not getting any echo from my previous
> question, so I report it.
> Maybe my dtml is wrong for zope2, but I would appreciate to have some
> explanation from more experienced peoples.
> If I can not find a solution, we will have to keep our zope1 production
> server, and it will be the end of the Zope story in my company :-(
> 
> So my question was :
> 
> I want to display the content of a site starting from a folder called 'Site'
> with a tree tag.
> I want also to render immediately inside the tree the documents with an
> ID=='PUBLIC_Doc'.
> In Zope 1.x I have a working dtml method like this:
> 
> 
> 
>   
>   
> ##
> 
>   
> 
>   
> 
> ##
>   
> 
> 
> 
> Unfortunatly for me , with zope 2.1.6 i get an error when I try to render
> the 'PUBLIC_Doc' document:
> .
> PUBLIC_Doc !#
> Error type:AttributeError
> Error Message:
> Error Message:__call__
> Error TB:Traceback (innermost last): File
> "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Try.py", line 221, in
> render_try_except result = render_blocks(self.section, md) File
> "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 335, in
> eval return eval(code,globals,d) File "", line 0, in ? File
> "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 161, in
> careful_getitem v=mapping[key] File
> "/usr/share/zope/lib/python/OFS/DTMLMethod.py", line 146, in __call__
> r=apply(HTML.__call__, (self, client, REQUEST), kw) File
> "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py", line 502,
> in __call__ try: return render_blocks(self._v_blocks, md) AttributeError:
> __call__
> 
> has someone a solution ??
> 
> Thanks,
> 
> Gilles
> 
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )

___
Zope 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] Help needed: why is this DTML not working in zope 2 ?

2000-07-04 Thread Gilles Lavaux

Hello,

I am a little bit disappointed not getting any echo from my previous
question, so I report it.
Maybe my dtml is wrong for zope2, but I would appreciate to have some
explanation from more experienced peoples.
If I can not find a solution, we will have to keep our zope1 production
server, and it will be the end of the Zope story in my company :-(

So my question was :

I want to display the content of a site starting from a folder called 'Site'
with a tree tag.
I want also to render immediately inside the tree the documents with an
ID=='PUBLIC_Doc'.
In Zope 1.x I have a working dtml method like this:



  
  
##

  

  

##
  



Unfortunatly for me , with zope 2.1.6 i get an error when I try to render
the 'PUBLIC_Doc' document:
.
PUBLIC_Doc !#
Error type:AttributeError
Error Message:
Error Message:__call__
Error TB:Traceback (innermost last): File
"/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Try.py", line 221, in
render_try_except result = render_blocks(self.section, md) File
"/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 335, in
eval return eval(code,globals,d) File "", line 0, in ? File
"/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 161, in
careful_getitem v=mapping[key] File
"/usr/share/zope/lib/python/OFS/DTMLMethod.py", line 146, in __call__
r=apply(HTML.__call__, (self, client, REQUEST), kw) File
"/usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py", line 502,
in __call__ try: return render_blocks(self._v_blocks, md) AttributeError:
__call__

has someone a solution ??

Thanks,

Gilles



___
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] NOTICE: issue with database packing in current Zopereleases

2000-07-04 Thread Stuart Bishop

On Thu, 29 Jun 2000, Brian Lloyd wrote:

> Jim found a problem with the algorithm for packing the Zope
> database that we wanted to announce so that folks can avoid 
> being bitten by it until the fix is out (in b4).

I think this is a candidate for a Hotfix.

2.2 upgrades could be problematic and I think we might continue
to see large numbers of 2.1.6 users until all the products run
happily on it.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


___
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] Authentication, Anonymous and Public

2000-07-04 Thread Stuart Bishop

On Fri, 30 Jun 2000, Dieter Maurer wrote:

> Capesius, Alan writes:
>  > I'm running into a problem after implementing jcNTUserFolder in a 
>  > subfolder of my site. Users can access the root level or particular 
>  > subfolders anonymously. Once a user accesses the protected 
>  > NTUserFolder, the credentials are saved in the browser. If the user 
>  > then returns to the anonymous area, they can no longer access th 
>  > folder due to the browser credentials.
>  > 
>  > Does Zope have a mechanism equivalent to the Novell NDS Public access?
>  > that is to say:
>  > 
>  > Anonymous = not authenticated.
>  > Everyone = authenticated users (that are members of the group)
>  > Public = authenticated and anonymous users.
> 
> In Zope, each user has a set of roles.
> Any user has the "Anonymous" role. Log-in users may have
> additional roles.
> 
> Thus, what you see, should not happen.

Users, by default, are not granted the 'Anonymous' role. If you
explicity grant the Anonymous role to your users you will get the behaviour
you want.

Earlier than current versions of GUF automatically did this, but I changed
it in the later releases after I saw the error pointed our by Ty or Phillip -
this may be a source of some confusion.

This email live from drizzly Queensland :-(

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


___
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] site versions with zope

2000-07-04 Thread Nathalie Bernier

Hello,

I'd like to modify a live site, instead of working on a mirror copy. Could
someone explain me, step by step, how sessions work?
Thanks

Nathalie Bernier
*
Développeur web

multiThématiques
Centre Jean Monet
Longlaville
54400 LONGWY

http://multithematiques.com
Chaînes thématiques sur câble et satellite
*




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

2000-07-04 Thread Olivier Deckmyn

Hi,

I use XMLDocument

the following dtml method (editUseCaseTitle):


  
  


applied on an XML Node
http://zion:8080/UseCases/cases/cases_lines/xml_db/e2914/e2964/editUseCaseTi
tle

where :
- xml_db is my XML Document
- editUseCaseTitle is in the 'cases' folder


When running I have the following error :
Zope Error
Zope has encountered an error while publishing this resource.
Unauthorized
You are not authorized to access appendChild.
Traceback (innermost last):
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 214, in
publish_module
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 179, in
publish
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 165, in
publish
  File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: editUseCaseTitle)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 102, in
call_object
(Object: editUseCaseTitle)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 150, in __call__
(Object: editUseCaseTitle)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 502,
in __call__
(Object: editUseCaseTitle)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_Let.py, line 145, in
render
(Object: doc="getOwnerDocument()"
  title_node="doc.createElement('title')"
  title_text="doc.createTextNode(title)")
  File /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 335, in
eval
(Object: title_node.appendChild(title_text))
(Info: title_text)
  File , line 0, in ?
  File /usr/local/zope/lib/python/DocumentTemplate/DT_Util.py, line 140, in
careful_getattr
Unauthorized: (see above)

Current user is manager for everything...(me !)

I use
Zope version: Zope 2.1.6 (source release, python 1.5.2, linux2)
Python version: 1.5.2 (#2, May 18 2000, 10:00:10) [GCC 2.95.2 19991024
(release)]
System Platform: freebsd4
XMLDocument (XML Document 1.0a6)

What is wrong ?
:(


Regards,
Olivier.




___
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] MySQL transaction support (was: MySQL Select Statements)

2000-07-04 Thread Monty Taylor



>> Original Message <<

On 7/4/00, 12:47:07 AM, Andy Dustman <[EMAIL PROTECTED]> wrote regarding 
Re: [Zope] MySQL transaction support (was: MySQL Select Statements):

> Note also: With non-transactional databases, you would expect to get
> better performance by having several open connections which are not
> shared. In the case of MySQL, each connection has it's own server thread,
> and this can exploit CPUs, if available. However, connections should not
> be shared on transactional databases, because transactions are tied to a
> connection, and not a cursor. Even if there is a mutex to keep multiple
> threads from executing queries simultaneously on the same connection, the
> transactions are going to be whacky.

Oracle is obviously transactional. Does anyone know how it handles 
connection pooling? I'll look and see it I can figure it out, but I'd 
love it if someone already knew...

Monty

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