[Zope] RE: Wampum Generator

2000-11-08 Thread Kevin Smith

It's a Winzip thing. I'll bet wampum generator is a .tar file, just rename it to a 
.tgz file and  it should open just fine.

Kevin Smith
99hats.com




-:You said:--
Hi,

Has anyone used this before? I am a newbie and would
like to play 
around with it. I have the how-to docs. But my problem
starts at the 
download! 

When I try to open it with winzip I get this error:
“Error
reading header after processing 0 entries”. I have
successfully untared other files with winzip. I have
dowmloaded it 4 times to make sure it wasn’t just
corrupted. Is there another place that I can download
it?

Also any tips on install/use are welcomed!

Thank you.

=
Kathy Hester

to feel powerful often
to act powerful sometimes
to overpower others seldom
to share power whenever possible
-  unknown

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread Michael Bernstein

Chris Withers wrote:
> 
> Hamish Lawson wrote:
> > Zope regards as a method a Zope Method? That would then give us Python
> > Zope Method, Perl Zope Method, DTML Zope Method, SQL Zope Method, etc.
> > Is it too late to add the option for Python Zope Method to the poll?
> 
> All too long an unwieldy... glad to see the -lets have died.
> Sad to see neither Python Block nor Python Op(eration) seem so be
> gettign there since they most accurately describe what these things are,
> IMVHO...

Thanks for the vote, Chris... :-)

If the poll gets re-run, I'd like to add 'Python Code Block'
as another contender.

Michael Bernstein.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] can we give path of the file to be sent as an attachment

2000-11-08 Thread jacintha menezes

Hi,
   Thanks for your mail. I have seen the tags of sendmail & mime.Kindly let
me know whether we can send a file stored in the hard disk as an attachment
by giving it's path.

I shall send the tags , kindly modify it wherever necessary.I don't know how
& where
actually to give the path.


To:[EMAIL PROTECTED]
From:[EMAIL PROTECTED]
Subject: hi


 good morning !.








e.g when i run this it gives error value : file

waiting for your immediate reply

  Thanks,
bye,
 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 )




[Zope] zzLocale 0.0.3a uninstall bug fix

2000-11-08 Thread Yves-Eric Martin

Hello,

Once installed, zzLocale 0.0.3a cannot be removed (if removed, Zope
refuses to start, complaining that zzLocale cannot be found). Since
0.0.3a is an alpha release, I was not planning to write a fix to such a
broken Zope. But I have been asked to, so here it is:

http://www.zope.ne.jp/users/yemartin/zzLocale/fix__init__003a.py

Reinstall zzLocale-0-0-3a, replace its __init__.py by the above file,
and restart the Zope process. This will fix the ZODB and make zzLocale
removable.



Cheers,


-- 
Yves-Eric Martin
Digital Garage Inc.
[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] Acquisition beahviour ... static/shared vs local instance

2000-11-08 Thread Matt

This is more a philosophical question about what is the better way to
organize a Zope utility.  The feeling of acquisition is a nice one, and
is a joy to program with, but there seems to be one scenario that
troubles me a little.  Am I correct in assuming that objects and their
properties(if they are allowed them) are static, or shared in their
nature.  I.e. : 2 people accessing the same object at the same time are
sharing that object, and therefore can potentially collide if they both
are able to execute a method that changes this object, say a property
such as language.  To overcome this I reorganized things such that
shared objects could only have constant like properties that only a
manager can change and then created a session object, which is just a
rather boring ZClass that can hold onto session variables so that I
don't have to keep passing them around as form variables, since this is
the interface that the public user has.  Maybe this is not the right way
to do it, maybe there are better ways of letting someone move around
with session variables.  I thought perhaps cookies would be a better
thing, except that people can turn these off.

The next problem then is that it is easy enough getting people to login
through a particular node so that I can set a sheet up for them before
redirecting them to another part of the Zope environment, but there is
no way to ensure they have to log out so that I can throw the sheet
away.  Hmm, yes cookies sound better.  The more important point is that
I have used methods in their fullest sense of acquisition ... I use
redirects to activate a method in the correct part of the Zope
environment so that it acquires what it needs and creates instances of
various ZClasses as required.  These methods are obviously reasonably
close to root of the hierarchy, just so they can be thrown to many
places.  I want to be able to restrict where these can be thrown to stop
people playing around with their own urls and creating bad objects in
the wrong places.

Anyone have any thoughts on these problems?

regards
Matt Bion


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

2000-11-08 Thread Matt Burleigh

test
-- 
Matt Burleigh
Systems Administrator, Digital Creations - publishers of 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 )




Re: [Zope] Zope Book (Error and Suggestion)

2000-11-08 Thread Michel Pelletier

The Doctor What wrote:
> 
> At least I think it's an error (either in my understanding or in the
> book).
> 
> First off, I think the books great. Finally something that's trying
> to explain what's going on.  Zope looks so cool, but it's been hard
> for a hardcode PHP and Perl programmer like me to get my brain around it.
> 
> Anyway, my suggestion is that all the image URLs be fixed so that
> your book can be easily mirrored with normal web-tools.  Perhaps
> even offer a version that's downloadable.  When I went to mirror it,
> my mirror software choked on image urls like:
> http://www.zope.org/Members/michel/ZB/SimpleExamples.html/Figures/5-7.png
> 
> The mirror was so I can use it at home where I don't have a
> reasonable net access (very flaky 56k, it hoses up frequently as
> it's through work).
> 
> The error or problem that I have run into is that I can't get the
> Guest Book in chapter 5 to work.  They python method listed there
> does not work for me.  I'm using Debian Unstable (Woody) with these
> versions of packages:
> ii  zope   2.2.2-3The Z Object Publishing Environment
> ii  zope-bytecodeh 0.1.7-2Rewrite bytecode of functions to do unlikely
> ii  zope-pythonmet 0.1.7-2Allows ZopeMethods to be written in plain Py
> 
> That's bytecodehacks and pythonmethods on the bottom there.

This is an old version of python method.  You need to d/l python method
out of cvs in order to get the book example working.

-Michel

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

2000-11-08 Thread Richard Lanham

Rick,
I got a chance to try this out, had to fix it a little, but this was the
hook I needed. Thanks.
Richard

- Original Message -
From: "Rik Hoekstra" <[EMAIL PROTECTED]>
To: "Richard Lanham" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, November 06, 2000 8:59 AM
Subject: Re: [Zope] objectValues type?


> I have this simple tree:
>
> 
> 
> 
>  
>
> The anchor's target is main. But it if it is a Folder I want the target to
> be self.
>
> And I want to skip some items.
>
> How do I return the objectType (eg Folder, Document, Method) so I can
alter
> the anchor, and/or object Properties that I might set to make other
> decisions?
>
>
> try (untested):
>
> 
> 
> 
> 
> 
> 
> 
>  
>
> with the dtml-if tag you can test for other properties in the same way.
>
> hth
>
> Rik
>
>


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




Re: [Zope] XML-RPC

2000-11-08 Thread Jason Cunliffe

Hello

I am missing the start of this thread, so I may be off topic, but you might
want to look seriously at Flash5 for the client side programming and
graphics.

PROS:

1. Flash5 ActionScript is _very_ close to JavaScript

2. Flash Player/Plugin is much smaller than SVG 300Kb vs. 13Mb I think +
large user installed base.

3. Flash5 has new XML and XMLSockets objects which should integrate nicely
with XMLRPC and Zope via some smooth Python external method programming.

4. Flash will allow _much_ more client side interactivity than SVG

5. You can port SVG graphics to Flash using various tools [or even write
your own].

6. You can still use SVG JavaScript and do some comparisons where
appropriate...

7. Flash is more mature than SVG, though I agree SVG is developing very
well. I expect we shall see some serious applications during next 12 months
with it.

8. Flash is very object-oriented once you grok to its design. Thus mirrors
Zope very well.

CONS:

A. Flash has steepish learning curve, but high payback and reusability.
[Not as tough as Zope :-) ]
B. SVG is fully open; the Flash spec is 'published' but not open in the same
way.
C. must be more but cant thing of them right now

If you are interested contact me - I have lots of useful research on this
topic.

- Jason

___
Jason Cunliffe = Nomadics['Interactive Art+Technology']


> - Original Message -
> From: "Hannu Krosing" <[EMAIL PROTECTED]>
> To: "David Nimmons" <[EMAIL PROTECTED]>

> | David Nimmons wrote:
> | >
> | > I am trying to develop a web based interface to automation equipment
> (Allen
> | > Bradley plc's in this case) to use for an operator interface. I am
using
> | > SVG to develop graphics and want to use javascript to manipulate the
> | > graphics based on data from the plc. I am looking for a way to pull
more
> | > data from the server without having to reload the page. My question is
> will
> | > XML-RPC allow this. Or does Zope have some other mechanism that would
> allow
> | > this. Thanks for any help.
> |
> | Actually this is mainly a client-side problem, on server side you have
> | total
> | freedom to serve any protocol ;)
> |
> | Often this kind of problem is solved by having twho frames and data is
> | aquired
> | by reloading the "data-page" which then manipulates the
> | "presentation-page"
> | using javascript, possibly in its onLoad method.



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

2000-11-08 Thread jpenny

On Wed, Nov 08, 2000 at 06:13:54PM -0500, Evan Simpson wrote:
> From: Jason Cunliffe <[EMAIL PROTECTED]>
> > Good news: 'ZMethod' is nice and 'sounds' good, however one says it.
> 
> I agree, but then everyone around here thought that Zopelet was fairly 
> unobjectionable, even though  nobody really *liked* it.
> 
> 
> From: <[EMAIL PROTECTED]>
> > Presumably the focus here is on newbies, not security managers.
> > No newbie will ever want to use a Restricted Python ZMethod.
> > What newbie wants to be limited/strait-jacketed/'kept from the cool stuff'?
> >
> > You are propsing a word with negative conotation for something that should
> > be prefered!  Yes, it is accurate, but that is beside the point.
> 
> The two varieties aren't competing, and we aren't trying to promote one over 
> the other.  If a newbie  is willing to put up with the risks and awkwardness 
> of the current unrestricted design simply  because they sound "cooler", we 
> don't need to stop them.  The documentation will present the  restricted type 
> first and tout their advantages, but explain clearly when and why you would 
> want to  go to the trouble of going unrestricted.

There are several objections to this paragraph.  Of course they are competing,
for mindshare if nothing else.  Newbies don't know risks.  That is much of
what makes them newbies.  And it presupposes that the documentation exists,
is obviously accessible to recent Zope converts, and is actually read before
they 'Add a Method'.  Also, with the 'Wild Snake Thingy edittable from the
Web' paradigm, there is no awkwardness with which the user must put up.

> 
> > Moreover, this also fails the concise/'easy to say' test that was
> > used to kick out several other meritorius naming suggestions.
> > Unrestricted Python ZMethod (8 syllables, 26 letters) is a
> > mouthful!
> 
> True (although some of the alternatives base names were worse).  
> Considering that there aren't (yet) > other language variants, and that 
> I would usually use the restricted kind, I would normally just say
> "ZMethod".  Only if there were some potential confusion would I say 
> "Unrestricted zmethod", or the  full title.
> 

If you must do this, at least make it 'Python ZMethod' and
'Python ZMethod - Unrestricted'.  As you have said above, the usual
method will be normally pronounced 'ZMethod', or 'Python ZMethod',
why not drop the silent Restricted?  Also, I consider it important
that the usual method appear first in the 'Add a Method' pulldown,
which the above forces.

> 
> Cheers,
> 
> Evan @ digicool & 4-am
> 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: [Image-SIG] Properly integrating PIL, reportlab, and zope

2000-11-08 Thread ed colmar


Thanks for the help everyone!

I'm a few steps closer to solving this one.  What I'm doing is pretty much a
workaround, since I can't figure out how to pass a image file directly from
within the zodb.  I have created a seperate field that gets passed to a
localFS directory.

Right now, I just need to refrence a file that is somewhere other than the
/usr/local/zope directory.

I've been trying:
c.drawInlineImage(str('/home/zope/uploadedimages/' + filename), .5*inch,
10.*inch,4*inch)

for some reason it can't find a file anywhere other than the base directory
in zope.  I cannot use this directory because it will serve as a collection
of image files.

Any ideas how to force it to look somewhere else for this file?

Thanks again!

-e-



- Original Message -
From: "Daniel Rusch" <[EMAIL PROTECTED]>
> I have no idea if this will help you. We use PIL, reportlabs and zope to
> create P.O.'s, to place a logo on the page we use the following line of
> code:
>
> c.drawInlineImage("gclogo_color.gif", .5*inch, 10.*inch,4*inch)
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] SiteAccess2: How do I suppress all when managing?

2000-11-08 Thread Aleksander Salwa

On Tue, 7 Nov 2000, Danny William Adair wrote:

> How can I suppress the URL generation in the management screens? I've seen
> the "Z" folder example but it didn't work for me. Everything is fine except
> the management interface.

This example works when you leave blank all properties in your SiteRoot
object (especially 'Path', which is '/' by default). Then you have to
generate SiteRootPATH dynamically. So your 'Set Access Rule Method'
may look like:

Is there a path, and does it start with 'Z'?

 
  Get rid of 'Z': 
  Put it back logically: 
  
 

Is the first-level domain 'hotsite.com'? Ignore sub-domains and port number.

 Add physical root: 
 
 


 



[EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/





___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 help - method needs auth > anonymous. WHY?

2000-11-08 Thread jvoth

Howdy Folks,

I'm a Zope newbie (5 days and counting).

I am trying to use this method called objectList:

 
   
 
   
 

I've put it in the standard_html_header.

When I try looking at the root page (http://john:8080) I have to provide
authentication before the page will display.

How can I alter the permissions so that an anonymous user doesn't
have to log in?

Thanks in advance!

John

-- 
/\
| John Voth   Mobiltex Data Ltd.Calgary, Alberta,Canada, T1Y-4T7 |
| [EMAIL PROTECTED] 403-291-2770, 403-259-6795 (fax)|
\/

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

2000-11-08 Thread jpenny

On Wed, Nov 08, 2000 at 05:48:22PM -0500, Jason Cunliffe wrote:
> Evan Simpson <[EMAIL PROTECTED]> wrote
> > > Safe and Flexible are probably more meaningful words there ;-)
> > >
> > > ZMethod is growing though ;-)
> >
> > We've pretty much settled on restricted/unrestricted here.  In honor of
> the presidential Indecision
> > 2000 race, we're seriously thinking about revamping and rerunning the
> poll, so ZMethod may well get
> > its moment in the spotlight.
> 
> lol
> 
> Good news: 'ZMethod' is nice and 'sounds' good, however one says it.
> 
> 'safe' / 'flexible' imho=nice ideam but a little too subjective, not
> informative enough
> 
> 'restricted' / 'unrestricted'
> 
> hmm.. better because more functional, but how about:

Yes, but drives people away from the prefered option.  (restricted is
prefered!)

> 
> 
> 1. 'closed' / 'open'

Both are equally open, especially in the new 'Wild Python Thingys are
editable via the Web' paradigm.

> 
> 2. 'builtin' / 'custom'

Both are custom.

> 
> 3. 'local' / 'custom'

???

> 
> 4. 'client-side' /  'server-side'
> 

Both are server-side.

> ???
> 
> - Jason
> 
> 
> 

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

Another possibility is to use IE on the client side and use one of the COM
interfaces to XML-RPC.

You could then use javascript/vbscript to get data as required.

hth

Phil

- Original Message -
From: "Hannu Krosing" <[EMAIL PROTECTED]>
To: "David Nimmons" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 10:16 PM
Subject: Re: [Zope] XML-RPC


| David Nimmons wrote:
| >
| > I am trying to develop a web based interface to automation equipment
(Allen
| > Bradley plc's in this case) to use for an operator interface. I am using
| > SVG to develop graphics and want to use javascript to manipulate the
| > graphics based on data from the plc. I am looking for a way to pull more
| > data from the server without having to reload the page. My question is
will
| > XML-RPC allow this. Or does Zope have some other mechanism that would
allow
| > this. Thanks for any help.
|
| Actually this is mainly a client-side problem, on server side you have
| total
| freedom to serve any protocol ;)
|
| Often this kind of problem is solved by having twho frames and data is
| aquired
| by reloading the "data-page" which then manipulates the
| "presentation-page"
| using javascript, possibly in its onLoad method.
|
| 
| Hannu
|
| ___
| Zope maillist  -  [EMAIL PROTECTED]
| http://lists.zope.org/mailman/listinfo/zope
| **   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] ZMethod (Safe)

2000-11-08 Thread Evan Simpson

From: Jason Cunliffe <[EMAIL PROTECTED]>
> Good news: 'ZMethod' is nice and 'sounds' good, however one says it.

I agree, but then everyone around here thought that Zopelet was fairly 
unobjectionable, even though
nobody really *liked* it.

> 1. 'closed' / 'open'
> 2. 'builtin' / 'custom'
> 3. 'local' / 'custom'
> 4. 'client-side' /  'server-side'

None of these characterize the fundamental difference between the two things.   One 
applies security
restrictions, the other doesn't.  Other differences, such as web-editable/zodb-stored 
vs.
filesystem-based are not fundamental.  We are contemplating unrestricted code which 
would be stored
in the zodb, and possibly remote-editable through a secure interface.

From: <[EMAIL PROTECTED]>
> Presumably the focus here is on newbies, not security managers.
> No newbie will ever want to use a Restricted Python ZMethod.
> What newbie wants to be limited/strait-jacketed/'kept from the cool stuff'?
>
> You are propsing a word with negative conotation for something that should
> be prefered!  Yes, it is accurate, but that is beside the point.

The two varieties aren't competing, and we aren't trying to promote one over the 
other.  If a newbie
is willing to put up with the risks and awkwardness of the current unrestricted design 
simply
because they sound "cooler", we don't need to stop them.  The documentation will 
present the
restricted type first and tout their advantages, but explain clearly when and why you 
would want to
go to the trouble of going unrestricted.

> Moreover, this also fails the concise/'easy to say' test that was
> used to kick out several other meritorius naming suggestions.
> Unrestricted Python ZMethod (8 syllables, 26 letters) is a
> mouthful!

True (although some of the alternatives base names were worse).  Considering that 
there aren't (yet)
other language variants, and that I would usually use the restricted kind, I would 
normally just say
"ZMethod".  Only if there were some potential confusion would I say "Unrestricted 
zmethod", or the
full title.


Cheers,

Evan @ digicool & 4-am


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

2000-11-08 Thread Simon Michael

[EMAIL PROTECTED] writes:
> Damn, I am beginning to think that Tame Snake Thingy and Wild Snake
> Thingy are the best yet!

Yeah! new poll please :)

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

2000-11-08 Thread Chris McDonough

I'm going to take a guess.  It would appear AFAICT that the ZDiscussions
product installed an object which it hung off the root object (the
application object) when it was first imported.  Maybe it was trying to make
some sort of a singleton by doing so, where the singleton was *not* a
Zope-manageable object (and thus it can't be seen or found via ZopeFind).
When the product was deleted, it did not clean up after itself properly
(specifically, it did not delete this singleton).  While I don't completely
understand the relationship between ZDiscussions and DemoPortal in this case
(I *really* don't understand why you couldn't subsequently import DemoPortal
or Wizard), I think if we dug hard enough we'd find at the bottom of it a
problem like this.

The point being that I'd bet we'd find a programming error staring at us in
this sequence of events if we looked hard enough.  Though it's tempting to
call it a "ZODB corruption" problem, if you really get down to the lower
levels, it's likely an application-level problem.

That said, I'll admit that this distinction is really pedantic when your
Zope doesn't work.  :-)  I'm glad you had the gumption to figure it out...

- Original Message -
From: "Bill Welch" <[EMAIL PROTECTED]>
To: "Chris McDonough" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 4:21 PM
Subject: Re: [Zope] Is data.fs corrupted?


> Here's my evidence. A record (OID 0) in the "Added Globals" transaction
> refers to a record (OID 57) in the "Installed product DemoPortal"
> transaction.
>
> >From tranalyzer -r
>
> TID: 33140200A4749F8 @ 69694 obs 1 len 274 (status 'p') By [Zope]
> "Added Globals"
> OID: 0 len 204
> 2, 57
>
> TID: 3374475482BCF4C @ 3697235 obs 2 len 648 (status 'p') By
> [Zope]
> "Installed product DemoPortal"
> OID: 137f len 456
> 1377, 43ed, 43f3, 4431
> 135e, 43f0, 4389, 1568
> 442e, 1565
> OID: 57 len 65
> 137f
>
> On Wed, 8 Nov 2000, Chris McDonough wrote:
>
> > Transactions are only tangentially related to this issue (I'm not sure
how
> > the "Added globals" transaction 'referred to' the "Installed product
> > DemoPortal" transaction in your example, BTW).
>
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] acessing parameters in a "helper class"

2000-11-08 Thread Max M

From: Dieter Maurer

>You may consider to provide security rules.

>There is a nice document from Brian which explains your options.

Yes there is indeed. I just hadn't noticed it before.

I have just added: "__allow_access_to_unprotected_subobjects__=1" to the
aComment class and everythings dandy. Just what the doctor ordered.

Brian also mentions in his document that a "__roles__ = None" should do the
same for the class, but it doesn't. Don't know why.

class aComment:
' '
__allow_access_to_unprotected_subobjects__=1 # This works
#__roles__= None # This doesn't

def __init__(self, comment, author):
self.comment = comment
self.author  = author

Thanks for the info

Max M

Max M. W. Rasmussen,Denmark.   New Media Director
private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Specialization is for insects.  -  Robert A. Heinlein



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

2000-11-08 Thread Jason Cunliffe

Evan Simpson <[EMAIL PROTECTED]> wrote
> > Safe and Flexible are probably more meaningful words there ;-)
> >
> > ZMethod is growing though ;-)
>
> We've pretty much settled on restricted/unrestricted here.  In honor of
the presidential Indecision
> 2000 race, we're seriously thinking about revamping and rerunning the
poll, so ZMethod may well get
> its moment in the spotlight.

lol

Good news: 'ZMethod' is nice and 'sounds' good, however one says it.

'safe' / 'flexible' imho=nice ideam but a little too subjective, not
informative enough

'restricted' / 'unrestricted'

hmm.. better because more functional, but how about:


1. 'closed' / 'open'

2. 'builtin' / 'custom'

3. 'local' / 'custom'

4. 'client-side' /  'server-side'

???

- Jason




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

2000-11-08 Thread Daniel Dittmar


There isn't one yet, although it is on my private list. It will be
difficult to make it run on Linux, though, because

- a SAP DB client connection isn't allowed to be taken across a fork ()
(otherwise two process could use the same connection)
- Linux assigns new process ids to threads, so a SAP DB client believes
there was a fork () when there was only a change of thread (anyone got a
solution to that one?)
- you could try the ODBC DA, but I hadn't much luck with that one

Daniel Dittmar


"Jonathan (ListServ Account)" wrote:
> 
> Hi all,
> 
> Will be testing it myself shortly, but has anyone already hooked up Zope to
> SAP DB? It has been open sourced recently, and there are Python interfaces
> available (as well as Perl, JDBC, PHP, ODBC and C/C++). For those who are
> not familiar with it: it's a high end database used for example with SAP
> R/3 and has its roots in ADABAS D.
> 
> Check it out:
> http://www.sap-ag.de/solutions/technology/sapdb/index.htm
>

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

David Nimmons wrote:
> 
> I am trying to develop a web based interface to automation equipment (Allen
> Bradley plc's in this case) to use for an operator interface. I am using
> SVG to develop graphics and want to use javascript to manipulate the
> graphics based on data from the plc. I am looking for a way to pull more
> data from the server without having to reload the page. My question is will
> XML-RPC allow this. Or does Zope have some other mechanism that would allow
> this. Thanks for any help.

Actually this is mainly a client-side problem, on server side you have
total 
freedom to serve any protocol ;)

Often this kind of problem is solved by having twho frames and data is
aquired 
by reloading the "data-page" which then manipulates the
"presentation-page" 
using javascript, possibly in its onLoad method.


Hannu

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

2000-11-08 Thread jpenny

On Wed, Nov 08, 2000 at 01:12:12PM -0500, Evan Simpson wrote:
> From: Chris Withers <[EMAIL PROTECTED]>
> > [EMAIL PROTECTED] wrote:
> > >
> > > Now, how about internal/external?
> >
> > Safe and Flexible are probably more meaningful words there ;-)
> >
> > ZMethod is growing though ;-)
> 
> We've pretty much settled on restricted/unrestricted here.  In honor of the 
>presidential Indecision
> 2000 race, we're seriously thinking about revamping and rerunning the poll, so 
>ZMethod may well get
> its moment in the spotlight.
> 
> Cheers,

Well, you guys are the Zen Masters of Zope.  But, I am going to give one
more attempt at explaining why this decision is lacking in enlightenment.

The presumed audience of the terminology is newbies, not security managers.
We want everyone, but newbies in particular, to use the restricted method
whenever possible.  But no newbie wants to be restricted/strait-jacketed/
'kept from the cool stuff'.

You are proposing a term with negative conotations for the option that
we want people to prefer!  

Moreover, some meritorious suggestions for names were overruled for being
too long, or hard to say.   Unrestricted/Restricted fail this criterium
also.  Unrestricted Zope ZMethod (8 syllables, 26 letters) is quite a 
mouth full.

I understand your reluctance for Safe, with its immediate antonym Unsafe.

But, please find a positive term for the Restricted version.  Perhaps
Ordinary/Power, ''/Power, Ordinary/Super, ''/Super, Muggle/Wizard.

[If you use Super, the documentation can begin:
Stronger than a locomotive, able to leap strong buildings at a single
bound, able to import any module, able to escape for a secure lockbox, 
a method with Super powers.  But don't unleash this method without
understanding it fully!]

Damn, I am beginning to think that Tame Snake Thingy and Wild Snake
Thingy are the best yet!

Hoping this increases satori.

Jim


> 
> Evan @ digicool & 4-am
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Zope Book (Error and Suggestion)

2000-11-08 Thread The Doctor What

At least I think it's an error (either in my understanding or in the
book).

First off, I think the books great. Finally something that's trying
to explain what's going on.  Zope looks so cool, but it's been hard
for a hardcode PHP and Perl programmer like me to get my brain around it.

Anyway, my suggestion is that all the image URLs be fixed so that
your book can be easily mirrored with normal web-tools.  Perhaps
even offer a version that's downloadable.  When I went to mirror it,
my mirror software choked on image urls like:
http://www.zope.org/Members/michel/ZB/SimpleExamples.html/Figures/5-7.png

The mirror was so I can use it at home where I don't have a
reasonable net access (very flaky 56k, it hoses up frequently as
it's through work).

The error or problem that I have run into is that I can't get the
Guest Book in chapter 5 to work.  They python method listed there
does not work for me.  I'm using Debian Unstable (Woody) with these
versions of packages:
ii  zope   2.2.2-3The Z Object Publishing Environment
ii  zope-bytecodeh 0.1.7-2Rewrite bytecode of functions to do unlikely
ii  zope-pythonmet 0.1.7-2Allows ZopeMethods to be written in plain Py

That's bytecodehacks and pythonmethods on the bottom there.

The error message is:
Error Type: NameError
Error Value: context

I have no idea how to fix this, so I'm asking here.

Ciao!

-- 
When you say 'I wrote a program that crashed Windows', people just stare at you 
blankly and say 'Hey, I got those with the system, *for free*'.
-- Linus Torvalds

The Doctor What: Not that 'who' guy  http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

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

2000-11-08 Thread Kathy Hester

Hi,

Has anyone used this before? I am a newbie and would
like to play 
around with it. I have the how-to docs. But my problem
starts at the 
download! 

When I try to open it with winzip I get this error:
“Error
reading header after processing 0 entries”. I have
successfully untared other files with winzip. I have
dowmloaded it 4 times to make sure it wasn’t just
corrupted. Is there another place that I can download
it?

Also any tips on install/use are welcomed!

Thank you.

=
Kathy Hester

to feel powerful often
to act powerful sometimes
to overpower others seldom
to share power whenever possible
-  unknown

__
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
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] How do I logout?

2000-11-08 Thread The Doctor What

* Ender ([EMAIL PROTECTED]) [001104 18:04]:
> I don't know if there is an elegant way to do this.
> 
> if i'm the superuser i just try to find a junk method (The QuickStart
> Tutorial does nicely) and change the text to include the following. (if
> i'm another user it the same thing applies but i generally create a
> logout method._

What is a 'logout method._'?  Is that a "DTML Method" named logout?
Is the '_' a typo?  You mention method above, but I'm just making
sure we're talking about the same thing. :)

> 
>   Log Me out Scotty
> 
> 

Thanks for the help.

Ciao!

-- 
Chemist who falls in acid is absorbed in work.

The Doctor What: Un-Humble   http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Can't get to work in a sub-folder.

2000-11-08 Thread jvoth


Howdy Folks,

I'm trying to make use of the  gizmo and it only works in 
the root directory.

I'm trying to create a dynamic navigation display so users can click
their way through the sub-directories of files. Kind of a 
"Zope Explorer".

Any ideas? I've been playing with the security bits on various 
directories without success.

Thanks in advance.

John
/\
| John Voth   Mobiltex Data Ltd.Calgary, Alberta,Canada, T1Y-4T7 |
| [EMAIL PROTECTED] 403-291-2770, 403-259-6795 (fax)|
\/

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Problen wtih dtml-in inside Zsql method

2000-11-08 Thread Dieter Maurer

Alejandro Pancani writes:
 >  The problem is that when I execute the Zsql
 > method 'sql_2' it seems to execute the sql_select_next_val method two times
 > because at the next time that I execute 'sql_2'  the value returned from
 > sql_select_next_val is incremented in 2 in comparison with last value
 > returned. I need it to be incremented in 1.
 > 
 > 
 > 
 > the code of  sql_select_nextval method is the following:
 > 
 >  SELECT seq.NEXTVAL  val
 >FROM DUAL
 > 
 > 
 > the code of sql_2  method is the following:
 > 
 > 
 > 
 > insert into anytable
 > (oid_anytable, name)
 > values
 >  (,
 >   'john')
 > 
 >
 > 
 > select * from anytable  where oid_anytable  = 
 > 
 > 
Try to remove the "..." around "sql_select_nextval".
I do not understand why your code with the "..." works at all.

If this does not solve your problem, you may try:

   insert  into anytable (oid_anytable, name)
  values (seq.NEXTVAL,'john')

   
   select * from anytable where oid_anytable = seq.CURVAL

That's the code, we use successfully ('CURVAL' may be wrongly spelled,
though).


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] acessing parameters in a "helper class"

2000-11-08 Thread Dieter Maurer

Max M writes:
 > 
 > 
 > 
 > .
 > Traceback:
 > 
 > Unauthorized: author
 >
 > 
 > def addComment(self, comment='', author='' , RESPONSE=None):
 > "Adds a comment"
 > self.comments.append(aComment(comment, author))
 > self._p_changed = 1 # Trigger persistence
 > RESPONSE.redirect('index_html')
 > 
 > def getAllComments(self):
 > "returns a list of all comments"
 > return self.comments

Your "getAllComments" returns a list of bare (unwrapped) 
objects. This removes any possibility to acquire permissions.
You should probably rewrite you "getAllComments" like this:

def getAllComments(self):
"returns a list of all comments"
r= []
for c in self.comments:
r.append(r.__of__(self))

This would require that "aComment" inherits from
"Acquisition.Implicit" (or "Explicit").

Furthermore, your "aComment" does not specify any security
rules. With the news Zope 2.2 security policy, this means
access is prohibited.
You may consider to provide security rules.

There is a nice document from Brian which explains your options.


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: tags for export & import

2000-11-08 Thread Dieter Maurer

jacintha menezes writes:
 >Kindly give dtml tags or python module for doing import & export in
 > zope.Since i am not able to send the query output as an attachment with zope
 > mail facility i am thinking of
 > using import & export.
You *ARE* able to send any output as an attachment with zope's
sendmail. Did you look at the examples for "/"
(I think, there are some in the upcoming Zope book).
You will probably see there a "" example.
But you can use any dtml code to define the body of the attachment.
You may need to take care about leading whitespace (to be avoided)
and about the empty line separating attachment header from
attachment body (to be provided).


For your import and export question:
  I am too lazy to look these functions up for you in the API
  documentation (it comes online with your Zope 2.2 installation).
  These are methods of the "ObjectManager", probably named
  "manage_import/manage_export" or something like this.


As a general hint:
  Whatever can be done via the management interface can be done
  programmatically *AND* you can learn how by looking at the
  source of the respective form. These sources are
  files with the extension ".dtml" that reside in subfolders
  of "lib/python".


I am surprised that "import/export" should be able to emulate
mailing. But this is of minor importance.


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: How about create another method other than index_html to get content in OFS::File?

2000-11-08 Thread Dieter Maurer

iap_y2fun.com writes:
 > My problem is that : I have a ZClass based on OFS::File.
 > I need to override the default index_html for my own purpose.
 > After I created my own index_html, I found myself can't access the content
 > of that object.
 > Since:
 > 1. I have no way to access the original method index_html of the base class
I, too, would wish that ZClasses provide access to overwritten
methods (as Python does).

 > 2. In OFS::File, There is no other method than index_html to access the
 > content of this object.
 > That's why I modify Image.py and add one line:
 > getContent=index_html
 > It's work for me.
For file objects, you can use "str(data)".

It won't work with images, though.



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] XMLRPC accessing Zope DTML/SQL methods

2000-11-08 Thread Dieter Maurer

Mayers, Philip J writes:
 > def extmethod(self, REQUEST):
 >  return str(REQUEST)
 > 
 > >From the web that prints the string Representation of REQUEST. But, over
 > XMLRPC, this:
 > 
 > s=xmlrpblib.Server("http://server.name/Zope/path/")
 > s.path.extmethod()
 > 
 > Returns the string representation of REQUEST, but *this*
 > 
 > s.path.extmethod('rrr')
 > 
 > return 'rrr'. What's happening?
That's the ZPublisher magic:

  it tries to match the requirements of the called object
  with what is provided by the request.

  In your first example, you did not provide a parameter,
  but your function requires one. ZPublisher determined
  the "REQUEST" object as candidate based on the parameters
  name.

  In your second example, you did provide a parameter.
  ZPublisher used this positional parameter to satisfy
  the first positional parameter of your function.

  Thus, if your function requires two parameters: say
  'text' and 'REQUEST', your second example would
  behave as your first now does.


There is a document on zope.org that describes this
ZPublisher magic in more detail.
But maybe, you already know enough to fulfill your
requirements.


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] Cloning a ZClass-Instance

2000-11-08 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
 > Thank you Dieter for your reply,
 > but yout suggestion doesn't solve the problem.
Sad to hear.

 > This is the traceback:
 > "The object 973677459 does not support this operation "
 > This means to me that x is an instance.
I agree.
Though, your news items have strange id's.

 > That's my script->
 > 
 > 
 > 
 > 
 >   
You should not enclose "REQUEST" with "[...]", though this
is *NOT* your current problem.

I looked at the code of "OFS.CopySupport.manage_clone"
and apparently, one of your "news" items (the one with
id '973677459') lets its "cb_isCopyable" return false.
Unfortunately, I have no idea why.



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] Is data.fs corrupted?

2000-11-08 Thread Bill Welch

Here's my evidence. A record (OID 0) in the "Added Globals" transaction
refers to a record (OID 57) in the "Installed product DemoPortal"
transaction.

>From tranalyzer -r

TID: 33140200A4749F8 @ 69694 obs 1 len 274 (status 'p') By [Zope]
"Added Globals"
OID: 0 len 204
2, 57

TID: 3374475482BCF4C @ 3697235 obs 2 len 648 (status 'p') By
[Zope]
"Installed product DemoPortal"
OID: 137f len 456
1377, 43ed, 43f3, 4431
135e, 43f0, 4389, 1568
442e, 1565
OID: 57 len 65
137f

On Wed, 8 Nov 2000, Chris McDonough wrote:

> Transactions are only tangentially related to this issue (I'm not sure how
> the "Added globals" transaction 'referred to' the "Installed product
> DemoPortal" transaction in your example, BTW).


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

2000-11-08 Thread David Nimmons

I am trying to develop a web based interface to automation equipment (Allen
Bradley plc's in this case) to use for an operator interface. I am using
SVG to develop graphics and want to use javascript to manipulate the
graphics based on data from the plc. I am looking for a way to pull more
data from the server without having to reload the page. My question is will
XML-RPC allow this. Or does Zope have some other mechanism that would allow
this. Thanks for any help.


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

2000-11-08 Thread James Sintz

I want to use the Calendar Tag product to display the subject of my daily
newsletters (newsletter archive), but there are no examples of how to
display anything other than propval stuff. I would like the calendar to show
the subject for each day and link to the newsletter but only show
newsletters prior to or equal to today's date (I create most of them weeks
in advance).

The newsletters are created with a zclass and have a subject, goLiveDate and
body fields.

Anyone have example of how to do something like this?

Thanks!!

Jamey

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

2000-11-08 Thread Chris McDonough

I can see your point, but it's not quite correct to call this "ZODB
corruption".  This was (and is) related to a Zope programming error.
Perhaps ZDiscussion.zexp does some funky things in instance space on an
import that it shouldn't do.  I imagine if we unraveled this far enough that
we could pick the error out (not going to try :-).

I'd argue that the ZODB is a very independent component of Zope, and it
shouldn't be blamed for this.  Devil's advocate question:  if your Perl
application failed because it couldn't find a record in an Oracle database,
would you immediately chalk this up to database corruption and Oracle?

We do clearly need to work on Zope tools to make it easier to find and clear
"orphaned" instances in the ZODB.  We should also try to weed out the
programming errors which cause interdependencies of seemingly unrelated
components of the same Zope instance that cause failures like this.
Transactions are only tangentially related to this issue (I'm not sure how
the "Added globals" transaction 'referred to' the "Installed product
DemoPortal" transaction in your example, BTW).

BTW, I'm being sort of pedantic because when people hear "ZODB" and
"corruption" in the same sentence, they tend to get scared and think of ZODB
as "unstable" which is really not the case... most purported "ZODB
corruption" issues are caused by programming errors in Products.  This has
been the case for at least every one but one (the >2G pointer bug) that I've
personally seen.

- Original Message -
From: "Bill Welch" <[EMAIL PROTECTED]>
To: "Chris McDonough" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 2:59 PM
Subject: Re: [Zope] Is data.fs corrupted?


> In my case, I couldn't import DemoPortal.zexp or Wizard.zexp from PTK
> because oid 1377 was already in use. The pickle dump that followed
> contained references to ZDiscussions, which I had deleted some time
> before.
>
> After deleting the offending products and their directories, restarting
> zope, and packing, I ran tranalyzer -r on my problem Data.fs. I found that
> the problem oid was in this transaction:
>
> "/Control_Panel/Products/manage_importObject
>
> import into /var/lib/zope/var/Data.fs from
> /var/lib/zope/import/ZDiscussions.zexp"
>
> referred to by this transaction:
>
> "Installed product DemoPortal"
>
> in turn, referred to by this tranaction:
>
> "Added Globals"
>
> I think ZODB corruption when I see a record in one product refer to
> a record in an independent product and when the transaction of a deleted
> product doesn't go away.
>
> On Wed, 8 Nov 2000, Chris McDonough wrote:
>
> > > I think it is ZODB corruption.
> >
> > This is very unlikely.  What makes you think this?
>
>
>


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

2000-11-08 Thread Vincent - D. Ertner

Hi folks,

first of all I'd like to apologize for crossposting this message. I'm
well aware of the fact that this isn't they way it should be done, but
I considered this the probably most promising alternative. Enough
about this.

I want to setup a major database project. It is supposed to cover the
administration (entering, changing, deleting) of recordsets, as well
als a search engine (resultspace narrowed by several different
criteria chosen from a form) ending up in resultlists and detailed
views of the recordsets.

I started with PHP (LAMP) and then came across Zope. Zope impresses me
and I like the simple concept of PHP.

There I am now considering the pros and cons ... and then a thought
stroke my mind: Why not ask the pros professionals?

So I finally decided to create this awful crossposting ... so: Are
there any pros who already dealt with a similar matter?

Any detailed information on how and *why* one or the other solution
rulez would be highly appreciated and helpful, as I have to argue the
decision for one or the other system with the initiators of the
project.

Thanx for reading a lot, hope hearing from u pals soon ...

Cheers,

Vince

 '''
 ô¿ô
  -



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

2000-11-08 Thread Bill Welch

In my case, I couldn't import DemoPortal.zexp or Wizard.zexp from PTK
because oid 1377 was already in use. The pickle dump that followed
contained references to ZDiscussions, which I had deleted some time
before.

After deleting the offending products and their directories, restarting
zope, and packing, I ran tranalyzer -r on my problem Data.fs. I found that
the problem oid was in this transaction:

"/Control_Panel/Products/manage_importObject

import into /var/lib/zope/var/Data.fs from
/var/lib/zope/import/ZDiscussions.zexp"

referred to by this transaction:

"Installed product DemoPortal"

in turn, referred to by this tranaction:

"Added Globals"

I think ZODB corruption when I see a record in one product refer to
a record in an independent product and when the transaction of a deleted
product doesn't go away.

On Wed, 8 Nov 2000, Chris McDonough wrote:

> > I think it is ZODB corruption.
> 
> This is very unlikely.  What makes you think this?



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Second Try: Zope FTP tunneled through SSH1

2000-11-08 Thread Rob Miller

Nobody picked up at all on my first post of this question, so I'm hoping 
I have better luck this time.  Does anyone out there even have any leads 
for me in this situation?  Here's the repost:

I'm trying to tunnel FTP connections to a Zope server through SSH1 to
ensure that passwords don't get sent in the clear.  (I know the session
will still be unencrypted; that's okay for now.)  I've followed the
instructions for doing so that are available at
http://www.employees.org/~satch/ssh/faq/ssh-faq-5.html#ss5.6, and doing
so I can successfully create an FTP session through an SSH tunnel.  The
problem is, once I've logged in, Zope won't let me do anything.  It
responds to every valid command with a single word: 'Unauthorized.'  I 
know I'm connected to the server, because 'cd'ing into a nonexistent 
directory gives me a 'No Such Directory' response, byt 'cd'ing into a 
valid directory gives me th 'Unauthorized' response.  If I connect 
directly to the FTP server using the same login and password,
all works well.

If this can't work, does anyone have Zope FTP server connections being 
tunneled through an encryption layer?  I'd really like my developers to 
be able to use their favorite editor with an FTP connection, but I 
really don't want management-capable passwords flying around in the clear.

Thanks for your time and assistance,

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] Re: Re[4]: [Zope] Is data.fs corrupted?

2000-11-08 Thread Chris McDonough

Hi Alexander,

I am going to take this back to the Zope list...

Have you examined the STUPID_LOG_FILE?  It seems you're showing us the error
from an interactive session, but there should be more information in the log
file.  It seems you've narrowed this down in some fashion to Yihaw.  How did
you do that, what brought you to that conclusion?  What class does the
pickled data in the "could not load oid" traceback seem to be an instance of
(as per STUPID_LOG_FILE)?

- Original Message -
From: "Alexander Chelnokov" <[EMAIL PROTECTED]>
To: "Chris McDonough" <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 1:43 PM
Subject: Re[4]: [Zope] Is data.fs corrupted?


Hello Chris,

Wednesday, November 08, 2000, 11:23:44 PM, you wrote:

CM> Your ZODB isn't corrupted... it's a configuration issue.  You've deleted
a
CM> class without deleting all of its instances from the ZODB, most likely.

I definitely didn't do that. And for example Yihaw directory is
present in Products directory and all its class are. I can add any
object form Yihaw family and while i in the same session all is
working like a charm. But if i close the browser, next attempt to
access the object from another session shows the broken object.

CM>   You can probably figure out which classes they are, reinstall the
products

I failed to reintstall the products - the error message was in my
previous message. I tried to do this over existing product and after
its removal with the same result. Looks like some parts of a deleted
product persist in ZODB.

CM> they come from, and delete their instances, thereby making the errors go

I just removed Yihaw, packed the database and tried to import it again
and got the same error...

Error Type: Could not load oid =², pickled data in traceback info may
contain clues
Error Value: None




--
Best regards,
Alexander N. Chelnokov
Ural Scientific Institute of Traumatology and Orthopaedics
7, Bankovsky str. Ekaterinburg 620014 Russia
ICQ: 25640913





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

2000-11-08 Thread Chris McDonough


- Original Message - 
From: "Bill Welch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 1:58 PM
Subject: Re: [Zope] Is data.fs corrupted?


> I think it is ZODB corruption.

This is very unlikely.  What makes you think this?




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

2000-11-08 Thread Darcy Clark

Alexander,

we encountered a similar error (i.e. Could not load oid + broken 
products etc) a while back on our install of 2.1.6 on Windows. We 
first tried deleting all products gradually in the hope that we could 
trace which one of them had caused the 'corruption', but to no avail. 
The error would not go away even after we had essentially deleted 
everything from the Zope installation other than the basic products. 
The only way we solved the problem was by upgrading to 2.2.2 and then 
manually importing all products and content into the new Zope 
installation :( If I am not mistaken this problem has been reported 
several times to this list with essentially the same reported 
symptoms.

Darcy

--- In [EMAIL PROTECTED], Alexander Chelnokov <[EMAIL PROTECTED]> wrote:
> Hello All,
> 
> After a linux machine crash or cold restart something strange is 
going
> on with Zope (2.2.2) - all objects built on ZClass-based products 
like
> Yihaw or QSurvey are broken. Products are in Product folder, and i
> even can add an object and it works, but when i try to access it in 
a
> new browser window it reports
> ==
> This object is broken because the unknown product that created it is
> no longer installed or is installed incorrectly. Please contact your
> product vendor for assistance.  
> Note that the data associated with this product has not been lost, 
and
> will be accessible again if the product is reinstalled.
> ==
> 
> Well, i removed QSurvey and tried to re-install its current 
version -
> something goes wrong again:
> 
> ==
> Zope Error
> Zope has encountered an error while publishing this resource. 
> 
> Error Type: Could not load oid ={, pickled data in traceback info 
may
> contain clues
> Error Value: None
> ==
> 
> Is there any way to fix ZODB less radical than complete reinstall?
> 
> -- 
> Best regards,
> Alexander N. Chelnokov
> Ural Scientific Institute of Traumatology and Orthopaedics
> 7, Bankovsky str. Ekaterinburg 620014 Russia
> ICQ: 25640913  
> 
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Tar Ball with all Zope-Howtos

2000-11-08 Thread Morten W. Petersen

[Manuel Gutierrez Algaba]


| BTW, what means things like " _.method()"

It's a way to access 'restricted functionality'.  See the documentation
for more information..

| In pure python the "_" has not special sense, what object is "_" ?

Actually, the "_" has a special meaning in interactive python (useful
if you fancy the interpreter as a calculator!):

"""
Python 1.5.2 (#2, Aug 23 2000, 22:10:15)  [GCC egcs-2.91.66 19990314/Linux (egcs- on 
linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> 123*123
15129
>>> _
15129
>>> _ * _
228886641
>>>
"""

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 )




[Zope] Product removal stress: a plea for help

2000-11-08 Thread seb bacon

If anyone can shed some light on this it would be a great help to the
newbies out here.  Perhaps I could even do a HOWTO, and lighten the load on the list 
considerably ;)

I don't have a solution to Alexander's problem quoted below, but it's one I keep 
hitting and
one that is frequently asked on this list.  In fact it's one I recently
asked for more info on, to no avail.  So I thought I'd add my
voice to the clamour.

Deleting products seems to be a very risky business in Zope.  Things
apparently get left behind in the ZOBD which shouldn't be there.  If I
delete a product that was used at some point elsewhere, I don't just get
broken objects, I get pickled data streaming out of my Zope most of the
time.  Today I had an interesting one: I thought I had cleaned
up thoroughly after an unwanted product, and I was getting no error
messages and no pickled junk on stderr.  The only thing I couldn't do is
add ZClasses, for which I got the error message quoted by Alexander
below (could not load object oid=[random character]).

Please, can any Master Zopician give an explanation:
1) what causes this kind of error?
2) how do you debug it?
3) how do you fix your Data.fs?

Thanks!  Seb.

* Alexander Chelnokov <[EMAIL PROTECTED]> [001108 18:21]:
> Hello All,
> 
> After a linux machine crash or cold restart something strange is going
> on with Zope (2.2.2) - all objects built on ZClass-based products like
> Yihaw or QSurvey are broken. Products are in Product folder, and i
> even can add an object and it works, but when i try to access it in a
> new browser window it reports
> ==
> This object is broken because the unknown product that created it is
> no longer installed or is installed incorrectly. Please contact your
> product vendor for assistance.  
> Note that the data associated with this product has not been lost, and
> will be accessible again if the product is reinstalled.
> ==
> 
> Well, i removed QSurvey and tried to re-install its current version -
> something goes wrong again:
> 
> ==
> Zope Error
> Zope has encountered an error while publishing this resource. 
> 
> Error Type: Could not load oid ={, pickled data in traceback info may
> contain clues
> Error Value: None
> ==
> 
> Is there any way to fix ZODB less radical than complete reinstall?
> 
> -- 
> Best regards,
> Alexander N. Chelnokov
> Ural Scientific Institute of Traumatology and Orthopaedics
> 7, Bankovsky str. Ekaterinburg 620014 Russia
> ICQ: 25640913  
> 
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Is data.fs corrupted?

2000-11-08 Thread Bill Welch

I think it is ZODB corruption. See my post of a couple of weeks ago for
suggestions for recovery.

This the fourth example of ZClass related DB corruption that I've seen in
the past six weeks. In my own brush with this, it seemed to be triggered
by uninstalling and reinstalling products.

Bill.

On Wed, 8 Nov 2000, Chris McDonough wrote:

> In your start script, set the STUPID_LOG_FILE environment variable to the
> path of a file to which you want log messages to be sent (before 'start'
> calls z2.py).  Then review the log file.  You'll probably get more clues as
> to what is going wrong, allowing you to fix the problem.
> 

> > Error Type: Could not load oid ={, pickled data in traceback info may
> > contain clues
> > Error Value: None


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

2000-11-08 Thread Wolfgang Strobl

On 8 Nov 2000, 15:54  Júlio Dinis Silva wrote:

> Does anyone has a Catalog with more than 1500 items catalogued?
> If yes does anyone can do searches to this Catalog in a
> resonable time without freezing ZServer until it ends?

I did some experiments over the weekend, for example cataloging 
about ten thousand news messages into a catalog in one step.

Searching isn't the problem (this is quite fast) - cataloging is. This 
takes a lot of time and a lot of memory.

-- 
Wolfgang Strobl


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

2000-11-08 Thread Manuel Gutierrez Algaba

Is there such a best ?

I email zope admin and he kindly pointed me to a site where
I could download a .pdf with all Howtos.

Is there the _real_ .tar.gz ?

Thanks zope admin and thank you guys. 

BTW, what means things like " _.method()"
In pure python the "_" has not special sense, what object is "_" ?

-- 
Regards/Saludos
Manolo
www.ctv.es/USERS/irmina/TeEncontreX.html   /texpython.htm
/pyttex.htm /cruo/cruolinux.htm ICQ:77697936 (sirve el ICQ para algo?)

 


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

2000-11-08 Thread Evan Simpson

From: Chris Withers <[EMAIL PROTECTED]>
> [EMAIL PROTECTED] wrote:
> >
> > Now, how about internal/external?
>
> Safe and Flexible are probably more meaningful words there ;-)
>
> ZMethod is growing though ;-)

We've pretty much settled on restricted/unrestricted here.  In honor of the 
presidential Indecision
2000 race, we're seriously thinking about revamping and rerunning the poll, so ZMethod 
may well get
its moment in the spotlight.

Cheers,

Evan @ digicool & 4-am


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

2000-11-08 Thread Andy McKay

Anyone seen a product to track jobs, similar to a bug tracking product
(Collector, Itrack etc) but more focused on resources, timelines, completion
rate etc...? Had a look on Zope.org and managed to miss it if there is one.

TIA

--
  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] Is data.fs corrupted?

2000-11-08 Thread Chris McDonough

In your start script, set the STUPID_LOG_FILE environment variable to the
path of a file to which you want log messages to be sent (before 'start'
calls z2.py).  Then review the log file.  You'll probably get more clues as
to what is going wrong, allowing you to fix the problem.

- Original Message -
From: "Alexander Chelnokov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 12:41 PM
Subject: [Zope] Is data.fs corrupted?


> Hello All,
>
> After a linux machine crash or cold restart something strange is going
> on with Zope (2.2.2) - all objects built on ZClass-based products like
> Yihaw or QSurvey are broken. Products are in Product folder, and i
> even can add an object and it works, but when i try to access it in a
> new browser window it reports
> ==
> This object is broken because the unknown product that created it is
> no longer installed or is installed incorrectly. Please contact your
> product vendor for assistance.
> Note that the data associated with this product has not been lost, and
> will be accessible again if the product is reinstalled.
> ==
>
> Well, i removed QSurvey and tried to re-install its current version -
> something goes wrong again:
>
> ==
> Zope Error
> Zope has encountered an error while publishing this resource.
>
> Error Type: Could not load oid ={, pickled data in traceback info may
> contain clues
> Error Value: None
> ==
>
> Is there any way to fix ZODB less radical than complete reinstall?
>
> --
> Best regards,
> Alexander N. Chelnokov
> Ural Scientific Institute of Traumatology and Orthopaedics
> 7, Bankovsky str. Ekaterinburg 620014 Russia
> ICQ: 25640913
>
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] FW: [Zope] adding properties to all existing docs

2000-11-08 Thread michael angelo ruberto



hi Dieter,

thanks for the advice. i have written a small DTML script which i plan to
call from the standard html header so that the intranet users will
unknowingly populate the docs as they browse. saves me from doing it
manually unless there are file objects in the folder. here is the script:





properties are added in the unless below.
to add additional properties to this script repeat the unless block
for each new property and change the id and type to what you
want to add.










to run the script give it manager role and call the method in the URL or
with a  tag. you can select the types of objects it "sees" in the
first line. please let me know if there is some flaw in doing it this way.

take care

--

ps: i tried to make a python method for this but couldn't figure out how to
handle the objects properly.

-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 05, 2000 12:49 PM
To: michael angelo ruberto
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] adding properties to all existing docs


michael angelo ruberto writes:
 > i have a Zope containing 4700+ files and documents. i want to add new
 > properties to all of them, how can i do this programmatically? is it
 > possible to change the base classes? if so, how?
It is possible to change the base class but I would not do it
(as it affects all Zope objects and your change is likely
to disappear when you upgrade).

You can automate Zope either internally or externally.

  Internally (via a method (DTML or Python)) you would
  use ZopeFind to list all objects that need to be
  updated and then iterate (dtml-in) over the objects
  to update.

  Externally, you would use "ZPublisher.ZClient".


I would go for the internal solution.


Dieter


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




[Zope] Is data.fs corrupted?

2000-11-08 Thread Alexander Chelnokov

Hello All,

After a linux machine crash or cold restart something strange is going
on with Zope (2.2.2) - all objects built on ZClass-based products like
Yihaw or QSurvey are broken. Products are in Product folder, and i
even can add an object and it works, but when i try to access it in a
new browser window it reports
==
This object is broken because the unknown product that created it is
no longer installed or is installed incorrectly. Please contact your
product vendor for assistance.  
Note that the data associated with this product has not been lost, and
will be accessible again if the product is reinstalled.
==

Well, i removed QSurvey and tried to re-install its current version -
something goes wrong again:

==
Zope Error
Zope has encountered an error while publishing this resource. 

Error Type: Could not load oid ={, pickled data in traceback info may
contain clues
Error Value: None
==

Is there any way to fix ZODB less radical than complete reinstall?

-- 
Best regards,
Alexander N. Chelnokov
Ural Scientific Institute of Traumatology and Orthopaedics
7, Bankovsky str. Ekaterinburg 620014 Russia
ICQ: 25640913  



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Pre-newbie question: how to implement this app?

2000-11-08 Thread Don Dwiggins

I'm calling this a "pre-newbie" question because I'm not running Zope yet,
although I've been looking into it for some time, and have recently started
reading in earnest.  

I have an application that I think would be a good initial app for getting
into Zope, and I'd like some advice on how to go about it.  It's a basic
task list management system for a small group of developers, and it has the
following characteristics:
- There are two main entities: Task and Person.  The relationship between
  them is many-to-many (a person may be assigned to multiple tasks, a task
  may have multiple people assigned).
- There will be a relatively small number of tasks and people.
- Tasks will be added, removed, and modified frequently; people less so.
- When a task or person is removed, integrity should be maintained by
  removing assignments involving the removed entity.
- I'll start with a couple of basic views that let people see the tasks,
  their status, assignments, priorities, etc.  Later, there'll probably be
  more.
- I want to be able to add attributes to both entities at will.
- Initially, I'll be maintaining the list, but I'd like to add the
  capability for people to sign up for tasks, and to change the status of
  tasks they're assigned to.
- Security isn't an issue here, but avoiding blunders is.

Questions:
- What are the pros and cons of storing the entities in the ZODB vs. a
  relational DB?
- How best to represent the many-to-many relationship?  (Usually, in a
  relational DB, I'd use a relationship table such as PersonTaskAssignment.)
  In particular, how does Zope handle references between independent
  objects?
- What Zope products should I consider using to aid in the implementation?
- Is there already an app like this that I could adapt?

Thanks for any good words you can offer,

Don Dwiggins
Competitive Knowledge, Inc.


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

2000-11-08 Thread Chris Withers

[EMAIL PROTECTED] wrote:
> 
> On Wed, Nov 08, 2000 at 05:08:13PM +0100, Oliver Bleutgen wrote:
> > > Hamish Lawson <[EMAIL PROTECTED]> wrote
> >
> > > Python Zope Method
> > > Perl Zope Method
> > > SQL Zope Method
> > > DTML Zope Method
> > > Rebol Zope Method
> > > Java Zope Method
> > > VB Zope Method
> > > Custom Zope Mthod
> > > etc..
> >
> > and perhaps let "Zope Method" become a "ZMethod", a bit shorter.
> 
> A winner by acclamation!
> 
> Now, how about internal/external?

Safe and Flexible are probably more meaningful words there ;-)

ZMethod is growing though ;-)

how about:

Python ZMethod (Safe)
Python ZMethod (Flexible)

:-)

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] Python ZMethod (was Python Zope Method as option for renamed Python Method?)

2000-11-08 Thread Hamish Lawson

I suggested the term Zope Method for anything Zope regards as a method,
giving Python Zope Method, Perl Zope Method, DTML Zope Method, SQL Zope
Method, etc. But Chris Withers thought those to be too long and
unwieldy. OK, what about ZMethod? Thus Python ZMethod, Perl ZMethod,
DTML ZMethod, SQL ZMethod. I was quite favourably disposed toward
Operation, but I wanted to keep 'method' somehow as it I felt it better
brought out the acquisition aspect.

Hamish



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] String to Object

2000-11-08 Thread Chris Withers

"Leichtman, David J" wrote:
> 
> Does anyone now how I might take a string and turn it into an object
> reference in DTML?
> 
> By that, I mean, I want to take a string like: 'object.subobject.subobject'
> from a database,
> and I want to reference it as .
> I think this is a simple, straightforward thing, but I've been wracking my
> brain over it.

Well, your eample will work just fine with some quotes and a bit of fun:



but only because . is the seperator is python object syntax...

cheers,

Chris

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




RE: [Zope] Can't delete products

2000-11-08 Thread Max M

From: Stephan Goeldi

>Is it save to simply delete a folder in Products?

Well that depends on what folder it is ;-)

But if it's a product you have installed yourself and don't want to use
anymore, just throw it out. It can still be in the products folder in Zope
so you have to delete it there too.

There might be exceptions but I havn't meet them yet.

Regards Max M

Max M. W. Rasmussen,Denmark.   New Media Director
private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Specialization is for insects.  -  Robert A. Heinlein



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

2000-11-08 Thread Andy McKay

Basically ZCatalog does not return an object but a brain which is a sort of
lightweight object based on the metadata. You might be doing something like


   


Where you should be:


   


Have a look at: http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Júlio Dinis Silva" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 2:21 AM
Subject: [Zope] my brains?


> Hello,
>
> I'm doing some search in two catalogs I have. They each have
> more than 1000 items. When a search is made besides taking to long
> the debug information screen print a lot of .
> Can anyone explain what is this "my brains" thing or some page to go and
> read more about this?
>
> Thanks,
> Júlio Dinis Silva
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Can't delete products

2000-11-08 Thread Andy McKay

Yes, the Zope simply looks for all the product directories that are there,
if its not there no problem.

(Unless of course that means you are about to lose any unsaved changes to
the actual python or so on, or have any objects derived from that product.)

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Stephan Goeldi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 8:04 AM
Subject: RE: [Zope] Can't delete products


> Is it save to simply delete a folder in Products?
>
>
> >From: Max Møller Rasmussen <[EMAIL PROTECTED]>
> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>,
> >"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Subject: RE: [Zope] Can't delete products
> >Date: Wed, 8 Nov 2000 16:28:00 +0100
> >
> >From: Stephan Goeldi [mailto:[EMAIL PROTECTED]]
> >
> > >I deleted some products in Control_Panel several times. Some are gone
> >(ok),
> >
> > >some stay and seem to be undeletable. I'm sure someone shows me the way
> >to
> > >delete it from the command line (it's Zope 2.2.2 on RedHat Linux).
> >
> >You should also delete the products from your product directory.
> >
> >Maybe that is the problem?
> >
> >regards
> > Max M
> >
> >
> >___
> >Zope maillist  -  [EMAIL PROTECTED]
> >http://lists.zope.org/mailman/listinfo/zope
> >**   No cross posts or HTML encoding!  **
> >(Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] ZSQL is killing me...

2000-11-08 Thread Andy McKay

Yes it should if the one in the root is the "closest" or first connection it
finds.
Im using ZODBC and it works for me.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Hugo Ramos" <[EMAIL PROTECTED]>
To: "ZOPE" <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 4:00 AM
Subject: [Zope] ZSQL is killing me...


> Yellow ppl,
>
> I think everybody already had this problem...
>
> Suppose you have a DB connection in /root/subfolder/DB_conn
> then you build lots of zsql objects from that point down...
> then you move the DB connection object up to the root.
>
> result: all ZSQL's have to be changed to assume the DB_conn new position.
>
>
> shouldn't the zsql's assume right away that the upper DB_conn in the root
> folder is the right one??
>
> regards
>
>
> =
> Hugo Ramos - [EMAIL PROTECTED]
> ZopersORG - http://www.zopers.org
> =
> Do not meddle in the affairs of programmers, for they are easy to annoy,
> and have all the source code!!!
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


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

2000-11-08 Thread Andy McKay

Yes. Some queries especially ones with wildcards can take a lot more juice
than others. Try and keep your metadata small and your queries simple.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Júlio Dinis Silva" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 7:54 AM
Subject: [Zope] ZCatalog scalability?


> Does anyone has a Catalog with more than 1500 items catalogued?
> If yes does anyone can do searches to this Catalog in a
> resonable time without freezing ZServer until it ends?
>
> Thanks,
> Júlio Silva
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread jpenny

On Wed, Nov 08, 2000 at 05:08:13PM +0100, Oliver Bleutgen wrote:
> > Hamish Lawson <[EMAIL PROTECTED]> wrote
> 
> > Python Zope Method
> > Perl Zope Method
> > SQL Zope Method
> > DTML Zope Method
> > Rebol Zope Method
> > Java Zope Method
> > VB Zope Method
> > Custom Zope Mthod
> > etc..
> 
> and perhaps let "Zope Method" become a "ZMethod", a bit shorter.

A winner by acclamation!

Now, how about internal/external?

> 
> 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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] XMLRPC accessing Zope DTML/SQL methods

2000-11-08 Thread Mayers, Philip J



Getting there. Note to the wise - when using PCGI and Apache, sometimes Zope
won't notice that you've edited an internal method source file... The cache
in Data.fs gets out-of-date.

Ok. So, I have this working:

def callSQLmethod(self, REQUEST):

s=self.sqlMethod(self, REQUEST)
y = []
for x in s:
y.append(x)
return str(y)


Called over XMLRPC, this gives me:

[, , ,
]

Fine, I can extract the result data later... How can I pass paramters to the
method without overwriting the REQUEST value - I need access to that, so I
can get environment variables, namely the SSL certificate subject name.

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

-Original Message-
From: Mayers, Philip J [mailto:[EMAIL PROTECTED]]
Sent: 08 November 2000 10:29
To: '[EMAIL PROTECTED]'
Subject: RE: [Zope] XMLRPC accessing Zope DTML/SQL methods


Ok, so this works:

def extmethod(self, REQUEST):
return str(REQUEST)

>From the web that prints the string Representation of REQUEST. But, over
XMLRPC, this:

s=xmlrpblib.Server("http://server.name/Zope/path/")
s.path.extmethod()

Returns the string representation of REQUEST, but *this*

s.path.extmethod('rrr')

return 'rrr'. What's happening?

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
Sent: 07 November 2000 21:35
To: Mayers, Philip J
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Zope] XMLRPC accessing Zope DTML/SQL methods



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

2000-11-08 Thread Leichtman, David J


Does anyone now how I might take a string and turn it into an object
reference in DTML?

By that, I mean, I want to take a string like: 'object.subobject.subobject'
from a database,
and I want to reference it as .
I think this is a simple, straightforward thing, but I've been wracking my
brain over it.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] I can't find a way to give parameters to the getDtmlData of a ZGDChartobjectobject

2000-11-08 Thread Steve Spicklemire


Hi Fred,

   I experimented a bit with the ZGDChart product. You can might try the following 
patch:

*** lib/python/Products/ZGDChart/ZGDChart.pyTue Sep 12 21:44:09 2000
--- /usr/local/etc/Zope2Test/pr/ZGDChart/ZGDChart.pyWed Oct  4 10:41:51 2000
***
*** 64,73 
--- 64,74 
  from Globals import HTMLFile, MessageDialog, Persistent
  from Globals import package_home
  from DocumentTemplate.DT_Util import *
  from DocumentTemplate.DT_String import String
  from maybe_lock import allocate_lock
+ import traceback
  
  #
  # In this module, extend gdchart so
  # that it can render itself
  #
***
*** 133,142 
--- 134,144 
manage_options=(
{'label':'Properties' , 'icon':icon, 'action':'manage_main',
'target':'_self'},
{'label':'Colors' , 'icon':icon, 'action':'manage_mainColor',   
'target':'_self'},
{'label':'Scale',   'icon':icon, 'action':'manage_mainScale',   
'target':'_self'},
{'label':'Data Method', 'icon':icon, 'action':'manage_mainGetData', 
'target':'_self'},
+   {'label':'DTML Data',   'icon':icon, 
+'action':'getDtmlData/manage_main', 'target':'_self'},
{'label':'Security'   , 'icon':icon, 'action':'manage_access',  
'target':'_self'},
{'label':'View'   , 'icon':icon, 'action':'manage_mainView',
'target':'_self'},
)
  
__ac_permissions__=(
***
*** 281,291 
self.id = id
self.title  = title
self.height = height
self.width  = width
self.SQL= SQL
!   self.content_type   = 'image/gif'
self.tempfile   = self.home() + '/temp.gif'

# Set the chart options
self.bg_transparent = 'bg_transparent' in option
self.xaxis  = 'xaxis' in option
--- 283,293 
self.id = id
self.title  = title
self.height = height
self.width  = width
self.SQL= SQL
!   self.content_type   = 'image/png'
self.tempfile   = self.home() + '/temp.gif'

# Set the chart options
self.bg_transparent = 'bg_transparent' in option
self.xaxis  = 'xaxis' in option
***
*** 372,386 
self.threed_angle   =   0
self.threed_depth   =   0
  
# Set the data gathering method
self.selected_data_method = 'dtml'
!   f = open(os.path.join(self.home(),'manage', 'getDtmlData.dtml'), 'r')
!   getDtmlData_dtml = f.read()
!   f.close()
!   ob = OFS.DTMLMethod.DTMLMethod(getDtmlData_dtml, 
__name__='getDtmlData')
!   self._setObject('getDtmlData', ob)

def manage_edit(self, title, xtitle, ytitle, width, height, chart_type, 
option=[], REQUEST=None):
"""edit ZGDChart"""
self.title  = title
self.xtitle = xtitle
--- 374,384 
self.threed_angle   =   0
self.threed_depth   =   0
  
# Set the data gathering method
self.selected_data_method = 'dtml'
!   self.manage_addDTMLMethod('getDtmlData', 'DTML Data Method', 
open(HTMLFile('manage/getDtmlData',globals()).raw).read())

def manage_edit(self, title, xtitle, ytitle, width, height, chart_type, 
option=[], REQUEST=None):
"""edit ZGDChart"""
self.title  = title
self.xtitle = xtitle
***
*** 687,704 
#
# requires GDChart 0.4
#
tempfile = cStringIO.StringIO() 
apply(chart, (GDC_TYPE, (self.width, self.height), tempfile) + 
tuple(chartdata))
!   if RESPONSE: RESPONSE['content-type']=self.content_type
output = tempfile.getvalue()
-   #
-   # requires GDChart 0.3
-   # apply(chart, (GDC_TYPE, (self.width, self.height), 
self.tempfile) + tuple(chartdata))
-   # if RESPONSE: RESPONSE['content-type']=self.content_type
-   # output = open(self.tempfile,'rb').read()
-   #
finally:
_chart_lock.release()  

Re: [Zope] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread Oliver Bleutgen

> Hamish Lawson <[EMAIL PROTECTED]> wrote

> Python Zope Method
> Perl Zope Method
> SQL Zope Method
> DTML Zope Method
> Rebol Zope Method
> Java Zope Method
> VB Zope Method
> Custom Zope Mthod
> etc..

and perhaps let "Zope Method" become a "ZMethod", a bit shorter.

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] Can't delete products

2000-11-08 Thread Stephan Goeldi

Is it save to simply delete a folder in Products?


>From: Max Møller Rasmussen <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>,
>"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: [Zope] Can't delete products
>Date: Wed, 8 Nov 2000 16:28:00 +0100
>
>From: Stephan Goeldi [mailto:[EMAIL PROTECTED]]
>
> >I deleted some products in Control_Panel several times. Some are gone 
>(ok),
>
> >some stay and seem to be undeletable. I'm sure someone shows me the way 
>to
> >delete it from the command line (it's Zope 2.2.2 on RedHat Linux).
>
>You should also delete the products from your product directory.
>
>Maybe that is the problem?
>
>regards
> Max M
>
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>

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

Share information about yourself, create your own public profile at 
http://profiles.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] ZCatalog scalability?

2000-11-08 Thread Júlio Dinis Silva

Does anyone has a Catalog with more than 1500 items catalogued?
If yes does anyone can do searches to this Catalog in a
resonable time without freezing ZServer until it ends?

Thanks,
Júlio Silva
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.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] Can't access management page.

2000-11-08 Thread Joel Janosky

I have tried this. 

I have restarted Zope.

I have recreated the admin password with zpasswd.py.

Nothing seems to help.

Is there some security setting that may have been corrupted that I need to
examine and fix??

Joel



-Original Message-
From: Andy McKay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 07, 2000 11:42 AM
To: Joel Janosky; [EMAIL PROTECTED]
Subject: Re: [Zope] Can't access management page.


Have you closed your browser and logged in again? This is normally
indicative of a login failure.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Joel Janosky" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 07, 2000 7:26 AM
Subject: [Zope] Can't access management page.


> I have a small internal site I have been running for about a year.
>
> Starting today, when I browse to the base /manage page, I get the normal
> tree display in the left hand pane. The right hand pane, however, displays
> the base page in its presentation form rather than showing the list of
> objects in the base folder.
>
> Any ideas on what may have been changed to cause this behavior ??
>
> Any ideas on how to get it back to normal??
>
> Thanks for the help.
>
> Joel
>
> [EMAIL PROTECTED]
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


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

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread Jason Cunliffe

Hamish Lawson <[EMAIL PROTECTED]> wrote


> In the poll currently underway on renaming options for Python Methods,
> the most popular choice so far is to leave the name as it is. It could
> just be because people don't see enough benefit in changing what's
> already there, but I think it may be that people actively feel that the
> term 'method' captures some technical essence. However, we still have
> the problem of disambiguating between a method in Zope's eyes and a
> method in the implementation language. How about calling anything that
> Zope regards as a method a Zope Method? That would then give us Python
> Zope Method, Perl Zope Method, DTML Zope Method, SQL Zope Method, etc.
> Is it too late to add the option for Python Zope Method to the poll?

YES. I agree this makes a _lot_ of sense.

It also means in any forms or menu popup boxlist, the most important
distinguishing words will be shown first:

Python Zope Method
Perl Zope Method
SQL Zope Method
DTML Zope Method
Rebol Zope Method
Java Zope Method
VB Zope Method
Custom Zope Mthod
etc..


- Jason


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

2000-11-08 Thread Max Møller Rasmussen

From: Stephan Goeldi [mailto:[EMAIL PROTECTED]]

>I deleted some products in Control_Panel several times. Some are gone (ok),

>some stay and seem to be undeletable. I'm sure someone shows me the way to 
>delete it from the command line (it's Zope 2.2.2 on RedHat Linux).

You should also delete the products from your product directory.

Maybe that is the problem?

regards 
Max M


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] I can't find a way to give parameters to the getDtmlData of a ZGDChartobjectobject

2000-11-08 Thread Frederic Quin

Hi all,


I can't find a way to give parameters to the getDtmlData of a ZGDChart
object.
Please, help... 'Cause I don't want to duplicate the same chart one
hundred times...


Fred

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Problen wtih dtml-in inside Zsql method

2000-11-08 Thread Alejandro Pancani


-
I have a problem using a 'dtml-in' tag inside of  a Zsql method and I'm
wondering if anybody can help me

I´m using a sequence  in  ORACLE  (called 'seq')  and I need to obtain the
following value of that sequence before execute other Zsql methods.
For that, I define a  Zsql method (called sql_select_nextval) that returns
the following  value of the sequence and other Zsql method (called sql_2 )
that executes another actions. The problem is that when I execute the Zsql
method 'sql_2' it seems to execute the sql_select_next_val method two times
because at the next time that I execute 'sql_2'  the value returned from
sql_select_next_val is incremented in 2 in comparison with last value
returned. I need it to be incremented in 1.



the code of  sql_select_nextval method is the following:

 SELECT seq.NEXTVAL  val
   FROM DUAL


the code of sql_2  method is the following:



insert into anytable
(oid_anytable, name)
values
 (,
  'john')

   

select * from anytable  where oid_anytable  = 



The code used to create the sequence is the following:

CREATE SEQUENCE seq
 START WITH 1
 NOCYCLE
NOCACHE;



Note: if I put the dtml-in outside of the Zsql method it seems to work
correctly...




Alejandro Pancani
[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] Can't delete products

2000-11-08 Thread Stephan Goeldi

I deleted some products in Control_Panel several times. Some are gone (ok), 
some stay and seem to be undeletable. I'm sure someone shows me the way to 
delete it from the command line (it's Zope 2.2.2 on RedHat Linux).

TIA
-goe-

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

Share information about yourself, create your own public profile at 
http://profiles.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] Python Methods Vote

2000-11-08 Thread Simon Michael

Just view the poll again. Everything but "python method" has been
getting trounced so far.

How come "python function" isn't there, again ? Isn't that what they
actually are ?


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

2000-11-08 Thread Mario Olimpio de Menezes


Hi,

I'm trying to install ZPatterns and I'm having troubles with the
Setup.
I don't have a cPersistence.h file and I don't know where to
find it. This file is necessary to compile DynPersist.c. Here is the
error:

gcc -fPIC  -I../../ZODB -I../../../Components/ExtensionClass -g -O2 
-I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H 
-c ./DynPersist.c
./DynPersist.c:1: cPersistence.h: No such file or directory
make: *** [DynPersist.o] Error 1

Any help?
Thanks, 

[]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
   http://www.revistalinux.com.br


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

2000-11-08 Thread Steve Spicklemire


Hi Jamey,

   It's also possible (and i think maybe easiest...) to do this in an
external method. Alas..  this also requires you to be familiar with
Python (as was posted before...)

-steve
> "James" == James Sintz <[EMAIL PROTECTED]> writes:

James> I have created a simple zclass product for a web based
James> newsletter. Each day's newsletter is input into a form and
James> added into the ZODB as instances of this newsletter
James> zclass. My question is... how do I import 2 years worth of
James> newsletters from tab delimited files exported from another
James> database?

James> I searched the archives and how-to section and could not
James> find the answer. Is this possible to do?

James> Thanks!!

James> Jamey



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

2000-11-08 Thread peter bengtson

I have the opposite problem.
Having voted once - early yesterday - I now can't vote again. The reason I
want to vote again is that I have changed my mind!

Now I want to _poll down_ "Python Method" and add a new alternative "ZPython
Method" or add some points to "Python Script" or "ZPY".

The poll is not cookiebased.




> Is there any way you can see what the results are looking like without
> having to vote again?
>
> How do you know we're only voting once? ;-)
>
> cheers,
>
> Chris
>
> Michel Pelletier wrote:
> >
> > Please vote folks!
> >
> > -Michel
> >
> > Shane Hathaway wrote:
> > >
> > > Being Election Day in the United States, now is a good time to vote on
> > > the new name for Python Methods.
> > >
> > > Python Methods are a relatively new concept for Zope. They give you
the
> > > features of DTML, such as through-the-web editing and security, while
> > > providing a familiar, refined syntax.
> > >
> > > But before we can fold them into the Zope core, you need to help us
> > > choose the right name for them. Some have voiced the opinion that the
> > > name "Python Method" is confusing because it can just as easily refer
to
> > > methods in standard Python modules.
> > >
> > > There are some interesting alternatives, so please cast your vote!
> > >
> > > http://www.zope.org/Members/hathawsh/poll
> > >
> > > ___
> > > Zope-Dev maillist  -  [EMAIL PROTECTED]
> > > http://lists.zope.org/mailman/listinfo/zope-dev
> > > **  No cross posts or HTML encoding!  **
> > > (Related lists -
> > >  http://lists.zope.org/mailman/listinfo/zope-announce
> > >  http://lists.zope.org/mailman/listinfo/zope )
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


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

2000-11-08 Thread Hugo Ramos

Yellow ppl,

I think everybody already had this problem...

Suppose you have a DB connection in /root/subfolder/DB_conn
then you build lots of zsql objects from that point down...
then you move the DB connection object up to the root.

result: all ZSQL's have to be changed to assume the DB_conn new position.


shouldn't the zsql's assume right away that the upper DB_conn in the root
folder is the right one??

regards


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


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




[Zope] Re: [Zope-Annce] November 8th Zope Weekly News

2000-11-08 Thread Gregor Hoffleit

On Tue, Nov 07, 2000 at 11:56:28PM -0500, emf wrote:
>  How Many Zopatistas?
>   
>   Zope gets downloaded from zope.org 12-15,000 times a month.
>   It has risen steadily over the last year and a half.  Zope
>   has been downloaded roughly 200,000 times since version 2.0.
> 
>   Zope is distributed on all major linux distributions, but
>   there's no way of tracking those.
> 
>   Netcraft asserts that there are 937 servers 
>   "reporting themselves as zope",
>   http://www.netcraft.com/survey/Reports/0010/byserver/Zope/index.html

A quick supplement: Debian provides an optional package popularity-contest,
that, if installed and configured, sends a list of the packages installed
on a machine to a central instance. If you look at the results of this
sample of Debian installations, in the section `web packages'
(http://people.debian.org/~apenwarr//popcon/results.web.html), the top 20
are like this:

Package   Vote   Old Recent Unknown  

apache-common  4618735 0  
apache 4573620 0  
wget   434   33488 0  
lynx   407   16921 0  
junkbuster 16329 3 0  
mozilla143   14589 0  
squid  139 2 3 0  
htdig   8416 2 0  
wwwoffle66 1 1 0  
weblint 60   26625 0  
analog  58   10551 0  
webalizer   5048 9 0  
zope4915 9 0  
imp 40 1 1 0  
apache-dev  38   12629 0  
php3377552 0  
tidy31   12715 0  
boa 29 1 6 0  
konqueror   28 050 0  
apache-perl 28 4 1 0

(About 924 individual computers submitted results this week.
- Vote: Number of people that use this package regularly.
- Old: Number of people who installed but have not used the package recently.
- Recent: Upgraded the package too recently for stats to be valid.
- Unknown: No files in the package were used in the statistics calculation.)

For sure this is by no way a representative sample of all Debian 
installations. FWIW, if it was representative, it would suggest that 
Apache was installed on half of all Debian installation, and that Zope was 
installed on 5 % of all Debian installations. You could start and multiply
that with an estimate of the number of Debian installations (no idea,
something in between 5e4 and 5e6, I'd guess ;-) to end up with
some 2000 up to 20 installed Zope Debian packages.

What exactly did Churchill have to say about statistics ?

Gregor

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Your thoughts about Zope-based database apps

2000-11-08 Thread Francisco José Esteban Risueño

We've implemented an application like this in our intranet, and it's now
up and running satisfactory with 1500 users. We use Oracle as back-end.
Here are responses from the rest of your questions:

1.- We've using zope only since six months ago. the development period
of the application was three months and we can consider him medium-sized
(30 tables, 10 imput screens, 15 output screens, interfaces with
operating system authentication and services, outputs in PDF, RTF and
HTML formats...). We're not particulary smart :).

2.- We use javascript to perform data validation before insert them in
the database (although Oracle has its own data validation, we also
perform it in the client side in order to reduce database traffic and to
offer the user more precise information about the errors)

3.- The implementation of master/detail forms is rather complicated the
first time, but possible: We offer initialy three detail rows for the
master one and an "Add row" button that refresh the screen with another
detail row when pressed (using zope  statements). In the
validation of the form, we know the number of detail rows and the number
of form fields of each row, so, by the position of a field in the form,
whe can know to wich detail it belongs and can pass it to the proper
insert/update sentence. If you understand spanish, I can give you an
example dtml method with this behaviour

Alonso Rhenals escribió:

> I'm considering implementing a web-based database application with
> MySQL as a back-end and a Zope-based front-end. I wonder if you could
> provide your thoughts on the following questions: 1. Is Zope a good
> tool to quicky build an efficient & effective user interface for a
> database application? 2. In particular, what would be the best way to
> implement the inserting and updating of records along with input data
> validation? (Retrieving data from a database to show on a web page
> using Zope is straightforward as you know.) 3. In several cases I'd
> like to implement a main form/subform, where the subform allows the
> user to enter several items related to only one record in the main
> form. Since every item might have many fields (say 20) I'd like to
> present just the most important fields on a table, and allow the user
> to view/enter/update all the fields for each item in a different web
> page. Those of you familiar with Microsoft Access know that in Access
> it is straightforward to implement this main form/subform interface. I
> wonder what would be the best way of implementing this using Zope? 4.
> Do you know of any existing Zope-based app similar to this?.
> Obviously, the back-end doesn't have to be MySQL. 5. Finally, if
> somebody is interested in further discussing this type of
> applications, I'll be glad to participate. Just e-mail me to
> [EMAIL PROTECTED] Thanks in advance for your inputs.
> Alonso RhenalsMiami, FL, USAPlease reply to: [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] asked a million times again...

2000-11-08 Thread Max Møller Rasmussen

> Okay, I got the  to work right assuming that that
> files are arranged properly according to aquistion, but then when I
> try to get the file from another folder like
> 
> 
> 
> It displays the code of that page rather thatn recognizing that it is
> content. What should I do?

Perhaps  will do? It executes the method
"filname()" and returns the result.

Regards Max M

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Dump .zexp export to readable source?

2000-11-08 Thread Max Møller Rasmussen

From: Robin Becker [mailto:[EMAIL PROTECTED]]

>>zClasses are not written in Python so there is no code to see. Except fot
>>the dtml code and you can see that when you have imported a zClass
product.

...
>I disagree strongly. Many of the useful coding tools need line oriented
>Ascii text; where is diff or grep for my ZClass code. The XML export
>form would do except that the differences caused by ordering/numbering
>mean that diff reports many irrelevant differences. Zope loses by not
>having a decent external storage mechanism for its programming.

Whoa there ... I didn't say anything you could disagree with. I just stated
facts. But I do agree that writing software in Zope is a problem for me too.
I would also like a flat text storage system, but I also see why it is
difficult considdering the design choices made in Zope.

I believe that my problems stems from the fact that code, content and
presentation is to strongly interwoven.

zClasses are nice and simple but difficult to edit, as it has to be done in
the browser. Or at least pasted into it. You also get yourself painted into
a corner pretty quickly.

Subclassing a Pyhton class as a base for a zClass is kind of nice. But
currently I am having problems using that method as it seems that "helper
classes" cannot be adressed from dtml methods in the zClass. (Se my acessing
parameters in a "helper class" posting).

Products are difficult to make, and all the tutorials are rather bad.
Business logic and presentation is mixed together. (Business logic should
not use any code or libraries from Zope at all.)

A nice way to work would be to make a Python class that is completely
independent of Zope. Test and debug it.

Then make a thin Zope wrapper that adds just enough functionality to make it
work in Zope, and so that it can be accessed nicely via dtml.

I am trying this approach currently, but it gets ugly real fast. It will
probably be nicer when I understand it fully. I Will post a How-to then.

Regards Max M

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

2000-11-08 Thread Stephan Goeldi

>-give me access to an RDBMS (MySQL or any other system would more >than 
>suffice)

MySQL

>-give me a reasonable amount of space (>50MB)

200MB

>-not break my budget (<$30.00 per month.)

CHF 49.- i.e. about US$28.00

>Does such an animal exist?

We offer Zope Hosting (over Apache ProxyPass or Rewrite).
Have a look at
www.goeldi.com/e (english) or
www.leimental.net (german)

It is the same company.

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

Share information about yourself, create your own public profile at 
http://profiles.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] XMLRPC accessing Zope DTML/SQL methods

2000-11-08 Thread Mayers, Philip J

Ok, so this works:

def extmethod(self, REQUEST):
return str(REQUEST)

>From the web that prints the string Representation of REQUEST. But, over
XMLRPC, this:

s=xmlrpblib.Server("http://server.name/Zope/path/")
s.path.extmethod()

Returns the string representation of REQUEST, but *this*

s.path.extmethod('rrr')

return 'rrr'. What's happening?

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
Sent: 07 November 2000 21:35
To: Mayers, Philip J
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Zope] XMLRPC accessing Zope DTML/SQL methods



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

2000-11-08 Thread Seb Bacon


> Is there any way you can see what the results are looking like without
> having to vote again?

Don't worry, there's no need actually to count the votes.

Despite the fact that this race went right down to the wire, according to my
complex computer-based prediction models (based on exit polls and incredibly
detailed statistical analysis) I can hereby announce that "Python Script" is
the outright undisputed winner :)


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

2000-11-08 Thread Júlio Dinis Silva

Hello,

I'm doing some search in two catalogs I have. They each have
more than 1000 items. When a search is made besides taking to long
the debug information screen print a lot of .
Can anyone explain what is this "my brains" thing or some page to go and 
read more about this?

Thanks,
Júlio Dinis Silva
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.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] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread Chris Withers

Hamish Lawson wrote:
> Zope regards as a method a Zope Method? That would then give us Python
> Zope Method, Perl Zope Method, DTML Zope Method, SQL Zope Method, etc.
> Is it too late to add the option for Python Zope Method to the poll?

All too long an unwieldy... glad to see the -lets have died.
Sad to see neither Python Block nor Python Op(eration) seem so be
gettign there since they most accurately describe what these things are,
IMVHO...

cheers,

Chris

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




Re: [Zope] newbie: comparing dates?

2000-11-08 Thread Chris Withers

Georg Rellensmann wrote:
> 
> Hi all,
> 
> another newbie-question:
> 
> - I created a zclass with three date properties.
> 
> - Now I´d like to display the most recent of these dates in
>   directory-listings etc.

Try something like:


...your dir stuff here...


cheers,

Chris

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




Re: [Zope] images in directories

2000-11-08 Thread Chris Withers

Dieter Maurer wrote:
> 
> Then Chris Withers wrote: use
> 
> 
> 
> I did not believe him and tried it out...
> ... it works in Zope 2.2.2.

...worked for me all the way back to 2.1.4 ;-)

Anyway, if you're _really_ lazy, write an external method something
alogn the lines of:

def showImage(self,path):
return self.restrictedTraverse(path)(self,self.REQUEST)


...then, in your dtml, you can do:



This is all totally untested of course ;-)

I've often wondered why this isn't built into DTML so that you could do:



obviously, you wouldn't be able to do this with stuf inside " " ;-)

cheers,

Chris

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




Re: [Zope] Cloning a ZClass-Instance

2000-11-08 Thread brocken22

Thank you Dieter for your reply,
but yout suggestion doesn't solve the problem.
This is the traceback:
"The object 973677459 does not support this operation "
This means to me that x is an instance.
That's my script->




  
   
Kopiert!!!

  
   




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




[Zope] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread Hamish Lawson

In the poll currently underway on renaming options for Python Methods, 
the most popular choice so far is to leave the name as it is. It could
just be because people don't see enough benefit in changing what's
already there, but I think it may be that people actively feel that the
term 'method' captures some technical essence. However, we still have
the problem of disambiguating between a method in Zope's eyes and a
method in the implementation language. How about calling anything that
Zope regards as a method a Zope Method? That would then give us Python
Zope Method, Perl Zope Method, DTML Zope Method, SQL Zope Method, etc.
Is it too late to add the option for Python Zope Method to the poll?

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] How to access control panel debug information as normal user??

2000-11-08 Thread Chris Withers

Gilles Lavaux wrote:
> 
> I am not able to retrive this information, except as manager. Whatever
> security or role I set on my 'status' method:


You need to give your 'status' method a proxy Role of Manager. Then be
very careful that only managers can edit that method ;-)

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] How to access control panel debug information as normal user??

2000-11-08 Thread Gilles Lavaux

Hello,


I want to give to my normal users (non manager) the possibility to access
some debug informations like:
- the number of currently open connections + the date of the openning.
(This mainly to track the hanged request...)

I am not able to retrive this information, except as manager. Whatever
security or role I set on my 'status' method:


  Status:
  

  




Thanks for any help

Gilles Lavaux


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

2000-11-08 Thread Chris Withers

Is there any way you can see what the results are looking like without
having to vote again?

How do you know we're only voting once? ;-)

cheers,

Chris

Michel Pelletier wrote:
> 
> Please vote folks!
> 
> -Michel
> 
> Shane Hathaway wrote:
> >
> > Being Election Day in the United States, now is a good time to vote on
> > the new name for Python Methods.
> >
> > Python Methods are a relatively new concept for Zope. They give you the
> > features of DTML, such as through-the-web editing and security, while
> > providing a familiar, refined syntax.
> >
> > But before we can fold them into the Zope core, you need to help us
> > choose the right name for them. Some have voiced the opinion that the
> > name "Python Method" is confusing because it can just as easily refer to
> > methods in standard Python modules.
> >
> > There are some interesting alternatives, so please cast your vote!
> >
> > http://www.zope.org/Members/hathawsh/poll
> >
> > ___
> > Zope-Dev maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope )
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

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




Re: [Zope] asked a million times again...

2000-11-08 Thread Chris Withers

> Chris Trowbridge wrote:
> 
> Okay, I got the  to work right assuming that that
> files are arranged properly according to aquistion, but then when I
> try to get the file from another folder like
> 
> 
> 
> It displays the code of that page rather thatn recognizing that it is
> content. What should I do?

1. Stop posting in HTML.

2.


 


cheers,

Chris

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




Re: [Zope] Dump .zexp export to readable source?

2000-11-08 Thread Robin Becker

In article <7BD10B680501D411B9DF009027E06F32197AD5@exchange>, Max Møller
Rasmussen <[EMAIL PROTECTED]> writes
>From: Alex Khan [mailto:[EMAIL PROTECTED]]
>
>>I can probably learn more from reading other people's code than by reading
>>the fragmented documentation.
>>I can do this easily with products but not zexp's. Thanks in advance...
> 
>zClasses are not written in Python so there is no code to see. Except fot
>the dtml code and you can see that when you have imported a zClass product.
>
>Regards Max M
>
...
I disagree strongly. Many of the useful coding tools need line oriented
Ascii text; where is diff or grep for my ZClass code. The XML export
form would do except that the differences caused by ordering/numbering
mean that diff reports many irrelevant differences. Zope loses by not
having a decent external storage mechanism for its programming.
-- 
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] Needed: DCOracle C++ code on which SWIG was used

2000-11-08 Thread Alwyn Schoeman

Hi all,

It is a real pain in the b to get a C++ library to use with Oracle 8 on 
Solaris  Can someone please send me information on getting the C++ code 
used to generate the python wrappers with SWIG?

Thank you
-- 
~~~
Alwyn Schoeman

The clock on the wall keeps moving, time stands still.  No matter how
the dice may fall, someone else always gets to call the number.

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

2000-11-08 Thread jacintha menezes

Hi,
   Kindly give dtml tags or python module for doing import & export in
zope.Since i am not able to send the query output as an attachment with zope
mail facility i am thinking of
using import & export.
thanks,
 bye,
  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 )




  1   2   >