Re: [Zope] adding roles to Zope in Product.initialize()

2000-11-29 Thread Jerome Alet

On Wed, 29 Nov 2000, Randall Kern wrote:

> By "use local roles", you mean do it manually, through the web ui?  I don't
> see how I could create a local role from code either, since none of my
> objects have been created yet.

You can do it in the manage_afterAdd() method of your class:

---CUT---
def manage_afterAdd(self, item, container) :
# create the role only if it doesn't exist (acquisition)
if "yourrole" not in container.valid_roles() :
self._addRole("yourrole")

#
# here you may need to call the manage_afetrAdd() method
# of you base class
# e.g.: Folder.manage_afterAdd(self, item, container)
---CUT---

So the role will be created in your instance during its creation, but only
if doesn't exist yet (or can't be acquired from the above level).

hoping this will help.

Jerome Alet


___
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] Factoids for supporting zope

2000-11-29 Thread albert boulanger


One query about your plans for PTK. In my opinion it would be good to
incorporate into it, at some level, capability like Microsoft's
Digital Dashboard -- you know like mynetscape.com edit
capabilities. (Actually the use of dynamic html in Excite's version of
the same thing is nicer.)  I would think that this functionality is
factorable enough to make it a separate product. Has anyone have
plans to do such a thing? 

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 )




[Zope] New Zope.org

2000-11-29 Thread emf

Zopatistas!

Zope.org is finally living in its new home.

Right now, you may be getting zope.org through the old apache, so don't 
be surprised if it's a tad slow.  By late tomorrow, just about 
everybody's dns should have updated to the new IP address.

If you want to know, do a nslookup www.zope.org: you should get 
63.102.49.33 as your answer.

When I finally wake up tomorrow, the first thing I'm going to do is 
start working on a write-up of what the new zope setup is all about.

Thanks for your patience!

ethan mindlace fremen
Zopatista Community Liason


___
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] VHost logs.

2000-11-29 Thread Jason C. Leach

hi,

With Apache in front of zope, do you disable Medusa? And do you need to
set both Apache and Zope to have the vhosts (do I need to set up a vhost
twice?).

Thanks,
j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Wed, 29 Nov 2000, Rob Miller wrote:

> Jason C. Leach wrote:
> 
> > hi,
> > 
> > Has anyone implemented there own logging for Virtual Sites?
> > 
> > I was thinking in the site rules an External Method could be called,
> > passed the Request obj, and from that generate logs for virtual sites.
> > 
> > If anyone has done that, or knows of a better way I'd be interested in
> > hearing it.
> 
> I'm not exactly sure what your goal is... but if you're just trying to 
> generate separate log files for each of your virtual sites, I'm accomplishing 
> that by having my virtual sites proxied behind Apache (using SiteAccess and 
> the ProxyPass directive) and specifying the log files for each VirtualHost in 
> my httpd.conf file.  You can control the contents of the logs using the 
> LogFormat directive; I use the same format for all of my virtual hosts, but I 
> think you can specify a different log format for each host if you desire.
> 
> If you're trying to accomplish something else which requires you to handle the 
> logging on the Zope side of things, then it seems to me that your idea would 
> work, although I'd want to find out how my server performance would be affected...
> 
> Hope this is useful for you,
> 
> rob
> 
> 


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

2000-11-29 Thread gpgreen

I am just getting started in Zope and have what is probably an obvious question.
I have an external method that returns a list. I understand how to write
dtml to iterate through the list using . My question is how do
I write a dtml-method that takes the current sequence-item and does something
in it.

So in index_html


 
  



And in the other dtml-method, how do I access the sequence-item passed in?

Thanks,

-- 
Greg Green
e-mail: [EMAIL PROTECTED]
http://www.olywa.net/gpgreen/


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

2000-11-29 Thread gpgreen

Awesome! That did the trick. I'm starting to like this.

-- 
Greg Green
e-mail: [EMAIL PROTECTED]
http://www.olywa.net/gpgreen/


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

2000-11-29 Thread gpgreen

On Sat, Apr 22, 2000 at 04:04:58PM +1000, Malcolm Tredinnick wrote:
> The syntax you want, if I've understoof the question, is (untested):
>   
> 
> You need to do it this way because the stuff inside the quotes is a python
> expression and hyphens are not permitted in Python variable names. So you use
> the magical _ namespace, which contains things like sequence-item as a key.

Very nice. Now how do I reference the variable in the_other_dtml_method? I 
assume it is in the other methods namespace, but what name does it have?

-- 
Greg Green
e-mail: [EMAIL PROTECTED]
http://www.olywa.net/gpgreen/


___
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.org going down for the last time :)

2000-11-29 Thread emf

Ok, I'm bringing zope.org down and back up in read-only mode.

Then I am going to copy the data.fs over, start the new server again, 
and proxy the old zope to the new one.

Enjoy!

~ethan


___
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 create Primary Key

2000-11-29 Thread Angietel



I'm using the Z Gadfly Database as my database 
adapter, and i using Z SQL Method to create my table, but it is not allow for me 
to create Primary Key for the my sequence integer field, beside that it also not 
allow me to create a 'date' data type field.
 
my SQL will be:-
CREATE TABLE customer(custno SERIAL PRIMARY 
KEY,
custactdate DATE)


Re: [Zope] adding roles to Zope in Product.initialize()

2000-11-29 Thread Randall Kern

By "use local roles", you mean do it manually, through the web ui?  I don't
see how I could create a local role from code either, since none of my
objects have been created yet.

Thanks,
-Randy
- Original Message -
From: "Chris McDonough" <[EMAIL PROTECTED]>
To: "Randall Kern" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 29, 2000 7:09 PM
Subject: Re: [Zope] adding roles to Zope in Product.initialize()


> No... the stock answer is "use local roles".  I had a proposal up to
create
> an interface for programmatically adding roles on dev.zope.org but it's
> quite dead.  The thought behind this is that actual roles are reserved for
> administrator usage, not developer usage.  Which leaves us in sort of this
> weird state that I'm not completely comfortable with, but don't have time
to
> argue. :-)
>
> - Original Message -
> From: Randall Kern
> To: [EMAIL PROTECTED]
> Sent: Wednesday, November 29, 2000 9:12 PM
> Subject: [Zope] adding roles to Zope in Product.initialize()
>
>
> I wish to restrict the creation of a class (SpokeSite) to people with the
> "Add Spoke Site" permission, and in turn only provide that permission to
> people in the 'Super-manager' Role.
>
> When I call ProductContext.registerClass for my SpokeSite class, I can
pass
> the permission argument with the tuple ('Add Spoke Site',
'Super-manager'),
> which does a good job of limiting the availability of my class (just as I
> desire).
>
> However, I would like my Product to automatically create the
'Super-manager'
> Role, if it doesn't exists.  The bad part is that this role needs to be
> added before any of my objects exist, which makes it hard...
>
> I've got it *working* by cheating, and using the private __app attribute
of
> the ProductContext.  Is there a better way for python Products to alter
the
> Zope installation (add Roles, create Folders, etc.) during installation?
>
> Thanks!
> -Randy
>


___
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] Ah, I found it -- Estimate of community size

2000-11-29 Thread Bill Anderson

ethan mindlace fremen wrote:
> 
> Jimmie Houchin wrote:
> 
> > I would have to say that both are accurate at the time they were given.
> > However, neither will be a truly accurate measurement of the users of
> > Zope and the Zope community.
> >
> > They each measure different things. One measures the people who have
> > "joined" Zope.org.
> > """The extremely large Members folder (11139 of you!)"""
> > The other measures subscribers to the mailing list.
> > """There are 1617 members of [EMAIL PROTECTED]"""
> >
> > There are a few people who have different identities on the Zope
> > memberships. There will also be possible duplication on the mailing list
> > due to different email addresses. There are also people who neither join
> > Zope.org nor subscribe to the mailing list, but who have nevertheless
> > downloaded and use Zope.
> >
> > There also are people who have been on the mailing lists, learned and
> > then subsequently left the lists, but still use Zope. There are also
> > those who no longer do.
> >
> > So, who knows what an accurate figure would be?
> 
> This is impossible! Zope is distributed with Red Hat and Debian, both of
> which are availiable via anonymous ftp.  It looks like there are about

And SuSe, and I believe, Mandrake as well.

> But anyway, there's no concrete way to count zope users: estimation is
> the best we'll ever get.


yup.


___
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] Is there an interest for Zope classes taught in Europe

2000-11-29 Thread Gary Graham

Digital Creations is considering offering Zope classes for the European market with 
perhaps two classes in the Springtime in 2001. We are asking for your input on:

1) are there any students interested in attending?
2) suggestions for class locations and dates?
3) price has not been set yet and may vary according to location costs.
4) most likely the classes would be taught in English
5) what other languages?
6) are there qualified multi-lingual Zope instructors?

Comments, other ideas, suggestions or, any students interested, please reply to 
[EMAIL PROTECTED]

--Gary

Gary Graham [EMAIL PROTECTED]  
Director, Sales & Marketing
Digital CreationsFredericksburg, Virginia
mobile: 540.840.3813  office: 540.372.9971 direct
eFax: 781.394.7868

Creators of Zope: The Open Source Application / Content Management Server
www.zope.org
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] Instance within Instance

2000-11-29 Thread Daryl Stultz

Tim Cook wrote:

Well, Tim, I'm sorry to say I am back where I started :-( 
I took your (working) example and modified it. I want to be able to add
the MyClass1/MyClass2 combo from the management interface (the add
product thing). 
I combined all the code into MyClass1_add. If I use this:

>   
> 
>   

I get a permission denied error. If I remove the with wrapper, I get the
MyClass2 instance, but ALONGSIDE rather than within the MyClass1
instance. This is pretty much the same thing I got before you sent me
the product so I guess I wasn't that far off :-)

I fooled around with permissions as much as I could and couldn't make it
work. Any ideas there?

Thanks again.

-- 
"Where is the fancy bread, in the heart or in the head?"

Daryl Stultz - python, zope, blender, robots, really bad harmonica
playing...
[EMAIL PROTECTED]  
RedHat Linux 6.1 - Dual Pentium Pro

___
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] ZCatalog: Query Syntax

2000-11-29 Thread Chris McDonough

The place to start might be to actually help write some documentation.
There is a docs process description at
http://dev.zope.org/Wikis/DevSite/Projects/DocumentationProcess/Documentatio
nGuide .  This should at least give you an idea of how to proceed.

- Original Message -
From: "Doug Morse" <[EMAIL PROTECTED]>
To: "Chris Withers" <[EMAIL PROTECTED]>
Cc: "Andy McKay" <[EMAIL PROTECTED]>; "Dieter Maurer"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 29, 2000 9:38 PM
Subject: Re: [Zope] ZCatalog: Query Syntax


> Chris,
>
> I also had great difficulty in finding any relevant documentation... (re:
> specifics regarding text and field searches against a ZCatalog)...
>
> So, it sounds like we should (a) make a feature request and (b) make a
> documentation request.  I'm more than happy to write up and submit such
> requests.  Heck, I'd been even happy to tackle coding the improvements,
but
> I'd need someone very familiar with the ZCatalog implementation to give me
> some direction to get me going (i.e., how he or she would recommend the
> change be implemented).
>
> But, I'm quite new to the Zope world, and have no idea where one goes to
> request a feature, or request documentation, or even where one goes to
offer
> help coding.  Anyone want to point me in the right direction? ;-)
>
> Cheers,
> Doug Morse
> [EMAIL PROTECTED]
>
>
> On Wed, Nov 29, 2000 at 02:38:30PM +, Chris Withers wrote:
> > Andy McKay wrote:
> > >
> > > > I am curious: Do others think this feature might be worth
> > > > adding to the ZCatalog?  If so, perhaps it should work its
> > > > way into a proper feature request...
> > >
> > > Yes definitely.
> >
> > Well, where is the query syntax for ZCatalog actually documented?
> >
> > It'd be great if it was more flexible, applied to indexes other than
> > TextIndexes and was actually documented...
> >
> > Any ideas?
> >
> > 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 )




[Zope] python methods

2000-11-29 Thread Terry Kerr

Hi,

Is there any way to get access to inbuild python functions like 'filter'
and 'lambda' within pythonMethods?

terry


--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions (www.adroit.net)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
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] adding roles to Zope in Product.initialize()

2000-11-29 Thread Chris McDonough

No... the stock answer is "use local roles".  I had a proposal up to create
an interface for programmatically adding roles on dev.zope.org but it's
quite dead.  The thought behind this is that actual roles are reserved for
administrator usage, not developer usage.  Which leaves us in sort of this
weird state that I'm not completely comfortable with, but don't have time to
argue. :-)

- Original Message -
From: Randall Kern
To: [EMAIL PROTECTED]
Sent: Wednesday, November 29, 2000 9:12 PM
Subject: [Zope] adding roles to Zope in Product.initialize()


I wish to restrict the creation of a class (SpokeSite) to people with the
"Add Spoke Site" permission, and in turn only provide that permission to
people in the 'Super-manager' Role.

When I call ProductContext.registerClass for my SpokeSite class, I can pass
the permission argument with the tuple ('Add Spoke Site', 'Super-manager'),
which does a good job of limiting the availability of my class (just as I
desire).

However, I would like my Product to automatically create the 'Super-manager'
Role, if it doesn't exists.  The bad part is that this role needs to be
added before any of my objects exist, which makes it hard...

I've got it *working* by cheating, and using the private __app attribute of
the ProductContext.  Is there a better way for python Products to alter the
Zope installation (add Roles, create Folders, etc.) during installation?

Thanks!
-Randy


___
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] Ah, I found it -- Estimate of community size

2000-11-29 Thread Tres Seaver

albert boulanger <[EMAIL PROTECTED]> wrote:

> 
> Now, I wonder wich statement is more accurate:
> >
>>http://www.zope.org/Documentation/ZWN/ZWN-2000-09-26/index_html?pp=1
>>
>>
>>Zope Web
>>
>>   by Ethan Fremen
>>
>>  Exorcising Zope.org
>>
>>   The extremely large Members folder (11139 of you!) and acl_users
>>folder was causing Zope.org to load nearly 50 MB of
>>   "Ghosts" - stateless objects - into memory.

> 
> or
> 
> From:
> http://www.zope.org/Documentation/ZWN/ZWN-2000-11-08
> 
> "Zope Web
> 
>by Ethan Fremen
> 
> How Many Zopatistas?
> 
> []
> 
> There are 1617 members of [EMAIL PROTECTED] and 409 members of
> zope-dev. There are 200,000 unique visits to zope.org every month (ok,
> that's a record :).

All items are factual, and accurate for the dates they were posted.
Which is more "interesting" is an exercise in punditry:

 * 11000+ members have signed up on the www.zope.org website.

 * 1617 people subscribe to the [EMAIL PROTECTED] mailing list, which seems
   to average 70+ messages per day (2000+ per month).

 * 409 subscribe to [EMAIL PROTECTED], which runs around 20 messages
   per day / 600 per month.

 * The zope.org websites have been averaging 200,000 unique visits
   per month.

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   http://www.zope.org

___
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] ZCatalog: Query Syntax

2000-11-29 Thread Doug Morse

Chris,

I also had great difficulty in finding any relevant documentation... (re:
specifics regarding text and field searches against a ZCatalog)...

So, it sounds like we should (a) make a feature request and (b) make a
documentation request.  I'm more than happy to write up and submit such
requests.  Heck, I'd been even happy to tackle coding the improvements, but
I'd need someone very familiar with the ZCatalog implementation to give me
some direction to get me going (i.e., how he or she would recommend the
change be implemented).

But, I'm quite new to the Zope world, and have no idea where one goes to
request a feature, or request documentation, or even where one goes to offer
help coding.  Anyone want to point me in the right direction? ;-)

Cheers,
Doug Morse
[EMAIL PROTECTED]


On Wed, Nov 29, 2000 at 02:38:30PM +, Chris Withers wrote:
> Andy McKay wrote:
> > 
> > > I am curious: Do others think this feature might be worth
> > > adding to the ZCatalog?  If so, perhaps it should work its
> > > way into a proper feature request...
> > 
> > Yes definitely.
> 
> Well, where is the query syntax for ZCatalog actually documented?
> 
> It'd be great if it was more flexible, applied to indexes other than
> TextIndexes and was actually documented...
> 
> Any ideas?
> 
> 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] ZTopics not working right --Error Value: Vocabulary

2000-11-29 Thread Tres Seaver

Umesh Soni <[EMAIL PROTECTED]> wrote:
 
> Hi I am trying to use ZTopics to create a visual hierarchy. I've
> got ZTopics installed ok but I am having problems with using them.
> 
> If I create a top level ZTopic all is well and the ztopic will filter
> my catalog fine. However, if I try to create a hierarchy -even if
> only one level deep, I get the following error.
> 
> Error Type: AttributeError
> Error Value: Vocabulary
> 
> Traceback (innermost last):
>   File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 222, in 
>publish_module
>   File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 187, in 
>publish
>   File /usr/local/Zope-2.2.4b1-src/lib/python/Zope/__init__.py, line 221, in 
>zpublisher_exception_hook
> (Object: Traversable)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 171, in 
>publish
>   File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/mapply.py, line 160, in 
>mapply
> (Object: index_html)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 112, in 
>call_object
> (Object: index_html)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/OFS/DTMLMethod.py, line 172, in 
>__call__
> (Object: index_html)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/DocumentTemplate/DT_String.py, line 
>528, in __call__
> (Object: index_html)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py, line 180, in 
>contents
> (Object: Traversable)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py, line 228, in 
>_contentsSet
> (Object: Traversable)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 401, 
>in _apply_index
>   File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 476, 
>in query
>   File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 196, 
>in getLexicon
> AttributeError: (see above)
> 
> I haven't a clue if the problem is with ZTopics or the lexicon stuff
> within zope.
> 
> Anyone know what's going on here?

Chris McDonough <[EMAIL PROTECTED]> responded:

> From what I remember, the TextIndex code wants to acquire the catalog's
> Vocabulary subobject.  If you created your catalog without a Vocabulary (I
> think this is an option during the instantiation of a catalog), this can
> occur.  This is arguably a bug.  The vocabulary object should probably not
> be acquired.  Do you think you can submit this to the "Collector" at
> Zope.org (http://classic.zope.org:8080/Collector)?


Umesh replied:

> The catalog in question is the portal_catalog from the PTK which has
> an accompaning Vocabulary object.
> 
> I will do as you requested and submit this to the Collector.
> 
> umesh
> 
> btw. I had to apply the following patch to ZTopic to rectify a
> mis-behaving user interface.
> 
> --- topicEdit.dtml.old  Wed Nov 29 10:49:53 2000
> +++ topicEdit.dtml  Wed Nov 29 09:16:02 2000
> @@ -35,8 +35,8 @@
> 
>  
> 
> -   
> -   
> +   
> +   
> 
> 
>

The 'portal_catalog' object is actually a wrapper around a
standard ZCatalog instance.  I would look at 
'ZTopics.Topic._contentsSet()' to see what it is trying to
do with the catalog.  I would log also log this as a PTK issue:

  http://www.zope.org/Products/PTK/Tracker

rather than in the Collector (I don't believe it is a Zope
issue, per se).

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   http://www.zope.org

___
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 roles to Zope in Product.initialize()

2000-11-29 Thread Randall Kern



I wish to restrict the creation of a class 
(SpokeSite) to people with the "Add Spoke Site" permission, and in turn only 
provide that permission to people in the 'Super-manager' Role.
 
When I call ProductContext.registerClass for my 
SpokeSite class, I can pass the permission argument with the tuple ('Add Spoke 
Site', 'Super-manager'), which does a good job of limiting the availability of 
my class (just as I desire).
 
However, I would like my Product to automatically 
create the 'Super-manager' Role, if it doesn't exists.  The bad part is 
that this role needs to be added before any of my objects exist, which makes it 
hard...
 
I've got it *working* by cheating, and using the 
private __app attribute of the ProductContext.  Is there a better way for 
python Products to alter the Zope installation (add Roles, create Folders, etc.) 
during installation?
 
Thanks!
-Randy


Re: [Zope] Re:External Methods

2000-11-29 Thread Ender

check out the urlencode function of urllib.

kapil

Kini Natekar wrote:
> 
> Hi,
> 
> I am currently running a external method .This method
> calls a python script using the following line
> 
> href=\"http://localhost/cgi-bin/test.py?%s+%s\">%s"
> %(name,age,gender)
> 
> Instead of calling the python script we want to add
> the script as an external method in zope.The problem
> we are currently facing is in generating the above
> link dynamically.
> 
> How do we solve the above problem ?
> 
> Thanks,
> Kini.
> 
> __
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.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 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] Instance within Instance

2000-11-29 Thread Daryl Stultz

Tim Cook wrote:
> 
> Daryl,
> 
> Import the DarylProduct.zexp into your Products folder.
> The DarylExample.zexp can go anywhere in you Zope tree.

As luck would have it, the file did not import into Products (File
/usr/local/Zope/lib/python/OFS/CopySupport.py, line 406, in
_verifyObjectPaste)

It DID import into the root folder (I did this purely by accident!) I
was then able to recreate the called-for classes and IT WORKED!! I
haven't figured out HOW yet but I will. Thanks a lot for the help, and
let me know if you need any fancy Python methods...

Cheers.
-- 
"Where is the fancy bread, in the heart or in the head?"

Daryl Stultz - python, zope, blender, robots, really bad harmonica
playing...
[EMAIL PROTECTED]  
RedHat Linux 6.1 - Dual Pentium Pro


___
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] Factoids for supporting zope

2000-11-29 Thread Tres Seaver

Dennis Nichols <[EMAIL PROTECTED]> wrote:
> 
> At 11/28/00 11:34 AM, albert boulanger wrote:
> >From: "Chris McDonough" <[EMAIL PROTECTED]>
> > >   Ah.  Well, my opinion is that it'd be fairly dangerous
> > >   to make the assertion that (as great as they both are)
> > >   Zope and the Zope community can "make up for" the other
> > >   half of the capital they need to develop the software they
> > >   want.  So what's the decision they're trying to make?  Whether
> > >   to develop at   all?
> >
> > Whether to go with portal products from Plumtree or iPlanet.
> 
> If this implies that you are considering using Zope's PTK, then you should
> be aware of this: You can *not* get commercial support from Digital
> Creations for PTK because PTK is not a released product. If you think you
> may need such support before PTK gets to 1.0, then you had best not use the
> PTK. But that's no reason to not use the rest of Zope.

As the current product lead for the PTK, and a DC consultant who
uses it every day in developing software for customers, I wouldn't
say that your statement is, perhaps, misleading.  While I'm not the
person who negotiates support contracts for DC, I do know that DC
sees the PTK as a key element of our future growth plans.

In the meantime, most people get their support fo using the PTK
from the place they get support for using Zope:  right here on
the lists:

  mailto:[EMAIL PROTECTED]

  http://lists.zope.org/pipermail/zope-ptk

  http://lists.zope.org/mailman/listinfo/zope-ptk

(I watch the PTK tracker, as well).

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   http://www.zope.org

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

2000-11-29 Thread albert boulanger

   From: Dieter Maurer <[EMAIL PROTECTED]>
   Date: Thu, 30 Nov 2000 00:05:30 +0100 (CET)
   Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
   [EMAIL PROTECTED] ([EMAIL PROTECTED])
   X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid
   MIME-Version: 1.0
   Content-Type: text/plain; charset=US-ASCII
   Content-Length: 517

   albert boulanger writes:
> One trick I use on my NT box is to use Dreamwaver for all the major
> html content which end in a .html extension and htmlkit for the
> index_html and like files.
   Place a DTML method(!) "index_html" high in your Zope hierarchy
   with the following code:




   >From then on, you can happily create "index.html" below that
   point in the hierarchy. It will be used as the default folder
   view. In fact, "index_html" is used but that redirects
   to "index.html".

Yup. This is what I do and use htmlkit for those small index_html or
other DTML method files that don't represent html content, but more
logic.

Albert


___
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 restarting itself?

2000-11-29 Thread Dieter Maurer

Martin Winkler writes:
 > maybe someone of you heard of a feature that Zope can restart itself when
 > it dies abnormally. (Linux/Unix version). I found such a service for Windows
 > NT, but not for Linux, although I am sure that I saw it a while ago
 > somewhere... Is this just a parameter for z2.py or is there a special program for
 > this task?
 > 
 > Hoping for help,
For me, Zope automatically restarts under Linux and Solaris
without that I had anything special to do.


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] ZopeWeaver?

2000-11-29 Thread Dieter Maurer

albert boulanger writes:
 > One trick I use on my NT box is to use Dreamwaver for all the major
 > html content which end in a .html extension and htmlkit for the
 > index_html and like files.
Place a DTML method(!) "index_html" high in your Zope hierarchy
with the following code:

 


>From then on, you can happily create "index.html" below that
point in the hierarchy. It will be used as the default folder
view. In fact, "index_html" is used but that redirects
to "index.html".


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] Re: (no subject)

2000-11-29 Thread Dieter Maurer

jacintha menezes writes:
 > I have developed a product in windows 95/98. Is it possible to port that
 > product to
 > NT Machine. If so please tell me how?.
Did you try it?

What did not go?

I expect it to work without any change.
At least, if you speak of a Zope product.


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] ZCatalog and dates

2000-11-29 Thread Dieter Maurer

James Sintz writes:
 > I have a ZCatalog set up to index a date field and a title field.
 > 
 > If I do a search for both meta_type of "news" a date of 2000/11/16 in the
 > goLiveDate field the results page returns "There was no data matching this
 > Catalog query"
Zope uses "DateTime" object to hold date and time.

When you render such an object, you see just the date portion.
But there is a time portion as well. It is quite difficult
to make a query, where the dates match exactly.

You will probably need range queries to search for dates
(--> ZopeBook, Advances ZCatalog HowTo).


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

2000-11-29 Thread Dieter Maurer

seb bacon writes:
 > * Dieter Maurer <[EMAIL PROTECTED]> [001128 00:12]:
 > > Bowyer, Alex writes:
 > >  > All I need to do is to make certain ZClass methods have a certain level of
 > >  > security and the other methods of the class have no security.
 > 
 > > It is quite good explain in the upcoming Zope book.
 > 
 > In fact, I think Alex was referring to ZClass security, which isn't
 > covered in the book...
I think, I saw a good description of ZClass security in the Zope book:
in the chapter about ZClasses.


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] Re:External Methods

2000-11-29 Thread Dieter Maurer

Kini Natekar writes:
 > I am currently running a external method .This method
 > calls a python script using the following line
 > 
 > href=\"http://localhost/cgi-bin/test.py?%s+%s\">%s"
 > %(name,age,gender)
 > 
 > Instead of calling the python script we want to add
 > the script as an external method in zope.The problem
 > we are currently facing is in generating the above
 > link dynamically.
 > 
 > How do we solve the above problem ?
In fact, I do not understand what your problem is:

  you mention an external method, a script and a link.
  It is unclear (for me) what the relation between
  these entities is.

What is the difficulty to generate the above link?
Do you want to do it in DTML and you have problems
to integrate the '"'?
In this chase, use "\042", the octal excape for '"'.



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] ZopeFind expression

2000-11-29 Thread Dieter Maurer

Oliver Bleutgen writes:
 > How can I get properties of a DTML-Documents
 > parentfolder as expression in ZopeFind?
 > 
 > At least I couldn't get the "Find" in Zope's webinterface 
 >  to show all DTML-Documents whose parent-folder has a certain property.
 > 
 > I guess I'm missing a method which gives me the Parent-object without
 > the REQUEST object.
"aq_parent". It is an attribute, not a method.



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] Help with Nested ZSQL methods

2000-11-29 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
 > ... passing parameters to Z SQL methods ...
This is an FAQ.

You already know the searchable list archive at NIP?

Z SQL methods do *NOT* take parameters from the DTML
namespace. They only look at "REQUEST".

You have two options:

 1. put your parameters into the REQUEST object:




 2. call the Z SQL method with explicit parameters:




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] Ah, I found it -- Estimate of community size

2000-11-29 Thread Jon Prettyman

And if you're in the telco/network business, you probably count them
more than once!

-jon

"Steve Drees" <[EMAIL PROTECTED]> writes:

> > But anyway, there's no concrete way to count zope users: estimation is 
> > the best we'll ever get.
> 
> This is America. When people subscribe we count them.
> 

___
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: DC and the PTK?

2000-11-29 Thread Dennis Nichols

At 11/29/00 03:42 PM, ethan mindlace fremen wrote:
>Dennis Nichols wrote:
>
>>At 11/28/00 11:34 AM, albert boulanger wrote:
>>
>>>Whether to go with portal products from Plumtree or iPlanet.
>>
>>If this implies that you are considering using Zope's PTK, then you 
>>should  be aware of this: You can *not* get commercial support from 
>>Digital  Creations for PTK because PTK is not a released product. If you 
>>think you  may need such support before PTK gets to 1.0, then you had 
>>best not use the  PTK. But that's no reason to not use the rest of Zope.
>
>
>This needs to be clarified.   We actively do consulting with the PTK.
>If you want to enter into a consulting contract with Digital Creations 
>that involves the PTK, that's not a problem.
>
>If you decide you want to use the PTK yourself, there exists a mailing 
>list and a product tracker. (see http://www.zope.org/Products/PTK ) The 
>PTK is under heavy development and is not a full release yet, so that does 
>need to be taken into account if you wish to use it yourself.

What Ethan says, however true it may be, is contrary to my experience. I 
worked on developing a site based on PTK for several months and was within 
a month of going live, but had problems I could not solve, either alone or 
with the help of the mailing lists. I contacted DC via email, explained 
what my problems were, and asked how to arrange for consulting time. That 
was 11 weeks ago, on 10 Sept 2000. The very next day I received an email 
from Gary Graham ([EMAIL PROTECTED], Director, Sales & Marketing) stating:

"PTK is a 0.01 release and not commercially supported yet. Zope is
commercially supported yet. Zope.org is the best PTK source at
present until we are able to release a commercially supportable
version."

Of course, PTK wasn't a 0.01 release at that point, but the message was 
clear. That caused me to (a) look for a substitute not using Zope, of which 
I found nothing worth considering, and (b) expend an extra two months 
redeveloping the site, still using Zope but not using the PTK. This caused 
substantial lateness in the project launch as well as considerable 
additional expense.

As you might imagine, I was none too pleased at not being able to obtain 
consulting in September. To hear that consulting really was available isn't 
about to make me any happier!

So Ethan, what is the story here?


--
Dennis Nichols
[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] Ah, I found it -- Estimate of community size

2000-11-29 Thread Steve Drees

> But anyway, there's no concrete way to count zope users: estimation is 
> the best we'll ever get.

This is America. When people subscribe we count them.


___
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] ZClass security : a solution

2000-11-29 Thread Bowyer, Alex

Seb, you were right, I was referring to ZClass security, which is very
poorly documented. And no you're not being intellectually lazy, that
sentence does make no sense

I have kind of got a working solution now, so I will share it for anyone
interested:

To recap, the scenario is a news page with a DTML method for viewing which
is accessible by all but also DTML methods for editing the content, which
are only to be available to users holding a certain role, which I happen to
have called UAAdmin (if you're wondering what UA is, it's the name of the
newsletter "Update Australia"). Each instance of the class is a separate
news page.

What I did is this, it's a bit of a messy solution but it works for me:

1) Create a role at the root level of Zope called UAAdmin (I keep all roles
at this level for simplicity).
2) At the level which instances of the news page class are to be created, go
to the Security tab and assign permissions to the UAAdmin role. If possible
include at least one permission which is not held by any other roles or
users at this level (other than the Manager of course). In my case "Manage
properties" could only be done by UAAdmin or Manager roles. This could be
anything, even something you don't use such as perhaps "Add ZGadfly Database
Connection" (ZODBC is much better!).
3) Within your ZClass class definition, for each DTML method you want to
assign security to:
   a) Go to the 'Define Permissions' tab
   b) Go to the dropdown next to 'View' and change "View" to "Manage
properties" (or whatever permission was unique to the role you want to give
access to). For methods that should have anonymous access, leave it as
"View"

You will find that this will have the desired effect of limiting access to
those pages/methods only.

Essentially what we are doing is saying "If you want to View this object,
you have to have the Manage Properties permission"

There are probably better ways, but if it ain't broke don't fix it.

I don't understand why you have to choose a permission for each permission
(which is a very confusing concept). It would be much better if you could
choose a role to say e.g. "If you want to View this object, you have to have
the UAAdmin Role"

Apparently there's something called ZPermissions where you can create your
own, so I could create a permission "Manage News Pages" and then say "If you
want to View this object, you have to have the Manage News Pages permission"
but I never worked this out fully.

If anyone has any suggestions for improvement, by all means put me straight,
but this worked for me.

Thanks

Alex

==
Alex Bowyer
IT Contractor, Logica Australasia
Tel: +61 2 9202 8130
Fax: +61 2 9922 7466
E-mail : [EMAIL PROTECTED]
WWW: http://www.logica.com.au/
==


> -Original Message-
> From: seb bacon [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 30, 2000 12:53 AM
> To: Dieter Maurer
> Cc: Bowyer, Alex; '[EMAIL PROTECTED]'
> Subject: Re: [Zope] security
> 
> 
> * Dieter Maurer <[EMAIL PROTECTED]> [001128 00:12]:
> > Bowyer, Alex writes:
> >  > Can some one explain how the Define Permissions screen 
> works. I really don't
> >  > understand the concept behind it, what does it mean for 
> a permission setting
> >  > to own a permission?
> >  > 
> >  > All I need to do is to make certain ZClass methods have 
> a certain level of
> >  > security and the other methods of the class have no security.
> 
> > It is quite good explain in the upcoming Zope book.
> 
> In fact, I think Alex was referring to ZClass security, which isn't
> covered in the book, and is something I've never go to the 
> bottom of either.
> on the 'define permissions' tab, it says:
> 
>The table below has two columns. The first column lists the 
>permissions for this object. The second column specifies the
>permissions that should have this permission in this product 
>or ZClass. 
> 
> I'm probably being intellectually lazy or something, but that doesn't
> make any sense to me at all.
> 
> seb.
> 

___
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] Ah, I found it -- Estimate of community size

2000-11-29 Thread ethan mindlace fremen

Jimmie Houchin wrote:

> I would have to say that both are accurate at the time they were given.
> However, neither will be a truly accurate measurement of the users of
> Zope and the Zope community.
> 
> They each measure different things. One measures the people who have
> "joined" Zope.org.
> """The extremely large Members folder (11139 of you!)"""
> The other measures subscribers to the mailing list.
> """There are 1617 members of [EMAIL PROTECTED]"""
> 
> There are a few people who have different identities on the Zope
> memberships. There will also be possible duplication on the mailing list
> due to different email addresses. There are also people who neither join
> Zope.org nor subscribe to the mailing list, but who have nevertheless
> downloaded and use Zope.
> 
> There also are people who have been on the mailing lists, learned and
> then subsequently left the lists, but still use Zope. There are also
> those who no longer do.
> 
> So, who knows what an accurate figure would be? 


This is impossible! Zope is distributed with Red Hat and Debian, both of 
which are availiable via anonymous ftp.  It looks like there are about 
10 subscribers to [EMAIL PROTECTED] that are likely gateways (like 
[EMAIL PROTECTED]) who could be doing whatever they want.

If it helps any, only about 20% of the population of the 13 colonies 
actively supported the Revolution and less than 10% were active in the 
fighting, IIRC. So if you want, you could say that only 10% of the users 
of Zope are active members of mailing list, which gives you about 20,000 
installs of zope.

The members of zope.org is totally erronious.  There's some obvious 
one-time users there.  I will indeed be working on finally eliminating 
the "down for maintinance" comment, and part of that is to ditch 
spurious users.

But anyway, there's no concrete way to count zope users: estimation is 
the best we'll ever get.

ethan mindlace fremen
Zopatista Community Liason


___
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] SQL and dtml-tree

2000-11-29 Thread Mike Kelland



I'm attempting to create a tree structure using 
dtml-tree from SQL results but I'm finding the documentation exceedingly 
cryptic.  What I want to do is create the following structure:
 
   Client1 (tree Branch)
 
Project1    
Edit | Delete
 
Project2    
Edit | Delete
  Client2
 Project1    
Edit | Delete
  Client3
  Client4 
 
out of a database contaning the above information 
(ie client names, project names, and unique identifiers for each).  I have 
the SQL queries that will give me the appropriate information I just need how to 
make the dtml-tree tag work with this.  Any help whatsoever would be 
useful, thanks!
 
Mike
[EMAIL PROTECTED]
 


Re: [Zope] Rookie Question - Syntax

2000-11-29 Thread Daryl Stultz

Walter Pleyer wrote:

> I must check if some must-fields from a form were filled out by a user.
> Checking data from a single field is no problem, but what's the correct
> syntax for checking more than one field (e.g. "name", "address", "email") ?

I probably could answer your question as stated, but I'm too lazy.
Instead, I will say that you should do such a thing from JavaScript
instead. This is a discussion for elsewhere, and I'd be happy to take
the discussion off-line...

-- 
"Where is the fancy bread, in the heart or in the head?"

Daryl Stultz - python, blender, robots, really bad harmonica playing...
[EMAIL PROTECTED]  
RedHat Linux 6.1 - Dual Pentium Pro

___
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] Editing SQL methods from Emacs (+ FTP server)?

2000-11-29 Thread ethan mindlace fremen

Stephane Bortzmeyer wrote:

> On Thursday 30 November 2000, at 0 h 19, the keyboard of Anthony Baxter 
> <[EMAIL PROTECTED]> wrote:
> 
>> I added a patch for ftp-enabling SQL Methods to either the collector
>> or the zopeshell patch manager on sourceforge (I forget which right 
>> now, and it's late and I'm going to bed right now...) If you can't
>> find it, email me and I'll dig it up.
> 
> 
> No change in zopeshell for three months and I cannot find the collector on 
>SourceForge?


The collector is here:

http://classic.zope.org:8080/Collector
Hope that helps,

ethan mindlace fremen
Zopatista Community Liason


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

2000-11-29 Thread ethan mindlace fremen

jacintha menezes wrote:

> Hi,
> I have developed a product in windows 95/98. Is it possible to port that
> product to
> NT Machine. If so please tell me how?.
> 
> Thanks,
>  jacintha


Products have a "distribution" tab that creates a distribution of your 
product.  Alternatively, you can select the product in the management 
interface and choose "export" and then reimport it in your NT Zope, 
though you need to make sure you are in the Product folder.

Hope that helps,

ethan mindlace fremen
Zopatista Community Liason


___
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] (no subject)

2000-11-29 Thread Anderson Ami

Zopers,

   Anybody knows how can I change the value of a property of an object which
has a dynamic (string variable) name ?

thanks,
Anderson


___
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] DC and the PTK?

2000-11-29 Thread ethan mindlace fremen

Dennis Nichols wrote:

> At 11/28/00 11:34 AM, albert boulanger wrote:
> 
>> Whether to go with portal products from Plumtree or iPlanet.
> 
> 
> If this implies that you are considering using Zope's PTK, then you 
> should  be aware of this: You can *not* get commercial support from 
> Digital  Creations for PTK because PTK is not a released product. If 
> you think you  may need such support before PTK gets to 1.0, then you 
> had best not use the  PTK. But that's no reason to not use the rest of 
> Zope. 


This needs to be clarified.   We actively do consulting with the PTK.  
If you want to enter into a consulting contract with Digital Creations 
that involves the PTK, that's not a problem.

If you decide you want to use the PTK yourself, there exists a mailing 
list and a product tracker. (see http://www.zope.org/Products/PTK ) The 
PTK is under heavy development and is not a full release yet, so that 
does need to be taken into account if you wish to use it yourself.

ethan mindlace fremen
Zopatista Community Liason


___
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] Does 2.2.4 solve Proxy+ZCatalog bugs?

2000-11-29 Thread ethan mindlace fremen

Marcin Kasperski wrote:

> The question as in the title. In changes for 2.2.3 I found:
> 
>- Resolved known condition in the Catalog where objects are
>  not guaranteed to be unindexed before indexing happens
>  again.  Now objects are guaranteed to be unindexed correctly
>  first.  This should resolve all outstanding KeyErrors with
>  Catalog, although currently broken Catalogs will require a
>  reindex to resolve them. 
> 
> Has anyone verified whether this in fact corrects the infamous ZCatalog
> key errors when one tried to reindex site proxied with Apache?
> 
>   Regards


Zope.org has been updated to 2.2.4 and we're still getting key errors.  
However, the current suspicion is that one of our products isn't playing 
nice with the catalog.  More information when we get it.

Thanks,

ethan mindlace fremen
Zopatista Community Liason.


___
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] Ah, I found it -- Estimate of community size

2000-11-29 Thread Jimmie Houchin

I would have to say that both are accurate at the time they were given.
However, neither will be a truly accurate measurement of the users of
Zope and the Zope community.

They each measure different things. One measures the people who have
"joined" Zope.org.
"""The extremely large Members folder (11139 of you!)"""
The other measures subscribers to the mailing list.
"""There are 1617 members of [EMAIL PROTECTED]"""

There are a few people who have different identities on the Zope
memberships. There will also be possible duplication on the mailing list
due to different email addresses. There are also people who neither join
Zope.org nor subscribe to the mailing list, but who have nevertheless
downloaded and use Zope.

There also are people who have been on the mailing lists, learned and
then subsequently left the lists, but still use Zope. There are also
those who no longer do.

So, who knows what an accurate figure would be? 
And I can't tell you if there are any dimpled chads. :)
But as you can see there are many more unique visitors than either of
the numbers.

Also, keep in mind that the Zope community on [EMAIL PROTECTED] is an active
and vibrant community. As Zope matures, grows into it's own and the
documentation catches up, it will get even better. The future is bright.
:)

Jimmie Houchin


albert boulanger wrote:
> 
> Now, I wonder wich statement is more accurate:
> >
>>http://www.zope.org/Documentation/ZWN/ZWN-2000-09-26/index_html?pp=1
>>
>>
>>Zope Web
>>
>>   by Ethan Fremen
>>
>>  Exorcising Zope.org
>>
>>   The extremely large Members folder (11139 of you!) and acl_users
>>folder was causing Zope.org to load nearly 50 MB of
>>   "Ghosts" - stateless objects - into memory.
> 
> or
> 
> From:
> http://www.zope.org/Documentation/ZWN/ZWN-2000-11-08
> 
> "Zope Web
> 
>by Ethan Fremen
> 
> How Many Zopatistas?
> 
> []
> 
> There are 1617 members of [EMAIL PROTECTED] and 409 members of
> zope-dev. There are 200,000 unique visits to zope.org every month (ok,
> that's a record :).

___
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 with Nested ZSQL methods

2000-11-29 Thread Pavel V. Piankov

try calling like this : 
also you might what to use dmt-sql var instead of dtml-var inside ZAQL
Methods.


regards
--
pashah


>Here's the operative part of the dtml method that calls these methods:
>==
>
> 
> Item No.DescriptionMn/DOT
>No.Units
> 
>  
>   
>   
>   
>   
> 
> 
> 
>
>==
>
>I get the error:
>
>Error Type: Bad Request
>Error Value: ['SchedID']
>
>I suspect there is some type of namespace-related problem going on here
>where the var SchedID is not getting passed to the internal ZSQL method.
>
>P. Johnson



___
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 with Nested ZSQL methods

2000-11-29 Thread paul_s_johnson

I thought I saw this answer to this one time on http://www.zope.org once,
but for the life of me I cannot seem to find it.

I have two ZSQL methods, both tested and work.

ZSQL method 1
===
method id= sql_get_schedules
SELECT * FROM Schedules WHERE JobID =  ORDER BY SchedSeq

ZSQL method 2
===
method id= sql_get_items
SELECT * FROM Items WHERE SchedID =  ORDER BY ItemNo

These two tables are linked by the common field "SchedID"


Here's the operative part of the dtml method that calls these methods:
==

 
 Item No.DescriptionMn/DOT
No.Units
 
  
   
   
   
   
 
 
 

==

I get the error:

Error Type: Bad Request
Error Value: ['SchedID']

I suspect there is some type of namespace-related problem going on here
where the var SchedID is not getting passed to the internal ZSQL method.

P. Johnson

P.S.: I must Lotus Notes ( http://www.iarchitect.com/lotus1.htm ) at my
place of employment.  Any errantly inserted HTML or other weird garbage not
intentional.


___
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] Ah, I found it -- Estimate of community size

2000-11-29 Thread albert boulanger


Now, I wonder wich statement is more accurate:
>
   >http://www.zope.org/Documentation/ZWN/ZWN-2000-09-26/index_html?pp=1
   >
   >
   >Zope Web
   >
   >   by Ethan Fremen
   >
   >  Exorcising Zope.org
   >
   >   The extremely large Members folder (11139 of you!) and acl_users
   >folder was causing Zope.org to load nearly 50 MB of
   >   "Ghosts" - stateless objects - into memory.

or

From: 
http://www.zope.org/Documentation/ZWN/ZWN-2000-11-08


"Zope Web

   by Ethan Fremen

How Many Zopatistas?

[]

There are 1617 members of [EMAIL PROTECTED] and 409 members of
zope-dev. There are 200,000 unique visits to zope.org every month (ok,
that's a record :).

___
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] Editing SQL methods from Emacs (+ FTP server)?

2000-11-29 Thread Steve Spicklemire


> I'm trying to get a list of lists using ZSQL Methods...
> 
> I have two related tables, hounds and items.
> 
> I want to get the hound_id in items like this but can't work out how to pass
> the hound_id variable...
> 
> 
> 
>  
> 
> 



should work. Be careful... id is an unfortunate field name for your
database.. there may be a namespace collision with the Zope notion of
id. If this turns out to be a problem, post again and we can suggest
some work-arounds 

-steve

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

2000-11-29 Thread Oliver Bleutgen

I fear this is anywhere in some howtos, 
but I couldn't find it.

How can I get properties of a DTML-Documents
parentfolder as expression in ZopeFind?

At least I couldn't get the "Find" in Zope's webinterface 
 to show all DTML-Documents whose parent-folder has a certain property.

I guess I'm missing a method which gives me the Parent-object without
the REQUEST object.




cheers,
Oliver

___
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] Ah, I found it -- Estimate of community size

2000-11-29 Thread J. Atwood

I would also think that the size has grown in the last two months.

Cheers,
J


At 12:47 PM -0500 11/29/2000, Albert Boulanger wrote:
>This was the item is was looking for on how big the Members folders was,
>FYI.
>
>From:
>
>http://www.zope.org/Documentation/ZWN/ZWN-2000-09-26/index_html?pp=1
>
>
>Zope Web
>
>   by Ethan Fremen
>
>  Exorcising Zope.org
>
>   The extremely large Members folder (11139 of you!) and acl_users
>folder was causing Zope.org to load nearly 50 MB of
>   "Ghosts" - stateless objects - into memory.
>
>   The ever resourceful Shane Hathaway jumped in with his
>BTreeFolders for both the acl_users folder and the Members
>   folder.
>
>   Now, instead of 26,000 objects loaded at once, only about 1,000 or
>so get loaded.
>
>
>
>___
>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] VHost logs.

2000-11-29 Thread Oliver Bleutgen

> Jason C. Leach wrote:

>> hi,
>>
>> Has anyone implemented there own logging for Virtual Sites?
>>
>> I was thinking in the site rules an External Method could be called,
>> passed the Request obj, and from that generate logs for virtual sites.
>>
>> If anyone has done that, or knows of a better way I'd be interested in
>> hearing it.

> I'm not exactly sure what your goal is... but if you're just trying to
> generate separate log files for each of your virtual sites, I'm
> accomplishing
> that by having my virtual sites proxied behind Apache (using SiteAccess
> and
> the ProxyPass directive) and specifying the log files for each VirtualHost
> in
> my httpd.conf file.  You can control the contents of the logs using the
> LogFormat directive; I use the same format for all of my virtual hosts,
> but I
> think you can specify a different log format for each host if you desire.

> If you're trying to accomplish something else which requires you to handle
> the
> logging on the Zope side of things, then it seems to me that your idea
> would
> work, although I'd want to find out how my server performance would be
> affected...

I also would prefer to split the log via regexp-filters just before doing 
statistics or rotating (ie. not in zope). A pure logfile doesn't reveal 
useful informations anyway without some processing.

Related question:
Is there away to stop zope's logging, as apache as proxy
logs fine for me?

cheers,
oliver


___
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] Ah, I found it -- Estimate of community size

2000-11-29 Thread Albert Boulanger



This was the item is was looking for on how big the Members folders was,
FYI.

From:

http://www.zope.org/Documentation/ZWN/ZWN-2000-09-26/index_html?pp=1


Zope Web

  by Ethan Fremen

 Exorcising Zope.org

  The extremely large Members folder (11139 of you!) and acl_users
folder was causing Zope.org to load nearly 50 MB of
  "Ghosts" - stateless objects - into memory.

  The ever resourceful Shane Hathaway jumped in with his
BTreeFolders for both the acl_users folder and the Members
  folder.

  Now, instead of 26,000 objects loaded at once, only about 1,000 or
so get loaded.



___
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] VHost logs.

2000-11-29 Thread Rob Miller

Jason C. Leach wrote:

> hi,
> 
> Has anyone implemented there own logging for Virtual Sites?
> 
> I was thinking in the site rules an External Method could be called,
> passed the Request obj, and from that generate logs for virtual sites.
> 
> If anyone has done that, or knows of a better way I'd be interested in
> hearing it.

I'm not exactly sure what your goal is... but if you're just trying to 
generate separate log files for each of your virtual sites, I'm accomplishing 
that by having my virtual sites proxied behind Apache (using SiteAccess and 
the ProxyPass directive) and specifying the log files for each VirtualHost in 
my httpd.conf file.  You can control the contents of the logs using the 
LogFormat directive; I use the same format for all of my virtual hosts, but I 
think you can specify a different log format for each host if you desire.

If you're trying to accomplish something else which requires you to handle the 
logging on the Zope side of things, then it seems to me that your idea would 
work, although I'd want to find out how my server performance would be affected...

Hope this is useful for you,

rob


___
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] Factoids for supporting zope

2000-11-29 Thread Simon Coles

>A clarification here. It refers to Digital Creations being a long term
>viable business entity.

When we made "The Zope Decision", one of the attractions of the 
Zope/DC relationship is that whilst it is obviously very nice for 
everyone if DC continues to exist, and continues with their current 
strategy, we aren't held hostage to their fortune.

Consider a possible experience with a proprietary vendor. At the 
moment you have an excellent relationship with them, the product is 
good, and their future plans are encouraging.

Then they change strategy, or get bought out - not an unlikely 
outcome in new markets where things are still playing out. Then all 
of a sudden you find:
- the pricing has changed dramatically
- the product has moved
- the vendor no longer cares about you

Ouch. Have you ever had a vendor "end of life" a product on you?

With Zope, that's not going to happen. If DC change their strategy 
dramatically then:
- if there's the demand, someone else will step into their shoes (like
  maintaining the ages old version of Zope that DC not longer support)
- if you want to, you can do it yourselves (or pay someone else)

For my money, going with a proprietary vendor is even more risky than 
going with an Open Source product. The proprietary lock in means the 
vendor holds all the cards, and you hold none.

The cool thing about DC/Zope is you get the best of the Open Source 
and commercial worlds - its Open Source when you need it, but there's 
a nice cuddley vendor to buy support and consulting from (as well as 
a load of independent organisations :-)

Zope gives you more choices, and total control over your future. 
Proprietary, closed source solutions are just lulling you into a 
false sense of security - until its no longer in the vendor's 
interest to deal with you.




Simon
-- 
- My opinions are my own, NIP's opinions are theirs --
Simon J. Coles Email: [EMAIL PROTECTED]
New Information Paradigms  Work Phone: +44 1344 753703
http://www.nipltd.com/ Work Fax:   +44 1344 753742
=== Life is too precious to take seriously ===

___
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] Editing SQL methods from Emacs (+ FTP server)?

2000-11-29 Thread tom smith


I'm trying to get a list of lists using ZSQL Methods...

I have two related tables, hounds and items.

I want to get the hound_id in items like this but can't work out how to pass
the hound_id variable...



 








___
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] Portal user personalisation

2000-11-29 Thread Bocquillon Philippe

Hello everybody,

I would like to know if Zope provides the functionality for the user of a
portal to have his personalized page of the portal.
Thanks,

Philippe 


___
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] exchange parameters between DTML Documents

2000-11-29 Thread Oleg Broytmann

On Wed, 29 Nov 2000, Andrei Belitski wrote:
> In dependance of a link I would like to pass some document name as
> parameter to another DTML Document which displays for example the
> properties of the parameter document. How can I do it?
> I would appreciate any hints, thank you in advance

   The mechanism is called "session". Learn how setup and to use some
session products. There are few session products for Zope - search
zope.org.

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [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] VHost logs.

2000-11-29 Thread Jason C. Leach

hi,

Has anyone implemented there own logging for Virtual Sites?

I was thinking in the site rules an External Method could be called,
passed the Request obj, and from that generate logs for virtual sites.

If anyone has done that, or knows of a better way I'd be interested in
hearing it.

j.
..
. Jason C. Leach
... University College of the Cariboo.
.. 



___
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 restarting itself?

2000-11-29 Thread Jason C. Leach

hi,

In linux I would just whip up a cron job, or script to keep an eye on
it.  In Linux (Unix) in's much easier to do your own restart method that
it is with any of the windows so ...

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Wed, 29 Nov 2000, Martin Winkler wrote:

> Hi listies,
> 
> maybe someone of you heard of a feature that Zope can restart itself when
> it dies abnormally. (Linux/Unix version). I found such a service for Windows
> NT, but not for Linux, although I am sure that I saw it a while ago
> somewhere... Is this just a parameter for z2.py or is there a special program for
> this task?
> 
> Hoping for help,
> 
> Martin
> 
> -- 
> Sent through GMX FreeMail - http://www.gmx.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] ANNOUNCE: Zope 2.2.4 (final) released...

2000-11-29 Thread Brian Lloyd

> On Mon, Nov 27, 2000 at 02:47:38PM -0500, Brian Lloyd wrote:
> >   Zope 2.2.4 has been released - you can download it from
> >   Zope.org:
> 
> Anything changed since the alpha release ?

Not much - see:

http://www.zope.org/Products/Zope/2.2.4/CHANGES.txt 


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] Help!!

2000-11-29 Thread Jason C. Leach

hi,

Create a user in acl_users, then use that person to manage the site.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Wed, 29 Nov 2000, Ot Ratsaphong wrote:

> Hi,
> I'm new to Zope and have just installed Zope on a Win98 PC.
> 
> I'm trying to install squishdot and TinyTable, but Zope tells me that
> superuser has no permission to install the above products.
> 
> I have created another user called 'admin' with Manager priviledges but I
> don't know how to logout of superuser and login as 'admin'.
> 
> I have tried shutting down Zope and closed off internet explorer and
> restarting again but I still get into superuser.
> 
> If I need to login as a non superuser, how do I do this?
> 
> I have looked for all relevant documentation but can't find anything on
> this.
> 
> Your help would be appreciated.
> 
> TIA
> Ot Ratsaphong
> Canberra, Australia
> 
> 


___
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] Rookie Question - Syntax

2000-11-29 Thread Eric Walstad

Hi Walter,
There's a good tutorial on how to design forms at:
http://www.zope.org/Members/jules/smarterforms_html

I like to let javascript handle the validation, it lightens the load a
little on the server.  I use Regular Expressions to check the validity of
each field.  There's a tutorial at:
http://www.netpedia.com/features/javascript/objects2/

There was also a recent flurry of postings on this subject.  You can search
for them at:
http://zope.nipltd.com/public/lists/zope-archive.nsf/$$Search?OpenForm

Hope that helps,

Eric.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Walter Pleyer
Sent: Wednesday, November 29, 2000 6:45 AM
To: [EMAIL PROTECTED]
Subject: [Zope] Rookie Question - Syntax


Hi folks!

I am a Zope/Python-Rookie and Ihave a probably quite simple
problem:

I must check if some must-fields from a form were filled out by a user.
Checking data from a single field is no problem, but what's the correct
syntax for checking more than one field (e.g. "name", "address", "email") ?

Thanx
Walter


___
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] [BUG] [Zserver] GET and HEAD give different MIME types

2000-11-29 Thread Hamish Lawson

Martijn Pieters wrote:

> Note that you don't want the DTML code to be called on a HEAD request;
> it may have side effects a mere tpc_abort won't roll back.

If the implication here is that the corresponding GET request could have
meaningful side effects (i.e. not just changes to caches, logs or hit
counters), then strictly it would be breaking the semantics of GET, which is
meant to be idempotent - capable of being called multiple times without
meaningfully changing the state of the server-side system or application.
Requests that can change the state are supposed to use POST.

Hamish Lawson



___
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] strange behaviour of ZSQL methods

2000-11-29 Thread Oliver Bleutgen

> At 15:30 29.11.2000, Oliver Bleutgen wrote:
>>You didn't tell what SQL-Database you use, but Postgres and Mysql allow
>>logging/monitoring of the queries they get. So you are able to get the
>>information straight before/while it hits the backend.

> Yes, I'm using Postgres - just discovered the "-o"-flag, but I don't know
> exactly how to log all SQL-queries right now. Guess, I'll read a bit in
> the
> Postgres book and the manpages.

Perhaps this spares some time, digged out of my .bash_history, a relic
from LoginManager experiments (really handy there...).

First stop postgres and then ...

/usr/local/pgsql/bin/pg_ctl -o "-i -d 3" -D /var/lib/pgsql/data start

(YMMV with the path etc...)

This logs everything to the console. You can vary the debugging level,
3 is a bit "vocal", try 2.

cheers,
oliver











___
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] exchange parameters between DTML Documents

2000-11-29 Thread Andrei Belitski

HI!
In dependance of a link I would like to pass some document name as
parameter to another DTML Document which displays for example the
properties of the parameter document. How can I do it?
I would appreciate any hints, thank you in advance

___
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] Editing SQL methods from Emacs (+ FTP server)?

2000-11-29 Thread Stephane Bortzmeyer

On Thursday 30 November 2000, at 0 h 19, the keyboard of Anthony Baxter 
<[EMAIL PROTECTED]> wrote:

> I added a patch for ftp-enabling SQL Methods to either the collector
> or the zopeshell patch manager on sourceforge (I forget which right 
> now, and it's late and I'm going to bed right now...) If you can't
> find it, email me and I'll dig it up.

No change in zopeshell for three months and I cannot find the collector on SourceForge?



___
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] [BUG] [Zserver] GET and HEAD give different MIME types

2000-11-29 Thread Martijn Pieters

On Wed, Nov 29, 2000 at 12:06:23PM +0100, Stephane Bortzmeyer wrote:
> On Tuesday 28 November 2000, at 21 h 18, the keyboard of Martijn Pieters 
> <[EMAIL PROTECTED]> wrote:
> 
> > Note that you don't want the DTML code to be called on a HEAD request; it
> > may have side effects a mere tpc_abort won't roll back.
> 
> I understand but this seems a deviation (I don't say a violation since the RFC 
> says SHOULD and not MUST) from the RFC on HTTP (2616):
> 
> 9.4 HEAD
> 
>The HEAD method is identical to GET except that the server MUST NOT
>return a message-body in the response. The metainformation contained
>in the HTTP headers in response to a HEAD request SHOULD be identical
>to the information sent in response to a GET request.
> 
> It is certainly a big problem for debugging or for robots which assume they 
> can test with HEAD.

The SHOULD in that text is there _because_ not all web environments can
reliably generate a HEAD response without invoking undesired side-effects.
It is easy with a static website, where there won't be any side effects to
only sending the headers going with a URL, but with a dynamic web server
this is quite different.

If this is really a big problem for you I suggest you upgrade to Zope
2.2.0 or higher. Quite some trouble is taken to ensure that a more
meaningful content-type is returned:

- If the published object has a 'content_type' attribute, it's value will
  be used first. 

- If absent, the ID of the object will be used to guess it's content type.
  Only object names which use extensions benefit (for example: logo.gif
  is probably 'image/gif').

- If no guess could be made, the property 'default_content_type' is used.
  DTML Documents and Methods define this as 'text/html'.

- Only when all three steps above fail will the content type
  'application/octet-stream' be used.

I believe that only the 3rd step was added in 2.2.0b1, so you could try
and add a 'content_type' property to DTML objects that *must* return a
correct content-type.

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

___
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] strange behaviour of ZSQL methods

2000-11-29 Thread Steve Spicklemire



How about:



-steve

> "Oliver" == Oliver Bleutgen <[EMAIL PROTECTED]> writes:

>> Hi listies,

>> something strange is happening with my ZSQL methods. I have a
>> huge query that works great when testing it in the
>> management-interface - it returns about 10 records or so.  but
>> when I implement it into a dtml-method getting the parameters
>> via X-Y-GMX: $flush REQUEST as usual, I am getting the whole
>> database in return.  I'm quite sure that it's my own fault, so
>> I'd like to see the translated SQL-query in the dtml-method to
>> check for the wrong fields. Is there a tag for it like:
>>  ?

Oliver> You didn't tell what SQL-Database you use, but Postgres
Oliver> and Mysql allow logging/monitoring of the queries they
Oliver> get. So you are able to get the information straight
Oliver> before/while it hits the backend.

Oliver> cheers, oliver

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

2000-11-29 Thread Jason Cunliffe

Hello

Thanks for all the comments so far on this topic. Hope to hear more.

I have been looking this morning gain at the Extending Dreamweaver docs.
[on Win32 its typically at
C:\Program Files\Macromedia\Dreamweaver 3\Extending\ExtendingHelp.htm ]

It seems to me that by using the XML-based TAGSPEC, and then the Dreamweaver
Javascript DOM, it should be possible to open index_html or anything.dtml in
a fully controlled manner. It looks like this can avoid any dependancy on
Win32.

SOME EXAMPLES:

DWfile.read()
The following code reads the file mydata.txt and, if successful, displays an
alert box with the contents of the file.

 var fileURL = "file:///c|/temp/mydata.txt";
var str = DWfile.read( fileURL);
if (str){
  alert( fileURL + " contains: " + str);
}

..

In Dreamweaver 3, extensions are no longer limited to working within the
local file system. Dreamweaver now provides a mechansim for getting
information from and sending information to a web server via hypertext
transfer protocol (HTTP). This chapter describes the HTTP API and how to use
it.


MMHttp.getFile()
The following code gets an HTML file, saves all the files in the
Configuration/Temp folder, and then opens the local copy of the HTML file in
a browser:

 var httpReply =
MMHttp.getFile("http://www.dreamcentral.com/people/profiles/scott.html",
false);
if (httpReply.statusCode == 200){
  var saveLoc = httpReply.data;
  dw.browseDocument(saveLoc);




There's lots more, but these seem like the 2 essential ones [+ their
.write() counterparts]



The potential advantages I see for Zope are:

- PROFILE
[improving Zope's general visibility and acceptance for new projects] Having
a set of Zope Dreamweaver Extensions in itself would help promote it.

- WORKFLOW
[making Zopesite development with Dreaweaver much friendlier for
designers/programmers etc.]

- DESIGN
[ better integration with Macromedia's graphic toolset will make it easier
to for professional designers to develop more professional looing ZopeSites]

- FEATURES
[There are many features available now in Dreamweaver3+ which can be
leveraged to prototype and build higher level Zope templates design and
interface]


So my questions are what Javascript 'ZopeWeaver' extensions would you really
like to see?

- Jason
___
Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']


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

2000-11-29 Thread Robin Becker

In article <[EMAIL PROTECTED]>, seb bacon
<[EMAIL PROTECTED]> writes
>* Dieter Maurer <[EMAIL PROTECTED]> [001128 00:12]:
>> Bowyer, Alex writes:
>>  > Can some one explain how the Define Permissions screen works. I really 
>don't
>>  > understand the concept behind it, what does it mean for a permission 
>setting
>>  > to own a permission?
>>  > 
>>  > All I need to do is to make certain ZClass methods have a certain level of
>>  > security and the other methods of the class have no security.
>
>> It is quite good explain in the upcoming Zope book.
>
>In fact, I think Alex was referring to ZClass security, which isn't
>covered in the book, and is something I've never go to the bottom of either.
>on the 'define permissions' tab, it says:
>
>   The table below has two columns. The first column lists the 
>   permissions for this object. The second column specifies the
>   permissions that should have this permission in this product 
>   or ZClass. 
>
>I'm probably being intellectually lazy or something, but that doesn't
>make any sense to me at all.
...
I also find this a bit unobvious. I guess it must be a mapping from
permissions --> permissions, but I can't see what it's supposed to mean
or accomplish.

Proxies I can almost cope with, ie this is a trusted method make it
behave as though it were ZopeGod I can understand.
-- 
Robin Becker

___
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] Rookie Question - Syntax

2000-11-29 Thread Walter Pleyer

Hi folks!

I am a Zope/Python-Rookie and Ihave a probably quite simple
problem:

I must check if some must-fields from a form were filled out by a user.
Checking data from a single field is no problem, but what's the correct
syntax for checking more than one field (e.g. "name", "address", "email") ?

Thanx
Walter


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

2000-11-29 Thread albert boulanger


One trick I use on my NT box is to use Dreamwaver for all the major
html content which end in a .html extension and htmlkit for the
index_html and like files.

FYI,
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] strange behaviour of ZSQL methods

2000-11-29 Thread Oliver Bleutgen

> Hi listies,

> something strange is happening with my ZSQL methods. I have a huge query
> that works great when testing it in the management-interface - it returns
> about 10 records or so.
> but when I implement it into a dtml-method getting the parameters via
> X-Y-GMX: $flush
> REQUEST as usual, I am getting the whole database in return.
> I'm quite sure that it's my own fault, so I'd like to see the translated
> SQL-query in the dtml-method to check for the wrong fields. Is there a tag
> for it like:  ?

You didn't tell what SQL-Database you use, but Postgres and Mysql allow
logging/monitoring of the queries they get. So you are able to get the
information straight before/while it hits the backend.

cheers,
oliver

___
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] ZCatalog: Query Syntax

2000-11-29 Thread Chris Withers

Andy McKay wrote:
> 
> > I am curious: Do others think this feature might be worth
> > adding to the ZCatalog?  If so, perhaps it should work its
> > way into a proper feature request...
> 
> Yes definitely.

Well, where is the query syntax for ZCatalog actually documented?

It'd be great if it was more flexible, applied to indexes other than
TextIndexes and was actually documented...

Any ideas?

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] . in python names

2000-11-29 Thread Chris Withers

Dieter Maurer wrote:
> 
> But:
> Try to define a method(!) "index.html" in a class.
> 
> I know, it is possible. But it is not natural.

fair point :-)

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] strange behaviour of ZSQL methods

2000-11-29 Thread Martin Winkler

Hi listies,

something strange is happening with my ZSQL methods. I have a huge query 
that works great when testing it in the management-interface - it returns 
about 10 records or so.
but when I implement it into a dtml-method getting the parameters via 
X-Y-GMX: $flush
REQUEST as usual, I am getting the whole database in return.
I'm quite sure that it's my own fault, so I'd like to see the translated 
SQL-query in the dtml-method to check for the wrong fields. Is there a tag 
for it like:  ?

This problem drives me nuts since already two days :-((

Martin


___
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] PIL and Zope Poll Again !

2000-11-29 Thread Nestor A. Diaz L.

Sorry for the question, but i am getting crazy trying to get the Zope Poll
Product working !!

Have anybody installed this on a Debian machine?

I am missing something?

I installed the python-imaging* from 2.2 and it doesn't work, so i switch
to python-imagin from Woody and it doesn't work to.

I replace the /usr/lib/python1.5/site-packages/PIL/__init__.py with the
one comming in the Poll product and neither !!!

Can you help me with that?

Have anybody made a Poll Debian package, it is a escential part in
every website :)

Thank for your work,

--
Nestor A. Diaz
Ingeniero de Desarrollo
Engendro.com - Comercio Electronico sobre Linux
Email: [EMAIL PROTECTED] - WWW: http://www.engendro.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] security

2000-11-29 Thread seb bacon

* Dieter Maurer <[EMAIL PROTECTED]> [001128 00:12]:
> Bowyer, Alex writes:
>  > Can some one explain how the Define Permissions screen works. I really don't
>  > understand the concept behind it, what does it mean for a permission setting
>  > to own a permission?
>  > 
>  > All I need to do is to make certain ZClass methods have a certain level of
>  > security and the other methods of the class have no security.

> It is quite good explain in the upcoming Zope book.

In fact, I think Alex was referring to ZClass security, which isn't
covered in the book, and is something I've never go to the bottom of either.
on the 'define permissions' tab, it says:

   The table below has two columns. The first column lists the 
   permissions for this object. The second column specifies the
   permissions that should have this permission in this product 
   or ZClass. 

I'm probably being intellectually lazy or something, but that doesn't
make any sense to me at all.

seb.

___
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] Editing SQL methods from Emacs (+ FTP server)?

2000-11-29 Thread Anthony Baxter


I added a patch for ftp-enabling SQL Methods to either the collector
or the zopeshell patch manager on sourceforge (I forget which right 
now, and it's late and I'm going to bed right now...) If you can't
find it, email me and I'll dig it up.


>>> Stephane Bortzmeyer wrote
> 
> All the texts explaining the wonders of Zope tell that you can edit your DTML
 
> files from (X)Emacs, and not from the lame editor you get from your browser 
> with the default HTML form.
> 
> It works great for DTML but ange-ftp (GNU emacs 20.7) refuses to open the SQL
 
> methods ("File exists but cannot be read"). Is there a solution, besides 
> writing it offline and uploading it into 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 )
> 

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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] Editing SQL methods from Emacs (+ FTP server)?

2000-11-29 Thread Stephane Bortzmeyer


All the texts explaining the wonders of Zope tell that you can edit your DTML 
files from (X)Emacs, and not from the lame editor you get from your browser 
with the default HTML form.

It works great for DTML but ange-ftp (GNU emacs 20.7) refuses to open the SQL 
methods ("File exists but cannot be read"). Is there a solution, besides 
writing it offline and uploading it into 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] ZPygreSQL

2000-11-29 Thread Robert Senger

Hi,
does anybody know where to download ZPygreSQL? The Server www.zope.org seems to be 
down since
hours...
Need it urgent!
Thanks!

-- 
Dipl.-Phys. Robert Senger
Fachgebiet Raumfahrttechnik
Technische Universität München
Boltzmannstr. 15, D-85747 Garching
Tel:++49 / (0)89 / 289-15997
Fax:++49 / (0)89 / 289-16004
email:  [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] ZTopics not working right --Error Value: Vocabulary

2000-11-29 Thread Umesh Soni



 >>From what I remember, the TextIndex code wants to acquire the catalog's
 >Vocabulary subobject.  If you created your catalog without a Vocabulary (I
 >think this is an option during the instantiation of a catalog), this can
 >occur.  This is arguably a bug.  The vocabulary object should probably not
 >be acquired.  Do you think you can submit this to the "Collector" at
 >Zope.org (http://classic.zope.org:8080/Collector)?
 >
 >

--snip

The catalog in question is the portal_catalog from the PTK which has
an accompaning Vocabulary object.

I will do as you requested and submit this to the Collector.

umesh


btw. I had to apply the following patch to ZTopic to rectify a
mis-behaving user interface.

--- topicEdit.dtml.old  Wed Nov 29 10:49:53 2000
+++ topicEdit.dtml  Wed Nov 29 09:16:02 2000
@@ -35,8 +35,8 @@
 
 

-   
-   
+   
+   


   

___
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

2000-11-29 Thread Chris McDonough

I'd be willing to bet that you're not properly giving the "Manager" role to
the content management user you create.  You need to select "Manager" from
the list of roles shown on the user creation form when you create the user.

- Original Message -
From: "Olaf Zanger" <[EMAIL PROTECTED]>
To: "Chris McDonough" <[EMAIL PROTECTED]>
Sent: Wednesday, November 29, 2000 7:04 AM
Subject: Re: [Zope] authentication


> hi chris,
>
> > Have you read the "security" section of the "Zope Book" draft?  It's
linked
> > from the front page of Zope.org.
>
> absolutley i did, i read every docu i could get hands on, plus i
> searched google ... doesn't help
>
> do you have any answers to my questions ?
>
> would be of great help
>
>
> > > i can run different versions of zope and login as superuser, setup an
> > > other user and change superuser account name and password.
> > >
> > > unfortunately i don't get authenticated when i want to login as user.
> > > means i can do no work with content at all in zope.
> > >
> > > is it normal that when i go to change the user password it shows a
> > > different amount of *s there?
> > >
> > > how does the authentication work?
> > > do any files have to be at special places for authentication?
> > > do any files need any special permission for this?
> > >
> > > my system
> > > i have it run under wwwrun:nogroup and the directory
> > > /opt/zope is root:root
> > > /opt/zope/var is wwwrun:nogroup and 755
> > > except of files Z2.log, pcgi.soc, zProcessManager.pid that are
root:root
> > >
> > > i installed zope 2.2.2, 2.2.4, compiled a 2.2.4, used an rpm, always
the
> > > same problem
> > > latest i used an installation description for suse 6.4 ... -- no help
> > > did a lot as you see
> > >
> > > my system is a suse linux 7.0 with the update to kde2.0
>
> --
> soli-con Engineering Zanger
> Dipl.-Ing. (FH) Olaf Zanger Nusch
> Lorrainestrasse 23
> 3013 Bern / Switzerland
> Fon: +41-31-332 9782
> Mob: +41-76-572 9782
> mailto:[EMAIL PROTECTED]
> mailto:[EMAIL PROTECTED]
> http://www.soli-con.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 restarting itself?

2000-11-29 Thread Oleg Broytmann

On Wed, 29 Nov 2000, Martin Winkler wrote:
> maybe someone of you heard of a feature that Zope can restart itself when
> it dies abnormally. (Linux/Unix version). I found such a service for Windows
> NT, but not for Linux, although I am sure that I saw it a while ago
> somewhere... Is this just a parameter for z2.py or is there a special program for
> this task?

   z2.py -Z ...

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [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] Zope restarting itself?

2000-11-29 Thread administrator

Have a look at:

http://www.lightwerk.com//zope/monitoring

> Hi listies,
>
> maybe someone of you heard of a feature that Zope can restart itself when
> it dies abnormally. (Linux/Unix version). I found such a service for Windows
> NT, but not for Linux, although I am sure that I saw it a while ago
> somewhere... Is this just a parameter for z2.py or is there a special program for
> this task?




[Zope] (no subject)

2000-11-29 Thread jacintha menezes

Hi,
I have developed a product in windows 95/98. Is it possible to port that
product to
NT Machine. If so please tell me how?.

Thanks,
 jacintha


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

2000-11-29 Thread Stefan H. Holek

On Wed, 29 Nov 2000, Simon Coles wrote:

> Yes, this works fine on the Mac. I suspect the difference is because 
> on the Mac they are taking the http content types to figure out the 
> content, but on Windows they are being lazy and using the file 
> extension. Why they didn't use the same code I don't know.

Thats just the way Windows works. Somehow M$ chose to determine the
filetype by the file extension, and the file extension only (and then
they chose to _hide_ the extension by default... ;). 

A somehow related issue is that IE seems to prefer file extensions over
any HTTP headers, MIME types and such.

Mac has a forked filesystem keeping type information separately. Thus no
problem with names.

Cheers,
Stefan


___
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] ZTopics not working right --Error Value: Vocabulary

2000-11-29 Thread Chris McDonough

>From what I remember, the TextIndex code wants to acquire the catalog's
Vocabulary subobject.  If you created your catalog without a Vocabulary (I
think this is an option during the instantiation of a catalog), this can
occur.  This is arguably a bug.  The vocabulary object should probably not
be acquired.  Do you think you can submit this to the "Collector" at
Zope.org (http://classic.zope.org:8080/Collector)?

- Original Message -
From: "Umesh Soni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 29, 2000 5:24 AM
Subject: [Zope] ZTopics not working right --Error Value: Vocabulary


>
> Hi I am trying to use ZTopics to create a visual hierarchy. I've
> got ZTopics installed ok but I am having problems with using them.
>
> If I create a top level ZTopic all is well and the ztopic will filter
> my catalog fine. However, if I try to create a hierarchy -even if
> only one level deep, I get the following error.
>
> Error Type: AttributeError
> Error Value: Vocabulary
>
> Traceback (innermost last):
>   File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line
222, in publish_module
>   File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line
187, in publish
>   File /usr/local/Zope-2.2.4b1-src/lib/python/Zope/__init__.py, line 221,
in zpublisher_exception_hook
> (Object: Traversable)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line
171, in publish
>   File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/mapply.py, line
160, in mapply
> (Object: index_html)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line
112, in call_object
> (Object: index_html)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/OFS/DTMLMethod.py, line 172,
in __call__
> (Object: index_html)
>   File
/usr/local/Zope-2.2.4b1-src/lib/python/DocumentTemplate/DT_String.py, line
528, in __call__
> (Object: index_html)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py,
line 180, in contents
> (Object: Traversable)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py,
line 228, in _contentsSet
> (Object: Traversable)
>   File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py,
line 401, in _apply_index
>   File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py,
line 476, in query
>   File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py,
line 196, in getLexicon
> AttributeError: (see above)
>
>
> I haven't a clue if the problem is with ZTopics or the lexicon stuff
> within zope.
>
> Anyone know what's going on here?
>
> umesh
>
>
>
> ___
> 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] authentication

2000-11-29 Thread Chris McDonough

Hi Olaf,

Have you read the "security" section of the "Zope Book" draft?  It's linked
from the front page of Zope.org.



- Original Message -
From: "Olaf Zanger" <[EMAIL PROTECTED]>
To: "Zope Mailinglist" <[EMAIL PROTECTED]>
Sent: Wednesday, November 29, 2000 1:45 AM
Subject: [Zope] authentication


> hi everybody,
>
> i can run different versions of zope and login as superuser, setup an
> other user and change superuser account name and password.
>
> unfortunately i don't get authenticated when i want to login as user.
> means i can do no work with content at all in zope.
>
> is it normal that when i go to change the user password it shows a
> different amount of *s there?
>
> how does the authentication work?
> do any files have to be at special places for authentication?
> do any files need any special permission for this?
>
> my system
> i have it run under wwwrun:nogroup and the directory
> /opt/zope is root:root
> /opt/zope/var is wwwrun:nogroup and 755
> except of files Z2.log, pcgi.soc, zProcessManager.pid that are root:root
>
> i installed zope 2.2.2, 2.2.4, compiled a 2.2.4, used an rpm, always the
> same problem
> latest i used an installation description for suse 6.4 ... -- no help
> did a lot as you see
>
> my system is a suse linux 7.0 with the update to kde2.0
>
> --
> soli-con Engineering Zanger
> Dipl.-Ing. (FH) Olaf Zanger Nusch
> Lorrainestrasse 23
> 3013 Bern / Switzerland
> Fon: +41-31-332 9782
> Mob: +41-76-572 9782
> mailto:[EMAIL PROTECTED]
> mailto:[EMAIL PROTECTED]
> http://www.soli-con.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] Zope restarting itself?

2000-11-29 Thread Martin Winkler

Hi listies,

maybe someone of you heard of a feature that Zope can restart itself when
it dies abnormally. (Linux/Unix version). I found such a service for Windows
NT, but not for Linux, although I am sure that I saw it a while ago
somewhere... Is this just a parameter for z2.py or is there a special program for
this task?

Hoping for help,

Martin

-- 
Sent through GMX FreeMail - http://www.gmx.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] [BUG] [Zserver] GET and HEAD give different MIME types

2000-11-29 Thread Stephane Bortzmeyer

On Tuesday 28 November 2000, at 21 h 18, the keyboard of Martijn Pieters 
<[EMAIL PROTECTED]> wrote:

> Note that you don't want the DTML code to be called on a HEAD request; it
> may have side effects a mere tpc_abort won't roll back.

I understand but this seems a deviation (I don't say a violation since the RFC 
says SHOULD and not MUST) from the RFC on HTTP (2616):

9.4 HEAD

   The HEAD method is identical to GET except that the server MUST NOT
   return a message-body in the response. The metainformation contained
   in the HTTP headers in response to a HEAD request SHOULD be identical
   to the information sent in response to a GET request.

It is certainly a big problem for debugging or for robots which assume they 
can test with HEAD.



___
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] ZTopics not working right --Error Value: Vocabulary

2000-11-29 Thread Umesh Soni


Hi I am trying to use ZTopics to create a visual hierarchy. I've 
got ZTopics installed ok but I am having problems with using them.

If I create a top level ZTopic all is well and the ztopic will filter
my catalog fine. However, if I try to create a hierarchy -even if 
only one level deep, I get the following error.

Error Type: AttributeError
Error Value: Vocabulary

Traceback (innermost last):
  File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 187, in 
publish
  File /usr/local/Zope-2.2.4b1-src/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 171, in 
publish
  File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: index_html)
  File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: index_html)
  File /usr/local/Zope-2.2.4b1-src/lib/python/OFS/DTMLMethod.py, line 172, in __call__
(Object: index_html)
  File /usr/local/Zope-2.2.4b1-src/lib/python/DocumentTemplate/DT_String.py, line 528, 
in __call__
(Object: index_html)
  File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py, line 180, in 
contents
(Object: Traversable)
  File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py, line 228, in 
_contentsSet
(Object: Traversable)
  File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 401, in 
_apply_index
  File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 476, in 
query
  File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 196, in 
getLexicon
AttributeError: (see above)


I haven't a clue if the problem is with ZTopics or the lexicon stuff 
within zope.

Anyone know what's going on here?

umesh



___
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] Import/Export Objects

2000-11-29 Thread Oleg Broytmann

On Tue, 28 Nov 2000, Rafael Amer Ramon wrote:
> I have installed Zope-2.2.2 with mod_pcgi and the Apache server.

   mod_pcgi or mod_pcgi2? I think the latter.

> When I try to import some objects exported from a proviously running
> ZServer, I get
>
> Internal Server Error
>
> and the following message in the Apache error_log file
>
> [Tue Nov 28 19:05:26 2000] [error] PCGI Error: [503 Service Unavailable]
> ((116) unable to connect, fd=5) Success
>
> Does anyboby know how I can solve this problem?

   Misconfigured mod_pcgi2, I'm afraid. Are you sure all neccessary
parameters are there, in httpd.conf? Are they correct? Point to correct
socket file, e.g.? Are these files accessible from the UID httpd is running
under?

Oleg.

 Oleg Broytmannhttp://phd.pp.ru/[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!!

2000-11-29 Thread Ot Ratsaphong

Hi Phil, Eric,

Thanks for your responses, Chris McDonough sent me a message earlier today
and told me what I had to do.

My IE5.5 authentication settings were set so that it would automatically log
me on to any application (ie. save my password). Because the first time I
logged in was as 'superuser', it logged me in as 'superuser' everytime.

Once I disabled this setting and set it to "Prompt for User name and
Password", the login prompt appeared again.

see: Tools->Internet Options->Security->Custom Level...

Cheers,
Ot Ratsaphong
[EMAIL PROTECTED]


- Original Message -
From: "Phil Harris" <[EMAIL PROTECTED]>
To: "Ot Ratsaphong" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 29, 2000 8:04 PM
Subject: Re: [Zope] Help!!


> Ot,
>
> I've seen this myself.
>
> Are you using IE5.5?
>
> It seems that on occasion when you have active desktop and outlook express
> running that win98/2K remembers the authentication details between
instances
> of IE5.5.
>
> Realising that Outlook Express uses IE to display mail and active desktop
is
> also based on IE then this starts to make some sense.
>
> It's only happened to me when using W2K but it definitely happened and
made
> me doubt my sanity for a while ;)
>
> I reinstalled the machine and downgraded to IE5 to get rid of the problem.
>
> One ray of hope though is that IE5.5sp1 seems to cure the problem, at
least
> for me.
>
> hth
>
> Phil
> [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] Help!!

2000-11-29 Thread Phil Harris

Ot,

I've seen this myself.

Are you using IE5.5?

It seems that on occasion when you have active desktop and outlook express
running that win98/2K remembers the authentication details between instances
of IE5.5.

Realising that Outlook Express uses IE to display mail and active desktop is
also based on IE then this starts to make some sense.

It's only happened to me when using W2K but it definitely happened and made
me doubt my sanity for a while ;)

I reinstalled the machine and downgraded to IE5 to get rid of the problem.

One ray of hope though is that IE5.5sp1 seems to cure the problem, at least
for me.

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Ot Ratsaphong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 29, 2000 3:16 AM
Subject: [Zope] Help!!


> Hi,
> I'm new to Zope and have just installed Zope on a Win98 PC.
>
> I'm trying to install squishdot and TinyTable, but Zope tells me that
> superuser has no permission to install the above products.
>
> I have created another user called 'admin' with Manager priviledges but I
> don't know how to logout of superuser and login as 'admin'.
>
> I have tried shutting down Zope and closed off internet explorer and
> restarting again but I still get into superuser.
>
> If I need to login as a non superuser, how do I do this?
>
> I have looked for all relevant documentation but can't find anything on
> this.
>
> Your help would be appreciated.
>
> TIA
> Ot Ratsaphong
> Canberra, Australia
>
>
> ___
> 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] ZopeWeaver?

2000-11-29 Thread Simon Coles

>Hi Andy,
>
>>  "Andy" == Andy McKay <[EMAIL PROTECTED]> writes:
>
> >> There are now all manner of Dreamweaver extensions, both
>
> Andy> I tried it briefly and found that Dreamweaver cant seem to
> Andy> handle a file with no extension such as index_html, so gave
> Andy> up.
>
>Yes.. it's apparently just the Windows version that has this
>problem it's a really wierd limitation...

Yes, this works fine on the Mac. I suspect the difference is because 
on the Mac they are taking the http content types to figure out the 
content, but on Windows they are being lazy and using the file 
extension. Why they didn't use the same code I don't know.

To make Dreamweaver on Windows happy, we name our index files 
"index.html" and then have a DTML method for index_html which is just 
.

Most of our content people use Dreamweaver (on Macintosh and Windows) 
to edit Zope sites and are very happy with it.



Simon
-- 
- My opinions are my own, NIP's opinions are theirs --
Simon J. Coles Email: [EMAIL PROTECTED]
New Information Paradigms  Work Phone: +44 1344 753703
http://www.nipltd.com/ Work Fax:   +44 1344 753742
=== Life is too precious to take seriously ===

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