[Zope] is it possible to see whether any user is using a perticular zope object

2000-11-21 Thread subrahmanyan kalathur



 

hello ,
   I am subrahmanyan.
 
I am using zope for my project.
Now I would like to know is it possible to know 
if any body is using the zope object.
 
I mean , if one user is running one DTML method 
,  I want to know that one user
is using that object.
 
Is there any DTML tag for that.
 
thanks.
bye
 
 
yours,
 
K.H.Subrahmanyan
 
( [EMAIL PROTECTED] 
) 


[Zope] External Methods

2000-11-21 Thread Kini Natekar


Hi,

   I have got a html form which accepts an input from
the user. This input has to be passed to a Python
script, as a parameter, which is added as an external
method in zope. 
   Is there any way to do this ?


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




Re: [Zope] Zope / DCOracle / ZOracleDA / Oracle 7.3.3 crash/respawn problem

2000-11-21 Thread Chris Beaumont

Dieter, thank you. 

Unfortunately, if what you meant was to remove the -DDCOracle8 flag from
the end of my Setup file and recompile, that didn't do it. 
Zope is still crashing and restarting on perhaps one out of every 100
requests.
It seems to be more common when it hasn't been accessed in awhile, do
you think it could be some kind of cache issue?

It doesn't seem to happen when a database access isn't involved.
Back to the drawing board..

Thank you for your help, though..

Chris
[EMAIL PROTECTED]


Dieter Maurer wrote:
> 
> Chris Beaumont writes:
>  > I am using the most recent versions of (Linux) DCOracle and ZOracleDA to
>  > connect my Zope (2.1.6) installation to a copy of Oracle 7.3.3 running
>  > on another (Solaris) machine
>  >
>  > Basically, Zope is occasionally crashing when an SQL query is made.
>  > 
>  > Compilation tips, or a stable combination of ZOracleDA/DCOracle that I
>  > can use...
> You may try to compile DCOracle without the "-DCOracle8" (or similar)
> option.
> 
> Our problems disappeared after we did this (even though, we
> connected to Oracle 8.1.6).
> 
> 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] Having troubles starting Zope.

2000-11-21 Thread Chris McDonough

It sounds like the .deb of Zope (or the hotfix) you have is
misconfigured in some way... I think the Debian Zope maintainer is
Gregor Hoffleit... I'd imagine he'd be interested in a bug report.

But in the meantime, I'd suggest using the Zope source distribution to
install... it's actually not too hard.

1. make sure you have Python installed as well as the Python
"development libraries" (might be easiest to install Python from source
too here, but probably not required)
2. download the latest Zope source tgz
3. ungzip and untar it as a regular user in a directory somewhere you
like
4. run "python w_pcgi.py" in the directory (pay attention to the
password it gives you for the superuser)
5. wait for it to compile (report any errors you come up with in this
step to the list)
6. type "./start"
7. fire up a browser and point it at port 8080
8. log in as superuser and create a management account
9. close the browser
10. open the browser again and log in as the management user.
11. have fun.


Dany Rioux wrote:
> 
> Hi listers,
> 
> Until this afternoon, I was using zope (more like trying to use it) and
> everything was ok. I had some problems with the .deb SiteAccess but I
> fixed it by getting the real thing from zope.org and it worked. I added
> the latest Hotfix because it's a good thing to have. Then I restarted Zope
> but it never went back up again.
> 
> The box is Linux debian woody with Zope 2.2.2
> 
> When I try to start it up, that's the message I get:
> 
> 
> drioux:/etc/init.d# ./zope start
> Starting Zope...Traceback (innermost last):
>   File "/usr/sbin/zope-z2", line 535, in ?
> except: CLIENT_HOME = os.path.join(INSTANCE_HOME, 'var')
> NameError: INSTANCE_HOME
>  failed.
> ---
> 
> I went to check the line seeming to cause this and there's a comment about
> ZEO:
> 
> 
> # CLIENT_HOME allows ZEO clients to easily keep distinct pid and
> # log files. This is currently an *experimental* feature, as I expect
> # that increasing ZEO deployment will cause bigger changes to the
> # way that z2.py works fairly soon.
> try:CLIENT_HOME = os.environ['CLIENT_HOME']
> except: CLIENT_HOME = os.path.join(INSTANCE_HOME, 'var')
> ---
> 
> I remember seeing something about ZEO on zope.org but I don't remember if
> it was an update or whatelse but AFAIK I didn't installed and/or I don't
> use a ZEO client.
> 
> Now, I'm a total Zope newbie. Ok maybe not total but I'm a basic newbie
> and I wonder if the Hotfix fixed too much... I tried to move the Hotfix
> directory elsewhere but that didn't change a thing.
> 
> Anyone can offer help or maybe it's already been discussed. I looked at
> the list's past 2 months but came up empty.
> 
> TIA
> 
> Dany
> 
> ---.oo0O--O0oo.
> 
> Dany Rioux  UnderSoft
> Business:
> www.dating-reviews.com
> [EMAIL PROTECTED]
> 
> Pers:
> www.drioux.com
> [EMAIL PROTECTED]
> 
> ---.o00O---O00o.---

-- 
Chris McDonough
Digital Creations, Publishers 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 )




[Zope] Having troubles starting Zope.

2000-11-21 Thread Dany Rioux
 smime.p7m


Re: [Zope] RE: Problems using M18 (and others too!)

2000-11-21 Thread Curtis Maloney

On Tuesday 21 November 2000 20:04, Harris Peter wrote:
> > Andreas Tille wrote:
> > > I just gived Mozilla M18 a try and noticed that  Button of the
> > > browser doesn't work in zopüe management screen.  Netscape 4.75 (and
>
> Konqueror doesn't seem to work well with zope either - I sometimes
> get repeated password prompts, and the management screens don't come up
> at all - I just see the index_html document instead of the folder contents.
> I get the same bother with w3m, but not with IE or lynx.
>
> If all that's wrong with mozilla is the back button, I'll maybe give it a
> try.
>
> Peter Harris
>

Yeh, I've tried a bunch of browsers over the time I've been using Zope, 
because Netscape leaks memory (when you have JavaScript enabled and use 
textareas hmm... why would Zope cause problems? :).

Of the Linux versions, I find the following problems :
(this is not an extensive list, but the problems make the browser 
sufficiently difficult to use)

Amaya - no real Frames support
Opera - some odd problem with forms in frames
won't allow you to adjust edit box sizes (for DTML Methods/Documents)
Konqueror - seems forgetful of passwords

I have used a couple of others (which I can't recall just now) and they still 
didn't make the grade.

so, unfortunately, I'm stuck with Netscape.  I'm using 6.0, which seems only 
a little more bloaty, and a little less responsive, that 4.75.  With 
JavaScript disabled, it doesn't seem to leak memory (I've not been game to 
try with it enabled, yet :)

I know this is often considered an evil thought, but I'd really like IE on my 
Linux box, or at least something of equal quality.

Curtis Maloney

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] expiring dtml documents

2000-11-21 Thread Dieter Maurer

wade naveja writes:
 > this is great!  i'll give this - or something similar - a try in the near
 > future.
 > 
 > in know that zope has a reputation for less than cohesive documentation,
 > but can someone point me in the direction of some zope api documentation?
The ZQR (Zope Quick Reference; search on zope.org or zdp.zope.org)
or press the help button in your Zope 2.2.2 management screens.


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

2000-11-21 Thread Dieter Maurer

Tom Deprez writes:
 > Does someone knows how to calculate the date after 6 months of a certain date?
 > 
 > eg ZopeTime() + 6 months?
 > 
 > Is there an easy formula for this? Or do I've to check myself for a new
 > year, leap year
When I would need it (and did not find a better method),
I would use (in an external method):

  1. convert to a Python time tuple
  2. add 6 to the month component (creating a new tuple)
  3. convert back to a DateTime object.

It might be necessary to normalize the time tuple
before 3. with an "time.localtime(time.mktime(tup))".


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] random object with properties

2000-11-21 Thread Dieter Maurer

Kevin Worth writes:
 > I'm trying to find/write a method that will choose a random image 
 > from a folder (easy, using the random how-to)  But I also want to 
 > display the caption for the image, which is a property of that image.
 > 
 > This method:
 > 
 > 
 > 
 > 
 > presents me with a random photo, but no caption.



  




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] External Method

2000-11-21 Thread Dieter Maurer

Kini Natekar writes:
 >How can I pass parameters to an External Method? I
 > know of one way to do this, is to use dtml-var tag. Is
 > there any other way?
Anywhere, you can use 'expr=""'. This means almost
all DTML tags: call, var, in, with, let (without 'expr='!) ...

Example:




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] ZClass/DTML Document transparency

2000-11-21 Thread Dieter Maurer

Randall Kern writes:
 > 
 > In the case of DTML Documents, the following works fine:
 > 
 > 
 > 
 > In the case of ZClasses, I have to use something like this:
 > 
 > 
 >   
 > 
 > 
 > But this is rather ugly, and it's the sort of thing one shouldn't have =
 > to do in an oo system.
I understand you, but in all "oo" systems, you can avoid this
only if both objects have the same method.

In Zope, DTML objects have a "__call__" method which is
called automatically.
ZInstances do not have a "__call__" method.

What suggests to you, that these too should be unified
is the fact, that ZPublisher does it.
If an object has a "__call__", it is used; if not,
"index_html" is called, if it exists.

You may look at the mixin "ZCallable".
I do not know what it does but the name suggests, it might
perhaps help you.


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] Zope / DCOracle / ZOracleDA / Oracle 7.3.3 crash/respawn problem

2000-11-21 Thread Dieter Maurer

Chris Beaumont writes:
 > I am using the most recent versions of (Linux) DCOracle and ZOracleDA to
 > connect my Zope (2.1.6) installation to a copy of Oracle 7.3.3 running
 > on another (Solaris) machine
 > 
 > Basically, Zope is occasionally crashing when an SQL query is made.
 > 
 > Compilation tips, or a stable combination of ZOracleDA/DCOracle that I
 > can use...
You may try to compile DCOracle without the "-DCOracle8" (or similar)
option.

Our problems disappeared after we did this (even though, we
connected to Oracle 8.1.6).



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 problems .. should be fairly easy...

2000-11-21 Thread Dieter Maurer

Bowyer, Alex writes:
 > 
 > I can't find any examples in any of the Zope documentation
 > about how to manage permissions for class methods. Does anyone know where I
 > could find such documentation or examples if there are any?
Did you look at the upcoming Zope book?


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] How to create a run-time zclass instance?

2000-11-21 Thread Dieter Maurer

Dirksen writes:
 > How to create a run-time zclass instance, which stays in the memory, not in the zodb?
You uncheck the "standard Zope object" (or so) checkbox,
when you define the ZClass.



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

2000-11-21 Thread Eric Walstad

Here you go Tom.  I think this is what you are looking for.
There's probably a more streamlined way to implement it, but this seems to
work nicely.
Sorry for the VB-style variable names (grin)

Hope you find it useful.  -Eric.


Here's the (ONLY) DTML used to test the functions:
-8<-8<-8<-

Here's the result of dateInNMonths on November 21, 1999 + 6 months:


-8<-8<-8<-

I implemented it using two "Python Methods" as follows:
-8<-8<-8<-
ID: daysPerMonth
Parameters: ZopeDateTime <-- Pass in a Zope Date Time object
Function:
if ZopeDateTime.isLeapYear():
intDaysInFebruary = 29
else:
intDaysInFebruary = 28

strMonthName=ZopeDateTime.Month()

dicDaysPerMonth =
{'January':31,'February':intDaysInFebruary,'March':31,'April':30,'May':31,'J
une':30,'July':31,'August':31,'September':30,'October':31,'November':30,'Dec
ember':31}

return dicDaysPerMonth.get(strMonthName, 0)
-8<-8<-8<-
ID: dateInNMonths
Parameters: self, ZopeDateTime, Months
Function:
days = self.daysPerMonth(ZopeDateTime) - ZopeDateTime.day() + 1

i = 2

while i < Months:
nextDate = ZopeDateTime + days
days = days + self.daysPerMonth(nextDate)
i = i + 1

days = days + ZopeDateTime.day() - 1

return ZopeDateTime + days
-8<-8<-8<-

-Original Message-
From: Eric Walstad [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 21, 2000 10:19 AM
To: Tom Deprez
Subject: RE: [Zope] Date


Hi Again Tom,
OK, This is an interesting one that I may need later on.  I'll work on it
and get back to you...

-Original Message-
From: Tom Deprez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 21, 2000 9:43 AM
To: [EMAIL PROTECTED]
Subject: RE: [Zope] Date


Thanks Eric,

Unfortunately, although I only need to know the month and the year, I need
to know the exact month. In certain circumstances the method below will
give me a wrong month.

Tom.

At 09:29 21/11/2000 -0800, Eric Walstad wrote:
>Hi Tom,
>I have a Python Method (or whatever they're called now) that uses the
>following line
>d = self.ZopeTime() + days
>So, you could do something like:
>d = self.ZopeTime() + (days * 30 * 6)
>However, not all months are 30 days so this isn't totally accurate.  But,
>maybe it's good enough for your needs.
>
>Hope it helps,
>Eric
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom
>Deprez
>Sent: Tuesday, November 21, 2000 8:38 AM
>To: [EMAIL PROTECTED]
>Subject: [Zope] Date
>
>
>Does someone knows how to calculate the date after 6 months of a certain
>date?
>
>eg ZopeTime() + 6 months?
>
>Is there an easy formula for this? Or do I've to check myself for a new
>year, leap year
>
>Tom.
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Re: Version Lock/save/discard Problem

2000-11-21 Thread Júlio Dinis Silva

>We have had the same problem with "saving" Versions on zope 2.2.2 +
>ZEO. Our ZSS servers are on linux and our Zope Clients are on NT
>(don't ask).

I have all ZSS and ZCS on NT but I isolated the possible zeo's
related problem running my Data.fs on a standalone zope and the problems 
persisted.


>The only solution that worked for us so far is to repeatedly modify
>the locked object and re-save the version. If it doesn't work at
>first try again after a few hours. Eventually (after a dozen or so
>tries) it seems to sort itself out.
>We haven't seen documents become folders yet, but most of the work
>was done in ZClasses.

I solved the problem with some packs to the Database. In no understandable 
way after one of the packs the discard and save worked
okay. In one of the packs I got this output:

ERROR(200) ZODB FS FS21 ERROR: Bad reference to 
('\000\000\000\000\000\010kQ','myversion')
ERROR(200) ZODB FS FS21 ERROR: Bad reference to 
('\000\000\000\000\000\010]\250','myversion')

Its obviously there was something wrong with myversion object,
but only after some more packs the save/discard worked okay.

But I quit versions because the locking of a folder when you
add objects is not a good feature of versions, specially if the one
locked is root, means you just loose the possibility of changing your
online "version" of your site like adding new objects, and changing locked 
ones.

I know this versionlock happened with CatalogAware objects from experience 
with zope 2.1.6 but for instance the locking of a document even for a change 
out of the version is something never happened in 2.1.6. I'm just seeing 
this in 222, maybe this is a result of those objects being in a locked 
folder.

Best Regards,
Júlio Silva
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.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] Re: tag for knowing how many have logged under the same URL (present time)

2000-11-21 Thread Dieter Maurer

jacintha menezes writes:
 >  Kindly let me know how can we find out how many have logged (present
 > time)into zope
 > under the same URl.If there is an dtml-tag for this kindly give me that.
Obviously, you do not know yet how logging in works:

  HTTP is a stateless protocol.
  There is not such concept "currently being logged in".
  Zope does not know, who is or how many are currently "logged in".

  Instead, Zopes sees a sequence of requests, all independent
  from one another (from Zope's point of view).
  Some requests contain authentication information.
  You probably tend to say, that these requests are
  requests from logged in users.

  However, the authentication information is maintained
  by the browser. Zope has not information whatsoever
  about when the browser drops the authentication
  information (user logs off), e.g. because the browser
  is terminated. It therefore cannot tell, who
  currently is logged in.


There is a cookie based authentication.
For this form, there usually is a session/user record for logged
in users on the server. The cookie identifies the associated
session/user record. Again, Zope does not know, when the
browser drops the cookie (user logs off), but it can
force log off with an inactivity timeout.
When the user does not access Zope for a specific time,
it deletes the session/user record.
When the cookie still exists, the next request using this
record will require a new log in.
With this authentication form, you can *estimate* the
number of logged in users by counting the current session/user records.


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] random object with properties

2000-11-21 Thread Steve Spicklemire


Hmm.. How about something like:


 
 


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




Re: [Zope] SAP Database Adapter available?

2000-11-21 Thread Daniel Dittmar


> since the SAP Database has been release on Linux as GPLed Engine
> (http://www.sapdb.org), is there a compatible adapter for Zope ?
> 

Nope, but I'm working on it. You'll hear it here first.

Daniel

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 2.24b1 upgrade on win98 crashing. errno 9?

2000-11-21 Thread jimbo

I'm not sure what I've done to my system. The upgrade went fine at first so I think it 
might be something I've done since this morning.  I just deleted some product folders 
I had been working on.
Searching thru records seems mysql adapter might be the problem.
  I deleted the mysql folders and still can't start my Zope.
At this point I should start work on mastering Zope debugging.
What would be the easiest and quickest way to get my zope restarted without much 
damage?
Here is the error message.

IOError: [Errno 9] Bad file descriptor

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] random object with properties

2000-11-21 Thread Andy McKay

Duh what am I saying sequence-item... yep you need a let as per Morten. Too
many dtml-in's...
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Kevin Worth" <[EMAIL PROTECTED]>
Sent: Tuesday, November 21, 2000 12:14 PM
Subject: Re: [Zope] random object with properties


> You have to actually get the image to display its caption (untested)
>
> 
> 
> 
> 
>
> --
>   Andy McKay, Developer.
>   ActiveState.
> - Original Message -
> From: "Kevin Worth" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 21, 2000 11:57 AM
> Subject: [Zope] random object with properties
>
>
> > I'm trying to find/write a method that will choose a random image
> > from a folder (easy, using the random how-to)  But I also want to
> > display the caption for the image, which is a property of that image.
> >
> > This method:
> >
> > 
> > 
> >
> > presents me with a random photo, but no caption.  At one point, I had
> > it pulling out a random photo and a random caption, but I need the
> > associated caption.
> >
> > What am I missing here?
> >
> > Kevin
> > --
> > ---
> > Kevin Worth <[EMAIL PROTECTED]>
> > Computer Systems Specialist II and Adjunct Lecturer
> > Department of Materials Science and Engineering
> > University of Michigan
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Support for PHP?

2000-11-21 Thread ghaley


This was discussed about a month ago.  check the archive.

conclusion was that you can do anything with dtml that php does,
though with perhaps a little bit more indirection.

ciao!
greg.

Gregory Haley
Venaca.com

> Hi;
> I'm reading *the book* and it appears that Zope supports Perl and Python 
> but *not* PHP :(( Well, I'm learning Python and I have a limited but 
> working knowledge of PHP: I really *don't* want to have to learn Perl 
> because, although there's lots of stuff out there written in Perl, PHP 
> (IMHO) is better suited for the Internet than Perl. (I don't mean to offend 
> any Perl officionados out there.) So... Is there, or will there be support 
> for PHP? Will I be able to somehow cobble an interface between Zope and my 
> PHP programs? Also (without getting too far OT) can I do pretty much 
> anything I can do in PHP in Python?
> TIA,
> BenO
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] random object with properties

2000-11-21 Thread Morten W. Petersen

[Kevin Worth]

| 
| 

[,..]

| What am I missing here?

Maybe this will work:






HTH.

-Morten

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] random object with properties

2000-11-21 Thread Andy McKay

You have to actually get the image to display its caption (untested)






--
  Andy McKay, Developer.
  ActiveState.
- Original Message - 
From: "Kevin Worth" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 21, 2000 11:57 AM
Subject: [Zope] random object with properties


> I'm trying to find/write a method that will choose a random image 
> from a folder (easy, using the random how-to)  But I also want to 
> display the caption for the image, which is a property of that image.
> 
> This method:
> 
> 
> 
> 
> presents me with a random photo, but no caption.  At one point, I had 
> it pulling out a random photo and a random caption, but I need the 
> associated caption.
> 
> What am I missing here?
> 
> Kevin
> -- 
> ---
> Kevin Worth <[EMAIL PROTECTED]>
> Computer Systems Specialist II and Adjunct Lecturer
> Department of Materials Science and Engineering
> University of Michigan 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Support for PHP?

2000-11-21 Thread Chalu Kim


There is a post about using PHP with Zope. 

http://www.zope.org/Members/Mamey/PHP

But what is the point?

Ben Ocean wrote:
> 
> Hi;
> I'm reading *the book* and it appears that Zope supports Perl and Python
> but *not* PHP :(( Well, I'm learning Python and I have a limited but
> working knowledge of PHP: I really *don't* want to have to learn Perl
> because, although there's lots of stuff out there written in Perl, PHP
> (IMHO) is better suited for the Internet than Perl. (I don't mean to offend
> any Perl officionados out there.) So... Is there, or will there be support
> for PHP? Will I be able to somehow cobble an interface between Zope and my
> PHP programs? Also (without getting too far OT) can I do pretty much
> anything I can do in PHP in Python?
> TIA,
> BenO
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] You are currently working in version No

2000-11-21 Thread Martin Winkler

At 18:41 21.11.2000, Wolfgang Strobl wrote:
>After saving and leaving a version named "neu", I'm now confronted
>with a system which says
>"You are currently working in version No " right after I enter a
>management screen, and before I really enter anything.

It seems to me that the cookie set for leaving a version as buggy content. 
Quitting your browser and eventually deleting your cookies that are used 
with your website should change things back to normal.

Maybe a developer could do a search'n'replace in this part of Zope from 
"No" to "''" (or whatever the "no-version"-cookie is)? ;->

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] random object with properties

2000-11-21 Thread Kevin Worth

I'm trying to find/write a method that will choose a random image 
from a folder (easy, using the random how-to)  But I also want to 
display the caption for the image, which is a property of that image.

This method:




presents me with a random photo, but no caption.  At one point, I had 
it pulling out a random photo and a random caption, but I need the 
associated caption.

What am I missing here?

Kevin
-- 
---
Kevin Worth <[EMAIL PROTECTED]>
Computer Systems Specialist II and Adjunct Lecturer
Department of Materials Science and Engineering
University of Michigan 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Support for PHP?

2000-11-21 Thread Ben Ocean

Hi;
I'm reading *the book* and it appears that Zope supports Perl and Python 
but *not* PHP :(( Well, I'm learning Python and I have a limited but 
working knowledge of PHP: I really *don't* want to have to learn Perl 
because, although there's lots of stuff out there written in Perl, PHP 
(IMHO) is better suited for the Internet than Perl. (I don't mean to offend 
any Perl officionados out there.) So... Is there, or will there be support 
for PHP? Will I be able to somehow cobble an interface between Zope and my 
PHP programs? Also (without getting too far OT) can I do pretty much 
anything I can do in PHP in Python?
TIA,
BenO


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Re: Zope / DCOracle / ZOracleDA / Oracle 7.3.3 crash/respawn problem

2000-11-21 Thread Chris Beaumont

Ayhan,

  **Thank you**

Actually, my drivers were compiled against 8.1.6.1 (on Linux) too, and
I'm communicating with an Oracle 7.3.3 database (on a separate Solaris box).
Could that be part of the problem? I don't think there was an Oracle 7
for Linux. 
Are there some settings I could change to make my drivers more "Oracle 7
compatible" ?

Chris
[EMAIL PROTECTED]



Ayhan Ergul wrote:
> 
> Look for a file named 'sqlnet.log' on your system. If Oracle is the
> culprit, this file can help you understand what its problem is.
> 
> Your database may be rock solid but it may not be true for your
> drivers. Last time I compiled, I used latest ZOracleDA with latest
> DCOracle (not the one that came with ZOracleDA) and the whole thing
> has been solid for months.
> 
> Ayhan
> 
> PS: I'm not sending my drivers since they were compiled against Oracle
> 8.1.6.1

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] You are currently working in version No

2000-11-21 Thread Shane Hathaway

Wolfgang Strobl wrote:
> 
> On 21 Nov 2000, 9:57  Andy McKay wrote:
> 
> > Zope figures out what version you are in by saving a cookie. Close
> > your browser and or delete all cookies and go back to Zope, you should
> > then be out of any version.
> 
> Sorry, I forgot to mention that I tried this before asking the list.
> That's why I called this error "strange". I wasn't aware of any way to
> start a new "session" in a version, without entering it first.

Do you happen to have an object or property anywhere called
"Zope-Version"?  If so, remove it.

Shane

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope and Websphere

2000-11-21 Thread Didier Rano

Français ???

How do you convince your boss to get Zope rather than websphere ? I try to
convince my client to do it.

Didier Rano
Arakné

- Original Message -
From: "Francois-regis Chalaoux"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 21, 2000 10:04 AM
Subject: [Zope] Zope and Websphere


> Hi,
>
> I have to convince my new boss to use Zope rather than webspere !!
> Did somebody compare the two products ??
>
> FRC
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] expiring dtml documents

2000-11-21 Thread wade naveja

this is great!  i'll give this - or something similar - a try in the near
future.

in know that zope has a reputation for less than cohesive documentation,
but can someone point me in the direction of some zope api documentation?

On Sun, 19 Nov 2000, Cees de Groot wrote:

> 
> [EMAIL PROTECTED] said:
> > any insight as to how one might code something like that? 
> 
> Document traversal is a simple recursive Python function - with one call to 
> objectValues on a folder you can extract all documents (and iterate over them, 
> check their creation date, remove them if necessary); with a second call to 
> objectValues you get all subfolders and recurse into them.
> 
> objectValues matches on meta type, which is 'Folder' for a folder, and 'DTML 
> Method' for a DTML method. So you'd get something like:
> 
> def expire(folder):
>   for i in self.objectItems('DTML Method'):
>   id = i[0]; value = i[1]
>   if value.bobobase_modification_time() < """now minus two weeks""":
>   # remove i. Maybe tricky because you're iterating
>   # and removing from a collection. check. 
>   folder.manage_delObjects(id)
>   for i in folder.objectValues('Folder'):
>   expire(i)
> 
> Add this as a Python method (or similar) to the top-level folder where you 
> want to expire, and kicking it off is as simple as a HTTP GET from a cron job 
> (I think there's a job scheduler for Zope as well, should make it even easier).
> 
> Disclaimer: untested, untested, and I never tried this out.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 beta 1 released...

2000-11-21 Thread Chris Gray

I'm using win98 too.  I didn't apply 2.2.4 over my existing installation
but did a fresh install and I'm running 2.2.4 at port 9673 instead of
8080.  I can access both instances, except for the problem that I noted.
The problem does go away if only the 2.2.4 instance is running, but in the
past I've run two instances of Zope without mutual interference.

Chris

On Tue, 21 Nov 2000, jimbo wrote:

> I'm using win98.
> I applied the 2.2x-2.4 upgrade over my existing zope installation and I'm not having 
>a problem with /manage.
> Can you give a few more details?
> -Jimbo
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] ANNOUNCE: Zope 2.2.4 beta 1 released...

2000-11-21 Thread jimbo

I'm using win98.
I applied the 2.2x-2.4 upgrade over my existing zope installation and I'm not having a 
problem with /manage.
Can you give a few more details?
-Jimbo


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] You are currently working in version No

2000-11-21 Thread Wolfgang Strobl

On 21 Nov 2000, 9:57  Andy McKay wrote:

> Zope figures out what version you are in by saving a cookie. Close
> your browser and or delete all cookies and go back to Zope, you should
> then be out of any version.

Sorry, I forgot to mention that I tried this before asking the list. 
That's why I called this error "strange". I wasn't aware of any way to 
start a new "session" in a version, without entering it first.


--
  o  ( [EMAIL PROTECTED] (+49 2241) 14-2394
 /\*   GMD mbH   #include 
   _`\ `_<===  Schloss Birlinghoven, 
__(_)/_(_)___.-._  53754 Sankt Augustin, Germany 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] You are currently working in version No

2000-11-21 Thread Andy McKay

Zope figures out what version you are in by saving a cookie. Close your
browser and or delete all cookies and go back to Zope, you should then be
out of any version.
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Wolfgang Strobl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 21, 2000 9:41 AM
Subject: [Zope] You are currently working in version No


> I'm just figthing with a somewhat strange and annoying error on one
> of my production sites.
>
> After saving and leaving a version named "neu", I'm now confronted
> with a system which says
> "You are currently working in version No " right after I enter a
> management screen, and before I really enter anything.
>
> Well, there is no Object called "No" at all on this site.
>
> Trying to start working in version "neu" yields
>
> | Another version is active!
> | You cannot start working in this version while another version, No
> | is active. Leave No first and then you may work in this version.
>
> Clicking "Quit Working in No" doesn't have any effect at all.
>
> I'm stuck. Any ideas what to do? How am I assumed to quit
> working in a version that doesn't exist?
>
> Naturally, I don't want to rebuild my whole site from scratch, so I'd
> like to know what to do about. What makes Zope beleive that it is
> working in a non existing version?
>
> Arrgg.
>
> --
>   o  ( [EMAIL PROTECTED] (+49 2241) 14-2394
>  /\*   GMD mbH   #include
>_`\ `_<===  Schloss Birlinghoven, 
> __(_)/_(_)___.-._  53754 Sankt Augustin, Germany 
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Re: You are currently working in version No

2000-11-21 Thread Wolfgang Strobl

On 21 Nov 2000, 18:41  [EMAIL PROTECTED] wrote:

> I'm just figthing with a somewhat strange and annoying error on one of
> my production sites.
> 
> After saving and leaving a version named "neu", I'm now confronted
> with a system which says "You are currently working in version No "
> right after I enter a management screen, and before I really enter
> anything.
> 
> Well, there is no Object called "No" at all on this site.

To follow-up on my own posting: I somehow managed to fuddle me 
out of this mess. After noticing that "version management" told me 
something about working in "neu", I concluded that it might just 
become confused about the name, and tried to rename version 
"neu" to "No".  

No luck.

neu may not be renamed.
[OK] [Cancel]

Oh well. What about adding a third button labeld "Retry"?  :-}

Hm, "Ok" seems appropriate here. 

Nice traceback (see below), but magically, now I'm not working in a 
 version anymore.

So I tried to start working in "neu". Works. But now I notice that it 
is claiming to work in a version "neu" in a _different_ parent folder. 

Do empty versions remember the name of their parent folders? 
Why?

Anyway, I deleted and recreated the empty version, just to be sure.





Traceback (innermost last):
  File F:\zope\ntklotz1\lib\python\ZPublisher\Publish.py, line 222, in 
publish_module
  File F:\zope\ntklotz1\lib\python\ZPublisher\Publish.py, line 187, in 
publish
  File F:\zope\ntklotz1\lib\python\Zope\__init__.py, line 221, in 
zpublisher_exception_hook
(Object: Traversable)
  File F:\zope\ntklotz1\lib\python\ZPublisher\Publish.py, line 171, in 
publish
  File F:\zope\ntklotz1\lib\python\ZPublisher\mapply.py, line 155, in 
mapply
(Object: manage_renameObjects)
  File F:\zope\ntklotz1\lib\python\ZPublisher\Publish.py, line 117, in 
missing_name
  File F:\zope\ntklotz1\lib\python\ZPublisher\HTTPResponse.py, 
line 551, in badRequestError
BadRequest: (see above)



--
  o  ( [EMAIL PROTECTED] (+49 2241) 14-2394
 /\*   GMD mbH   #include 
   _`\ `_<===  Schloss Birlinghoven, 
__(_)/_(_)___.-._  53754 Sankt Augustin, Germany 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 beta 1 released...

2000-11-21 Thread Chris Gray

There's a bit of odd behavior, at least in the Windows binary release.
Going to any /manage URL brings up a blank page in the workspace
("manage_main") frame.  The workspace only appears when you click on
something in the navigator ("manage_menu") frame.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] You are currently working in version No

2000-11-21 Thread Wolfgang Strobl

I'm just figthing with a somewhat strange and annoying error on one 
of my production sites.

After saving and leaving a version named "neu", I'm now confronted 
with a system which says 
"You are currently working in version No " right after I enter a 
management screen, and before I really enter anything.

Well, there is no Object called "No" at all on this site.

Trying to start working in version "neu" yields

| Another version is active!
| You cannot start working in this version while another version, No 
| is active. Leave No first and then you may work in this version. 

Clicking "Quit Working in No" doesn't have any effect at all.

I'm stuck. Any ideas what to do? How am I assumed to quit 
working in a version that doesn't exist?

Naturally, I don't want to rebuild my whole site from scratch, so I'd 
like to know what to do about. What makes Zope beleive that it is 
working in a non existing version?

Arrgg.

--
  o  ( [EMAIL PROTECTED] (+49 2241) 14-2394
 /\*   GMD mbH   #include 
   _`\ `_<===  Schloss Birlinghoven, 
__(_)/_(_)___.-._  53754 Sankt Augustin, Germany 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] jcNTUserFolder on 2.2.x

2000-11-21 Thread Andy McKay

> API changes in 2.2 (and future developments, like PTK) make custom
> user folders less attractive than they used to be. If you intend
> committing some time to this then I recommend something based on
> http://www.zope.org/Members/tsarna/LoginManager
>
> The simplest change would be to transplant the authentication code out
> of (jc)NTUserFolder and into LoginManager methods. However that would
> still only run on NT.

A custom user folder to me always seems a bad idea, a merging of the two
would make the most sense to me. Being totally selfish Im only interested in
NT... I'm currently looking for a way around this, if not I might be in
touch.

Cheers.

--
  Andy McKay, Developer.
  ActiveState.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Pseudo E-Mail Address validation

2000-11-21 Thread Dennis Nichols

At 11/21/00 04:27 PM, Martin Winkler wrote:
>For a subscription tool of a mailing list I'd like to quick-check the 
>e-mail address our users type.

As a check on whether an email address *looks* OK, I use the following 
External Method. If ICANN really approves TLDs that are other than 2 or 3 
characters long then the {2,3} will have to be changed.

Warning: Some mail software between you and me may break up lines in the 
code. There are two executable lines, one starts with "m =" and the very 
next line starts with "return". There are no blanks in the r'...' string.



import re

def wellformedEmail(self, address):
 """ return true if email address appears to be well formed """
 m = 
re.search(r'^[_a-z0-9-]+(\.[_a-z0-9-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+[a-z]{2,3}$', 
address, re.IGNORECASE)
 return m != None and m.group() == address


--
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] External Method

2000-11-21 Thread Andy McKay

If you are talking about dtml you can pass them in the dtml-call tag


--
  Andy McKay, Developer.
  ActiveState.

- Original Message - 
From: "Kini Natekar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 21, 2000 2:12 AM
Subject: [Zope] External Method


> 
> Hi,
> 
>How can I pass parameters to an External Method? I
> know of one way to do this, is to use dtml-var tag. Is
> there any other way?
> 
> 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] Search and replace

2000-11-21 Thread Mario Olimpio de Menezes

On Tue, 21 Nov 2000, Lee Hunter wrote:

> On the other hand I actually *like* the Zope management interface - in fact,
> so far I've found it to be very easy to understand and a total pleasure to
> use. It just doesn't offer some things that I must have - features that
> would probably be hard to incorporate into a browser interface.
> 

what about a plug-in, written in {Java | TclTk | whatever_language}?
I don't have skills to do this but I think this could be done.

just an idea!

[]s
Mario O.de Menezes"Many are the plans in a man's heart, but
IPEN-CNEN/SP is the Lord's purpose that prevails"
http://curiango.ipen.br/~mario Prov. 19.21


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Date

2000-11-21 Thread Tom Deprez

Does someone knows how to calculate the date after 6 months of a certain date?

eg ZopeTime() + 6 months?

Is there an easy formula for this? Or do I've to check myself for a new
year, leap year

Tom.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 Method name candidate

2000-11-21 Thread Hamish Lawson

I propose Python ZMethod.

Rationale: The term 'Python ZMethod' identifies that this entity has
methodish properties (acquisition, etc) from Zope's point of view, but
distinguishes it from methods in the Python language. Furthermore the
term 'ZMethod' could be used generally for any entity that Zope regards
as a method; hence DTML ZMethod, Perl ZMethod, SQL ZMethod, etc. and
their unrestricted counterparts - DTML ZMethod (Unrestricted), Perl
ZMethod (Unrestricted), SQL ZMethod (Unrestricted), etc.

Hamish Lawson



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Version Lock/save/discard Problem

2000-11-21 Thread Júlio Dinis Silva

>I created a version in my zope root in which I've been working
>for some days. I created some objects on my root folder when
>working on my version which caused root to became locked.
>
>Now I want to save/commit my version. I go to the save/discard form
>and the save form post looks to work okay, i.e, I have a undo log
>of this commit and If I try to save again Zope tells me there
>is nothing else to save in the current version.
>
>But... when I try to delete my version I get a VersionLockError,
>and my root folder is still being locked.
>
>Same goes to Discard, i.e, apparentely zope do the save/discard but
>the locked files/folders continues there.
>
>I've tryed with superuser, and even on the Control Panel Version manage,
>with no luck.
>
>I'm using zope222.
>I'm using latest release of ZEO.
>I do a pack to my Data.fs on a daily basis.
>
>Anyone had this problem, any help?


I saw in a post someone saying that a Pack to the Database solved
the problem he had with versions.
In fact, after doing a pack to my database I can now discard and
delete my version but the save operation do some weird things
like Documents become Folders !?!

Júlio Dinis Silva
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.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] XML-RPC

2000-11-21 Thread Steve Spicklemire


A number of folks have asked me about ming-0.0.4 and Zwiff. I have
just uploaded a new Zwiff that uses ming-0.0.4+ (there is actually a
full ming distribution this time with all the patches needed to work
with Zwiff.)

Let me know how it goes!

http://www.zope.org/Members/sspickle/Zwiff

-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] Pseudo E-Mail Address validation

2000-11-21 Thread Martin Winkler

Hi all,

For a subscription tool of a mailing list I'd like to quick-check the 
e-mail address our users type. Is there a little product/method etc. 
available that does this? I know that you can only be sure whether an 
e-mail address exists or not, when you actually send a mail to the user, 
but a quick-n-dirty check would be nice. Maybe even complete RFC-compliancy 
as implemented in some Perl-Modules? (spaces, "@" sign, dot-notation etc.)

Hoping for an answer,

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 )




RE: [Zope] ANNOUNCE: Zope 2.2.4 beta 1 released...

2000-11-21 Thread Brian Lloyd

> I'm not quite sure wether it's me, my system or this beta, but a 
> fresh installation of 2.2.4 beta 1 says:
>exceptions.AttributeError
>...
>line 140, in index_html
>(Object: zope_button.jpg)
>AttributeError: _p_mtime
> 
> Actually, none of the images in p_ is accessible

Thanks - that is fixed for final. Let me know if you see 
anything else...


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] URL-problem

2000-11-21 Thread Oliver Bleutgen

> Thanks for your reply, but the main problem is the navigation.
> The admin part is the normal  browse-version + an admin interface at the
> bottom of every side.
> So when you are in root/main/press and you click on the new button a
> script
> adds a new object.
> But how do I solve the navigation problem. The buttons to the other
> objects(pages) are the browse-version this means you leave the admin
> interface every time you change your position.


Just some ideas, not well thought out ...

What about putting
 

   


in your standart_html_footer.
In light of the current search&replace thread, remember to
put admin.website.com in a variable ;->.

You could also play games with mod_rewrite in order to
add a spezial variable to your _apache_-environment variables
(ie. this should work when running zope as cgi, and only then) 

RewriteEngine on
RewriteRule   ^admin.website.com/(.*)   www.website.com/$1   [E=my_admin_trigger:on]

so testing for  REQUEST.environ['my_admin_trigger']=='on' should do the trick.

Or you could add this variable to the url like

RewriteEngine on
RewriteRule   ^admin.website.com/(.*)   www.website.com/$1?my_admin_trigger=on 



Perhaps the siteroot-product might be helpful, just in case your running pure zope,
I don't know though.



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] Search and replace

2000-11-21 Thread Lee Hunter

Kapil wrote:

> that would like to see this changed.  Building such an interface with
> gnome or kde would be possible, indeed there are already efforts
> underway to do both. But to create a cross-platform solution really
> needs... Mozilla. Sadly, the ZopeMoz projects appears to be dead,
> hopefully developer interest can be generated in reviving it after
> ActiveState releases the python bindings to XPCOM (which should be
> soon).

Wasn't there some talk of using Radio Userland (formerly Pike) as an
interface to Zope? It's too bad that Userland has made the very odd decision
to broaden RU into a music sharing gizmo - it really lost focus after that
point. But at least it still offers my beloved search and replace and a few
other basic editing tools.

On the other hand I actually *like* the Zope management interface - in fact,
so far I've found it to be very easy to understand and a total pleasure to
use. It just doesn't offer some things that I must have - features that
would probably be hard to incorporate into a browser interface.

Regards

Lee Hunter
Hum Communications Ltd.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] DTMLTemplate + PythonMethod == separate code from HTML?

2000-11-21 Thread Thiebaut CHAMPENIER

In fact, I find it too hard to code something using DTML, that's why I'd
like to use good old python and to keep only variable substitution in my
HTML (dtml-var, or maybe just &dtml-my_variable; which is an easier to use
form of it, or maybe replace it with @my_var@ or smth like that, which I
would find even easier!)

I'd like to be able to delimit blocks in an HTML file and to use these
blocks from a python program, the goal is to completely separate the code
from the design (HTML). With DTML, the code and the design are mixed.

it would look like this:

def index_html(_):
  "Display a list of items taken from the products database"
  if not check_password():
return bad_password_page
  query_result = my_zsql_query(_)
  if not query_result:
return my_template.no_result
  result = ReturnStream()
  result.add( my_template.header )
  for line in query.result:
result.add( my_template.one_line, line )
  result.add( my_template.footer )

and my_template would be an HTML file with  tags that delimit
the header, one_line and footer blocks.
The one_line block would use some variables defined in the line dictionary;
for example:


@item@@quantity@@price@


The DTMLTemplate and PythonMethods products seem to provide this kind of
separation between code and design, but I did not manage to get them working
properly together:

DTMLTemplate:  when I display a block (using ), the HTML tags in my_block appear quoted, should I
use a fmt="html" or something like that to avoid the quoting?

PythonMethods: how can I access Zope objects from my method?  Typically I'd
like to call a template block from my method, but just using
my_template.my_block doesn't work.

As you can see, I'm not a Zope guru, but I'm willing to learn!  I believe
that Zope and PTK have a big role to play in the current portal and
application servers war... ready to use portal-in-a-box products cost around
$100,000... so for that price you can use zope and afford more consulting
and coding services!

BTW, currently I'm experiencing a problem: no images (icons, ZopeButton
etc..) appear on my management pages, images stored in the ZODB are ok
though. any idea where are those images like
http://localhost:8080/p_/ZopeButton ?

Thanks for your time!

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 beta 1 released...

2000-11-21 Thread Wolfgang Strobl

On 20 Nov 2000, 15:07  Brian Lloyd wrote:

>   Zope 2.2.4 beta 1 has been released - you can download it 
>   from Zope.org:
> 
>   http://www.zope.org/Products/Zope/2.2.4b1/

I'm not quite sure wether it's me, my system or this beta, but a 
fresh installation of 2.2.4 beta 1 says:

Zope Error

  Zope has encountered an error while publishing this resource. 

   exceptions.AttributeError
   ...
   line 140, in index_html
   (Object: zope_button.jpg)
   AttributeError: _p_mtime

when trying to access 

http://klotz:8080/p_/ZopeButton

Actually, none of the images in p_ is accessible

-
Zope version: Zope 2.2.4b1 (binary release, python 1.5.2, win32-
-

Complete traceback:

Sorry, a Zope error occurred.

Traceback (innermost last):
  File 
E:\var\disk2\sites\WEBSIT~3\lib\python\ZPublisher\Publish.py, line 
222, in publish_module
  File 
E:\var\disk2\sites\WEBSIT~3\lib\python\ZPublisher\Publish.py, line 
187, in publish
  File 
E:\var\disk2\sites\WEBSIT~3\lib\python\ZPublisher\Publish.py, line 
171, in publish
  File 
E:\var\disk2\sites\WEBSIT~3\lib\python\ZPublisher\mapply.py, line 
160, in mapply
(Object: index_html)
  File 
E:\var\disk2\sites\WEBSIT~3\lib\python\ZPublisher\Publish.py, line 
112, in call_object
(Object: index_html)
  File E:\var\disk2\sites\WEBSIT~3\lib\python\App\ImageFile.py, 
line 140, in index_html
(Object: zope_button.jpg)
AttributeError: _p_mtime



--
  o  ( [EMAIL PROTECTED] (+49 2241) 14-2394
 /\*   GMD mbH   #include 
   _`\ `_<===  Schloss Birlinghoven, 
__(_)/_(_)___.-._  53754 Sankt Augustin, Germany 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] URL-problem

2000-11-21 Thread Jan Van de Vyle

Thanks for your reply, but the main problem is the navigation.
The admin part is the normal  browse-version + an admin interface at the
bottom of every side.
So when you are in root/main/press and you click on the new button a script
adds a new object.
But how do I solve the navigation problem. The buttons to the other
objects(pages) are the browse-version this means you leave the admin
interface every time you change your position.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] PythonMethods

2000-11-21 Thread Alastair Burt

Tom Deprez <[EMAIL PROTECTED]> writes:

> Can somebody provide me the URL to the last version of Python Methods?
> I only find version 0.1.7 which was created 199/12/13.

If you want to use Python Methods as they are described in the Zope Book,
you have to check the code out of CVS. Info on CVS access can be found in:

   http://www.zope.org/Resources/CVS_info

Python Methods are found under Products/DC.

--- Alastair


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] URL-problem

2000-11-21 Thread Martin Winkler

At 12:19 21.11.2000, Jan Van de Vyle wrote:
>The problem is I've got a website which should have an 
>admin-interface.This interface should only be visible if you call i.e. 
>admin.website.com. If you call web.website.com you reach the normal browse 
>view.

If you have Apache in front of Zope (good idea!), you should be able to use 
Apache's mod_rewrite to implement this behaviour. See 
http://www.apache.org/docs/mod/mod_rewrite.html
But beware! The documentation starts with "Despite the tons of examples and 
docs, mod_rewrite is voodoo. Damned cool voodoo, but still voodoo." (-- 
Brian Moore)

Maybe the easier module mod_alias could help you as well: 
http://www.apache.org/docs/mod/mod_alias.html#redirectmatch

You have to split your URLs into parts and redirect to the correct location eg:
User types , Apache sees the 
"admin" and redirects to . On the 
other hand: Is it so hard to type "/manage" after the url to connect to the 
management interface?

hth,

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

2000-11-21 Thread Tom Deprez

Can somebody provide me the URL to the last version of Python Methods?
I only find version 0.1.7 which was created 199/12/13.

Thanks, Tom.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] URL-problem

2000-11-21 Thread Jan Van de Vyle



The problem is I've got a website which should have 
an admin-interface.This interface should only be visible if you call i.e. 
admin.website.com. If you call web.website.com you reach the normal browse 
view.
The website shoudn't be doubled, but the links on 
the browse-view normally call the browse-view and not the admin-view.Hope you 
understand the prob.
Thanks in advance!!


[Zope] SAP Database Adapter available

2000-11-21 Thread olpa


Hi folks,

since the SAP Database has been release on Linux as GPLed Engine
(http://www.sapdb.org), is there a compatible adapter for Zope ?

---
The only "intuitive" interface is the nipple. After that, it's all learned.
(Bruce Ediger, [EMAIL PROTECTED], in comp.os.linux.misc, on X interfaces.)
---
 Oliver Pabst .-. 
 mailto:[EMAIL PROTECTED]: : 
 phone :+49 681 56600600  :project department   :  SYBCOM GmbH  
 fax   :+49 681 56600660  : : http://www.sybcom.de 



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] ZMailIn - alternatives?

2000-11-21 Thread Andy Dawkins

Chris

If that will solve peoples problems.

But I haven't had much feedback on the product so its hard to make any
improvements.

-Andy

> -Original Message-
> From: Chris Withers [mailto:[EMAIL PROTECTED]]
> Sent: 21 November 2000 10:14
> To: Andy Dawkins
> Subject: Re: [Zope] ZMailIn - alternatives?
>
>
> Andy Dawkins wrote:
> >
> > Vince
> >
> > > I installed it right away - and I think it should work. When
> > > first trying to mail to the system it said it had some problem
> > > with the x-envelope-to header.
> >
> > The ZMailIn system doesn't use the x-envelope-to header it uses the
> > envelope-to header.
> > If your mail server provides x-envelope-to instead of
> envelope-to then you
> > need to change lines 83 and 84 in zopeMailIn.py to reflect this change.
>
>
> Yurch!
>
> How about factoring this out into a Property of the ZMailIn object?
>
> cheers,
>
> Chris
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] External Method

2000-11-21 Thread Kini Natekar


Hi,

   How can I pass parameters to an External Method? I
know of one way to do this, is to use dtml-var tag. Is
there any other way?

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 )




Re: [Zope] Javascript & dtml tags

2000-11-21 Thread seb bacon

* Kini Natekar <[EMAIL PROTECTED]> [001121 07:36]:
>Is there a way to include dtml tags with a
> javascript ? If there is please let me know.

if you mean, you want to insert a dtml tag into a document using
javascript, then no.  zope's a server-side technology; javascript is
client-side. 

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] Uploading files / forms / aditional info / to localfilesystem ..

2000-11-21 Thread Mario Olimpio de Menezes


> Jorgen Skogstad - Sun Norway - System Support Engineer writes:
>  > What I need is for a user to
>  > fill out
>  > a form with various information .. and click upload on a file .. and I need
>  > to
>  > create the following two files locall;
>  > 
>  > Example:
>  > * image.jpg
>  > * image.info
> You use either "LocalFS" or an external method.


you can also look at ExtFile/ExtImage product. 

http://www.zope.org/Members/MacGregor/ExtFile

[]s,
Mario O.de Menezes"Many are the plans in a man's heart, but
IPEN-CNEN/SP is the Lord's purpose that prevails"
http://curiango.ipen.br/~mario Prov. 19.21



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 and Websphere

2000-11-21 Thread Francois-regis Chalaoux

Hi,

I have to convince my new boss to use Zope rather than webspere !!
Did somebody compare the two products ??

FRC

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: Problems using M18 (and others too!)

2000-11-21 Thread Harris Peter

> Andreas Tille wrote:
> > I just gived Mozilla M18 a try and noticed that  Button of the
> > browser doesn't work in zopüe management screen.  Netscape 4.75 (and
> 
Konqueror doesn't seem to work well with zope either - I sometimes
get repeated password prompts, and the management screens don't come up
at all - I just see the index_html document instead of the folder contents.
I get the same bother with w3m, but not with IE or lynx.

If all that's wrong with mozilla is the back button, I'll maybe give it a
try.

Peter Harris



This message and any files transmitted with it are confidential.  
The contents may not be disclosed or used by anyone other 
than the addressee. 
If you have received this communication in error, please delete 
the message and notify JBB (Greater Europe) Plc immediately 
on 0141-249-6285.

The views expressed in this email are not necessarily the views 
of JBB (Greater Europe) PLC.  
 As it has been transmitted over a public network, 
JBB (Greater Europe) PLC makes no representation nor accepts 
any liability for the email's accuracy or completeness unless 
expressly stated to the contrary.

Should you, as the intended recipient, suspect that the message 
has been intercepted or amended, please notify 
JBB (Greater Europe) Plc immediately on 0141-249-6285.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] ZMailIn - alternatives?

2000-11-21 Thread Andy Dawkins

Vince

> I installed it right away - and I think it should work. When
> first trying to mail to the system it said it had some problem
> with the x-envelope-to header.

The ZMailIn system doesn't use the x-envelope-to header it uses the
envelope-to header.
If your mail server provides x-envelope-to instead of envelope-to then you
need to change lines 83 and 84 in zopeMailIn.py to reflect this change.

> As far as I understood the problem, the mail server should
> provide this feature, but mine doesn't. ;-(

What mail server are you using.  I know exim works fine and I have heard
reports of people using send-mail

> Thus I can't mail into the system. Any idea for workarounds?

If you still can't get it working then email me the exact details.  Prehaps
then I'll find an excuse to update ZMailIn and release another version :)

-Andy


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] jcNTUserFolder on 2.2.x

2000-11-21 Thread Toby Dickenson

On Mon, 20 Nov 2000 14:20:41 -0800, "Andy McKay"
<[EMAIL PROTECTED]> wrote:

>Is there an updated version or product similar to jcNTUserFolder (allowing
>NT authenitcation in Zope) that works in Zope 2.2.x? Or am I going to have
>to upgrade jcNTUserFolder?

Both jcNTUserFolder and NTUserFolder (Which I maintain, and from which
jcNTUserFolder forked) do not fully integrate with 2.2's security
machinery. Tackling this deficiency is on my to-do list too, but I
wont be upset if someone else does the work first.

API changes in 2.2 (and future developments, like PTK) make custom
user folders less attractive than they used to be. If you intend
committing some time to this then I recommend something based on
http://www.zope.org/Members/tsarna/LoginManager

The simplest change would be to transplant the authentication code out
of (jc)NTUserFolder and into LoginManager methods. However that would
still only run on NT.

A solution that runs on linux and solaris only is oulined at
http://www.zope.org/Members/tseaver/LoginManager_and_SMB. My ideal
solution (that I still hope to find time for) would be to do whatever
is needed to get this option running on NT and 95 too.

I hope this is of some help.

Toby Dickenson
[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] Search and replace

2000-11-21 Thread Ender

Daniel Rusch wrote:
> 
> I have been following this thread with mild amusement. Those of you who
> don't think that there is any need for a search and replace are being,
> at the least, disingenuous. Have you never needed to replace a dtml var
> that is on a hundred or more pages with another one, but replace it only
> on some of the pages???
> 
> The lack of a search and replace, a find that actually "finds" a string
> on a page (instead of just the page) and other standard editor features
> are the reasons why Zope is being phased out of this companies (15,000
> person worldwide company, the worlds largest web hosting and fiber optic
> network) web tool set.
> 
> Don't get me wrong, I think Zope is the greatest thing since sliced
> bread. But, if Zope is to become anything other than a bastion for open
> source zealots (myself included), a real editor is a necessity not a
> nicety! Zope had the opportunity to sweep this company ( it could have
> ended up on hundreds if not thousands of servers) but the lack of a
> professional interface doomed it.
> 
> DR

Sadly this is a constraint of zope ide's being browser based (or based
on current browsers). I would eagerly like to help out with a project
that would like to see this changed.  Building such an interface with
gnome or kde would be possible, indeed there are already efforts
underway to do both. But to create a cross-platform solution really
needs... Mozilla. Sadly, the ZopeMoz projects appears to be dead,
hopefully developer interest can be generated in reviving it after
ActiveState releases the python bindings to XPCOM (which should be
soon).

kapil


> 
> 
> Lee Hunter wrote:
> >
> > Martin Winkler wrote
> > > I just wanted to express that this feature may be too hard to
> > > program for
> > > the (IMHO) rare cases that we really need it, but IF there
> >
> > I had understood that Python and Zope excelled at string manipulation.
> > That's why I am surprised that it would be difficult to scan a folder full
> > of documents to find a word and replace it with another (with the option of
> > ignoring anything in pointed brackets). I'm not a programmer so I probably
> > don't appreciate the complexities of the task, however in this case it seems
> > like the object-oriented database is a hindrance rather than a help. If it
> > was just a batch of html files I could search and replace through them with
> > just about any piece of software on my desktop.
> >
> > I wouldn't know whether this is the sort of tool that is generally useful,
> > but in my work I use search and replace all the time (if only to fix my
> > endless confusion over 'its' and 'it's')
> >
> > Cheers
> >
> > Lee Hunter
> > Hum Communications Ltd.
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Javascript & dtml tags

2000-11-21 Thread Bill Anderson

Kini Natekar wrote:
> 
> Hi,
> 
>Is there a way to include dtml tags with a
> javascript ? If there is please let me know.


Are you sure you don't mean include javascript using dtml?
DTML is parsed by the server, javascript by the client.

I use dtml to build javascript (and in some cases, use dtml to build
rxml that builds javascriprt ;).


--
E PLURIBUS LINUX


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )