[Zope] Membership unable to remember login name

2000-11-28 Thread Dirksen

In a test run of membership 0.7.8 product, I login as a member with the option 
'remember
my name' checked. But next time I visit the login page, the name field is blank. Is 
that
function supposed to be left over, or just something goes wrong with my installation?

Dirksen


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

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




[Zope] Re:External Methods

2000-11-28 Thread Kini Natekar


Hi,

I am currently running a external method .This method
calls a python script using the following line

   http://localhost/cgi-bin/test.py?%s+%s\">%s"
%(name,age,gender)

Instead of calling the python script we want to add
the script as an external method in zope.The problem
we are currently facing is in generating the above
link dynamically.

How do we solve the above problem ?

Thanks,
Kini.   

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

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




[Zope] authentication

2000-11-28 Thread Olaf Zanger

hi everybody,

i can run different versions of zope and login as superuser, setup an
other user and change superuser account name and password. 

unfortunately i don't get authenticated when i want to login as user.
means i can do no work with content at all in zope. 

is it normal that when i go to change the user password it shows a
different amount of *s there?

how does the authentication work?
do any files have to be at special places for authentication?
do any files need any special permission for this?

my system
i have it run under wwwrun:nogroup and the directory 
/opt/zope is root:root
/opt/zope/var is wwwrun:nogroup and 755
except of files Z2.log, pcgi.soc, zProcessManager.pid that are root:root

i installed zope 2.2.2, 2.2.4, compiled a 2.2.4, used an rpm, always the
same problem
latest i used an installation description for suse 6.4 ... -- no help
did a lot as you see

my system is a suse linux 7.0 with the update to kde2.0

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Zanger Nusch
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



Re: [Zope] Instance within Instance

2000-11-28 Thread Tim Cook

Tim Cook wrote:
> 
> Next we get the newly constructed MyClass1, and setup to call the
> MyClass2 constructor:
> 
> 
> 
>   
> 
>   
> 
>   
> 
> 
> 

There were some details I still left out here. This call to the
second constructor is in another DTML Method. The REQUEST values
are passed through using hidden form variables from the first
DTML Method.
Also in the second DTML MEthod you must be sure that you are
inside the parent folder context first.


 
 
   
 
   
 
   
 
 


Then you do a call to index_html or some appropriate Method so
the user isn't left with a blank display.

This will make sense to Daryl in the examples I sent. If anyone
else wants a better explaination maybe I'll do a formal HOW-TO
???


-- Tim Cook, President --
Free Practice Management,Inc. | http://FreePM.com
Office: (901) 884-4126
Censorship: The reaction of the ignorant to freedom.

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




Re: [Zope] Fast Access.

2000-11-28 Thread Jason C. Leach

hi,

Yes. Thats what I'm after. As it stands, during a long session with Zope I
can spend lots of time just interacting with the interface.

j.

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

On Tue, 28 Nov 2000, Chris McDonough wrote:

> Faster than HTTP access through a web browser you mean?  For development?
> No really viable way right now.
> 
> - Original Message -
> From: "Jason C. Leach" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 28, 2000 10:19 PM
> Subject: [Zope] Fast Access.
> 
> 
> > hi,
> >
> > Is there a faster way to access Zope? I find I wate too long for page
> > refreshing and updates.
> >
> > j.
> >
> > ..
> > . Jason C. Leach
> > ... University College of the Cariboo.
> > ..
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
> >
> 
> 


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




RE: [Zope] Help!!

2000-11-28 Thread Eric Walstad

Hi Ot,
Try closing down all instances of your browser, then open up your browser
and login as your admin user.  You will be "logged out" when you close all
instances of your browser.
HTH,  Eric.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ot
Ratsaphong
Sent: Tuesday, November 28, 2000 7:16 PM
To: [EMAIL PROTECTED]
Subject: [Zope] Help!!


Hi,
I'm new to Zope and have just installed Zope on a Win98 PC.

I'm trying to install squishdot and TinyTable, but Zope tells me that
superuser has no permission to install the above products.

I have created another user called 'admin' with Manager priviledges but I
don't know how to logout of superuser and login as 'admin'.

I have tried shutting down Zope and closed off internet explorer and
restarting again but I still get into superuser.

If I need to login as a non superuser, how do I do this?

I have looked for all relevant documentation but can't find anything on
this.

Your help would be appreciated.

TIA
Ot Ratsaphong
Canberra, Australia


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


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




Re: [Zope] Instance within Instance

2000-11-28 Thread Tim Cook

Daryl Stultz wrote:
> 
> Tim Cook wrote:
> 
> > I guarantee that you will end up with a folder MyClass1ID that
> > contains MyClass2ID.
> 
> You've been very helpful, here, Tim, but I simply can't get this to
> work. I'm wondering if you might be able to create such a product for me
> and send it to me: One product with two classes, creating one class from
> the manager creates the first class with the second inside it.

I probably didn't give all of the instructions in a step by step
manner. I think I gathered this info from different HOWTOs. Here
are the changes that I make to each ZClass.

In the class definition add your propertysheet(s). I only ever
use one / class. I think this is a hold over from years of
RDBMS's. I figure if you need more than one propertysheet then
you need a seperate class. 

In the constructor, copy the call to manage_editProperties to a
new one outside of the comment block. Replace the .Basic. with
the name of your property sheet you created.

So:
...
 

  


Becomes:
...

   

  
  




Then at the bottom of the constructor (I think I got this from
the Job Board HowTo).

Replace everything below the  with:






 








When we call the constructor we will pass 'NoRedir', this keeps
it from returning to the management interface. 

After setting up REQUEST with our desired values for the
propertysheet we call the first constructor like this:




  


Next we get the newly constructed MyClass1, and setup to call the
MyClass2 constructor:



  

  

  



---
I am sending you a Product and an example folder via seperate
email.

> Maybe I can write some Python for you or something in exchange :-)

Just signup on the FreePM project at SourceForge & mailing list
and I'll be sure to ask real soon now. 

Good Luck,
-- Tim Cook, President --
Free Practice Management,Inc. | http://FreePM.com
Office: (901) 884-4126
Censorship: The reaction of the ignorant to freedom.

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




Re: [Zope] Fast Access.

2000-11-28 Thread Chris McDonough

Faster than HTTP access through a web browser you mean?  For development?
No really viable way right now.

- Original Message -
From: "Jason C. Leach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 10:19 PM
Subject: [Zope] Fast Access.


> hi,
>
> Is there a faster way to access Zope? I find I wate too long for page
> refreshing and updates.
>
> j.
>
> ..
> . Jason C. Leach
> ... University College of the Cariboo.
> ..
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>


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




Re: [Zope] Help!!

2000-11-28 Thread Chris McDonough

> I have created another user called 'admin' with Manager priviledges but I
> don't know how to logout of superuser and login as 'admin'.
>
> I have tried shutting down Zope and closed off internet explorer and
> restarting again but I still get into superuser.

Did you tell Internet Explorer to "save your username and password" when you
logged in as superuser for the first time?  If so, you'll get logged in
automatically as superuser every time you hit the site.

To turn off this behavior (at least in IE 5.5), visit
Options-->Security-->Custom Level-->User Authentication-->Logon and check
"Prompt for Username" and save the security level as default.



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

2000-11-28 Thread Jason C. Leach

hi,

Is there a faster way to access Zope? I find I wate too long for page
refreshing and updates.

j.

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


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




[Zope] Help!!

2000-11-28 Thread Ot Ratsaphong

Hi,
I'm new to Zope and have just installed Zope on a Win98 PC.

I'm trying to install squishdot and TinyTable, but Zope tells me that
superuser has no permission to install the above products.

I have created another user called 'admin' with Manager priviledges but I
don't know how to logout of superuser and login as 'admin'.

I have tried shutting down Zope and closed off internet explorer and
restarting again but I still get into superuser.

If I need to login as a non superuser, how do I do this?

I have looked for all relevant documentation but can't find anything on
this.

Your help would be appreciated.

TIA
Ot Ratsaphong
Canberra, Australia


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




Re: [Zope] Index_html versus index.html

2000-11-28 Thread Dieter Maurer

Chris Withers writes:
 > Dieter Maurer wrote:
 > > 
 > > Pieter Biemond writes:
 > > 
 > >  > * Why is the default file index_html and not index.html
 > >  >   (Windows doesn't want to open files without extensions).
 > > I assume, because preferences of Python, Zope's implementation
 > > language, have had a higher priority than Windows preferences ;-)
 > > Python does not like periods in names.
 > 
 > That's not really true, python doesn't seem to care a lot about what's
 > in a name.
A name is a well defined lexical entity in Python:
   a sequence of letters, '_' and digits, starting with
   a letter or '_'.

 > If you have periods, it just means you need things like:
 > 
 > getattr(getattr(getattr(globals(),'x.y'), 'z.a'), 'index.html')
What you want to say:

   attributes can be referenced with more general entities
   than names, e.g. arbitrary strings.


But:
Try to define a method(!) "index.html" in a class.

I know, it is possible. But it is not natural.


Dieter

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




Re: [Zope] ZopeWeaver?

2000-11-28 Thread Steve Spicklemire


Hi Andy,

> "Andy" == Andy McKay <[EMAIL PROTECTED]> writes:

>> There are now all manner of Dreamweaver extensions, both

Andy> I tried it briefly and found that Dreamweaver cant seem to
Andy> handle a file with no extension such as index_html, so gave
Andy> up.

Yes.. it's apparently just the Windows version that has this
problem it's a really wierd limitation... 

-steve


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




Re: [Zope] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Dieter Maurer

Jonathan Cheyne writes:
 > just to clarify three key messages that apprae immediately after starting
 > up.
 > 
 > couldnt' import product.ZDbase
Thus, install "ZDbase" or determine, why it can not import it.
 > [some blurge here]
 > unpack sequence of wrong size
Hopefully this is a consequence of the previous problem.
 > [blurge]
 > cannot import name ZDiscussions
You have ZDiscussion installed?

Go for it.

You must first fix the problems with the products.
*Later*, you may delete everything, that depends on the
products. Only then, you may delete the products (from
both "Product_Management" and the file system!

 > i tried chown -R zope * and even tried running it as root. nope.
This is unrelated to your current problems.

You have objects that refer to products that are no longer
there, at least not free of problems.

You need to install the products and/or fix the problems
with the import.


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] Instance within Instance

2000-11-28 Thread Daryl Stultz

Tim Cook wrote:

> I guarantee that you will end up with a folder MyClass1ID that
> contains MyClass2ID.

You've been very helpful, here, Tim, but I simply can't get this to
work. I'm wondering if you might be able to create such a product for me
and send it to me: One product with two classes, creating one class from
the manager creates the first class with the second inside it.

Maybe I can write some Python for you or something in exchange :-)
Thanks.

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

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

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




Re: [Zope] Possible disaster upgrading to 2.2.4

2000-11-28 Thread [EMAIL PROTECTED]

On Wednesday 29 November 2000 08:33, Jonathan Cheyne wrote:
> Hi Deiter
>
> > Thus, install "ZDbase" or determine, why it can not import it.
>
> Already installed in 2.2.0 before upgrade. I have perused the output on
> the console but its a bit beyond me.
>
> >  > cannot import name ZDiscussions
> >
> > You have ZDiscussion installed?
>
> Already from before. Reinstalled as well no joy. I also tried a new
> install of 2.2.4 not an upgrade and installed all my tar ball products.
> things work until i copy in my data.fs then barf.

i think this has manifested itself since zope 2.2.2bx.  make sure to add an 
addtional ',' in ZDBase/ZDiscussion.py __ac_permissions__

-8<---
  __ac_permissions__ = (
('Manage properties', ('manage_addProperty',
   'manage_editProperties',
   'manage_delProperties',
   'manage_changeProperties',)),
)^
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Get the tables!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross 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: How to request boolean NOT searches?

2000-11-28 Thread Andy McKay

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

Yes definitely.


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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Robin Becker

In article <00a501c05999$460c1840$0202a8c0@typhoon>, Phil Harris
<[EMAIL PROTECTED]> writes
>Robin,
>
>My educated guess is that what you want can't be achieved other than with
>css.
>
>The  tag has no properties for changing colors of one particular link.
>
>The  tag is the only place for this and as you know this changes them
>globally.
>
>This taken from the HTML reference Library:
>
>NAME="URL_fragment"
>TITLE="Title_of_destination"
>REL="Forward_relationship"
>REV="Reverse_relationship"
>URN="Uniform_Resource_Name"
>METHODS="Function_information"
>TARGET="Name_of_target_window_or_frameset"
>ACCESSKEY="Shortcut_setting"
>LANG="Document language"
>LANGUAGE="Script_language"
>INDEXSTRING="NetHelp_index_keyword"
>TOCSTRING="NetHelp_contents_entry"
>CLASS="className"
>ID="unique_id"
>STYLE="style_setting"
>DATAFLD="Column name"
>DATASRC="Data Source"
>>


this isn't complete as it's easy to show that

text

does work as do inlines for font-weight etc. The problem is that the CSS
attributes are :link,  etc ie pseudo classes and there doesn't seem to
be any way to get at class values in inline styles.

I'm using named CSS classes, but the complexities of CSS are a bit of a
pain.
-- 
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 )




Re: [Zope] ZCatalog: How to request boolean NOT searches?

2000-11-28 Thread Doug Morse

Dieter,

> Doug Morse writes:
>  > ... negating a ZCatalog index lookup ...
> 
> Only ZCatalog text indexes support a restricted form of negation.
> Keyword and field indexes do not.
> Text indexes support only "and not":
> e.g. "Zope and not databases".
> Free standing "not" or combined with "or" (rather than "and")
> is not supported.

Super, thanks Dieter!  Not the answer I was hoping to hear,
but it least it's definitive. ;-)  

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

Cheers!
Doug Morse
[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] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Oliver Bleutgen

> The problem is that one of your databases doesn't define the commit_sub()
> and abort_sub() methods on the DB class it exposes.  You don't say which
> SQL
> database you're using, but this happened to me on a consulting project
> with
> ZOracleDA.  A solution is to add the following methods to the database
> adapter's DB class inside DB.py:

> def commit_sub(self, *arg, **kw):
>pass

> def abort_sub(self, *arg, **kw):
>pass

> This isn't optimal, because it sort of breaks transactional integrity, but
> it does make it work.


Thanks for your reply. I use ZPoPyDA (0.6.4 says the readme).

I think I will not apply that patch (thanks nonetheless), 
because I have no requirements for indexing big amounts
of text. And as I understand it, _indexing_ (as opposed to
normal searches) is the only action where subtransactions
help.
My main motivation for posting was to get that problem
into the public, so that others may find it while doing 
desperate searches in this mailing list ;-).
And perhaps - if I dare - to suggest to disable 
subtransactions in ZCatalog by default.

cheers,
oliver

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




Re: [Zope] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Jonathan Cheyne

Hi Deiter

> Thus, install "ZDbase" or determine, why it can not import it.

Already installed in 2.2.0 before upgrade. I have perused the output on
the console but its a bit beyond me.

>  > cannot import name ZDiscussions
> You have ZDiscussion installed?

Already from before. Reinstalled as well no joy. I also tried a new
install of 2.2.4 not an upgrade and installed all my tar ball products.
things work until i copy in my data.fs then barf.

I think that the stuff about export then import into a new data.fs
'sounds' the most likely solution: I certainly intend to try once I have
experimented with how to do that. :-)

Cheers

Jonathan




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

2000-11-28 Thread Andreas

Robert Senger wrote:
> 
> Hi all,
> 
> The ZPoPyDA module refuses to work properly. After several problems installing 
>PostgreSQL (V.
> 7.0.3), ZPoPyDA (0.7 or 0.5) and PoPy (V. 1.4.1), Zope says at start that to please 
>'update your
> version of PoPy'. But I already have the newest available versions.
> 
> Does anybody have experience with PoPy/ZPoPyDA???

Have a look at PoPy_db.py
Search for __compatibility__
I don't know if it was a bad thing but I changed it ot ('1.4.1',) and
the PoPyDA works.


-- 

Andreas Heckel   [EMAIL PROTECTED]
UNIX is like a wigwam ...no gates ...no windows and an apache inside ;-)

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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Phil Harris

Robin,

My educated guess is that what you want can't be achieved other than with
css.

The  tag has no properties for changing colors of one particular link.

The  tag is the only place for this and as you know this changes them
globally.

This taken from the HTML reference Library:



>From the horses mouth so to speak :(.

If I needed to do this I'd use css in some way.

Phil

- Original Message -
From: "Robin Becker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 11:22 PM
Subject: Re: [Zope] html expertise anyone.


| In article <009c01c05961$a584d6a0$ae03a8c0@fork>, Andy McKay
| <[EMAIL PROTECTED]> writes
| >I think this is a css question and not related to DTML. Go to
| >http://freezope.nipltd.net/dna and you will see a simple style sheet that
| >shows use of active and visited links.
| >--
| ...
| yes I know how to set up style sheets; what I want is to be able to use
| inline definitions for the :link, :active, :visited (:hover) colours. I
| just don't know the correct incantation.
| --
| 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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Chris McDonough

The problem is that one of your databases doesn't define the commit_sub()
and abort_sub() methods on the DB class it exposes.  You don't say which SQL
database you're using, but this happened to me on a consulting project with
ZOracleDA.  A solution is to add the following methods to the database
adapter's DB class inside DB.py:

def commit_sub(self, *arg, **kw):
   pass

def abort_sub(self, *arg, **kw):
   pass

This isn't optimal, because it sort of breaks transactional integrity, but
it does make it work.

- Original Message -
From: "Michel Pelletier" <[EMAIL PROTECTED]>
To: "Oliver Bleutgen" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 6:12 PM
Subject: Re: [Zope] ZCatalog and LoginManager - be aware.


> Oliver Bleutgen wrote:
> >
> > Hi,
> >
> > I just wanted to mention a IMO bad pitfall when using ZCatalog, for
> > the sake of sparing others some time.
> >
> > I'm running Zope 2.2.2 with LoginManager with SQL in a subfolder and was
getting
> > the following error  when trying to find dtml-documents into ZCatalog:
> >
> > Error Type: AttributeError
> > Error Value: commit_sub
> >
> > Traceback (innermost last):
> >   File
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.
py, line 222, in publish_module
> >   File
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.
py, line 187, in publish
> >   File
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py,
line 221, in zpublisher_exception_hook
> > (Object: Traversable)
> >   File
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.
py, line 175, in publish
> >   File
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py,
line 235, in commit
> >   File
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZODB/Transaction.py
, line 261, in commit
> > AttributeError: (see above)
> >
> > All other object-types (incuding dtml-methods) seem to work. I have put
no
> > restrictions on which files I want found, but restricting something to
> > reduce the number of found objects helps.
> >
> > I fiddled around somewhat and discovered that disabling
> > subtransactions in ZCatalog does help (required for using
> > ZSQL Methods and ZCatalog in the same transaction).
>
> Yeah, that sux.  I think this is a known limitation.  I'm not sure.
>
> > Now I use SQL-based LoginManager, but why on earth did it only
> > fail on DTML-Documents? Is it because I have much more of them so
> > only then ZCatalog's subtransactions come into play?
>
> Probably because sub transactions are only commited after a certain
> number of words or values are indexed, and your DTML documents were the
> only things that held words.
>
> -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 )
>
>


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




Re: [Zope] context in Python Script

2000-11-28 Thread Dieter Maurer

Chris Gray writes:
 >  "context" in external Python Script 
I do not yet know, what an external Python script is.

In the old "external methods", you had to use "self"
as first parameter. Then (in most cases), you
could use "self" inside the function body, as you
would now use "context".

Maybe, you give it a try.


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] Instance within Instance

2000-11-28 Thread Dieter Maurer

Daryl Stultz writes:
 > Tim Cook wrote:
 > > The problem here is that even though you set REQUEST, it is a
 > > string. You need to be in the context of the parent _object_. You
 > > should try  .
 > 
 > Sorry, I thought of more...
 > It's my understanding that dtml-with simply pushes a namespace onto the
 > stack. What relationship does this have with the context that a new
 > ZClass instance is created in?
"class2" is looked up in this namespace.
The top element is asked first for "class2".
"class2" is found (by acquisition) from your "class1" Z instance
(called "i1"). Thus, what is actually called is

(class2 __of__ i1).createInObjectManager()

"createInObjectManager" looks in "(class2 __of__ i1).aq_parent"
(this is "i1") for "_setObject".
Apparently, it does not find it there.
Then it looks at "i1.aq_parent" (this is the folder, "i1" is contained
in). There, it has success and creates the object.


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] html expertise anyone.<3A23A8D6.ECDD8BBF@nipltd.com>

2000-11-28 Thread Dieter Maurer

Robin Becker writes:
 > In article <[EMAIL PROTECTED]>, Chris Withers
 > <[EMAIL PROTECTED]> writes
 > >Robin Becker wrote:
 > >> 
 > >> I can do this using a class
 > >
 > >So maybe do it using a class then? ;-)
 > >
 > >Chris
 > >
 > yes I am, but surely there has to be a way to do this stuff in line.
 > That way I don't have to predefine all the link behaviours and include
 > in the standard header. I know that the pseudo class things are called 
 > :link :active etc.
You often see this in the "body" tag.
I think, it was "vlink= ...", "alink= ..." and so on.
But I am not sure.

I hate inline style and never use it.


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] Instance within Instance

2000-11-28 Thread Dieter Maurer

Daryl Stultz writes:
 >  "REQUEST.set" to influence where instance is created 

"createInObjectManager" is uninterested in "REQUEST".
It creates the new object (usually, exception when its object
has a special "Destination" attribute) in the parent (aq_parent)
of its object.

Your "dtml-with" should place your "class1" instance correctly
in the "parent position".

I expect, that your "class1" does not inherit form "ObjectManager"
and therefore does not have a "_setObject".

In this case, "createInObjectManager" goes up another step
(another "aq_parent") and reaches the folder containing
the "class1" instance.
It has a "_setObject", the "class2" instance is placed there, too.

 > Anymore info (or pointers to better docs) would be great. Thanks.
You can learn about "aq_parent" in the acquisition documentation.

Search "zope.org" for it (acquisition).


Dieter

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




Re: [Zope] ZCatalog: How to request boolean NOT searches?

2000-11-28 Thread Dieter Maurer

Doug Morse writes:
 > ... negating a ZCatalog index lookup ...

Only ZCatalog text indexes support a restricted form of negation.
Keyword and field indexes do not.
Text indexes support only "and not":
e.g. "Zope and not databases".
Free standing "not" or combined with "or" (rather than "and")
is not supported.


Dieter

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




Re: [Zope] External Methods

2000-11-28 Thread Dieter Maurer

Kini Natekar writes:
 > How to call an External Method from another
 > External Method and pass parameters ?
 > I am just a beginner, so intricate details would
 > be appriciated.

def Method1(self, ...further args...):
  .
  self.Method2(self, ...params for method2...)
  # or: Method2(self, ), when "Method2" is in the same source
  



def Method2(self, ...furhter args...):
  



Dieter

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




Re: [Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Oliver Bleutgen

> Oliver Bleutgen wrote:
>> I fiddled around somewhat and discovered that disabling
>> subtransactions in ZCatalog does help (required for using
>> ZSQL Methods and ZCatalog in the same transaction).

> Yeah, that sux.  I think this is a known limitation.  I'm not sure.

It is, unfortunately this is only mentioned under "status" in
the ZCatalog interface. Well, I just got there by chance after 
several hours of digging around. I first thought perhaps some
DTML-Document was "bad-behaving". (not that I had an idea how
it might do that.)
With a (assumed) growing attractiveness of things like sql-based
UserFolders, perhaps a big warning sign either on the main page
of these products or ZCatalog (better IMO, since this is a default
product) would be in order, I guess. Or perhaps disabling 
subtransactions by default.
All in all this combination seems not uncommon.

>> Now I use SQL-based LoginManager, but why on earth did it only
>> fail on DTML-Documents? Is it because I have much more of them so
>> only then ZCatalog's subtransactions come into play?

> Probably because sub transactions are only commited after a certain
> number of words or values are indexed, and your DTML documents were the
> only things that held words.


> -Michel

cheers,
oliver

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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Robin Becker

In article <009c01c05961$a584d6a0$ae03a8c0@fork>, Andy McKay
<[EMAIL PROTECTED]> writes
>I think this is a css question and not related to DTML. Go to
>http://freezope.nipltd.net/dna and you will see a simple style sheet that
>shows use of active and visited links.
>--
...
yes I know how to set up style sheets; what I want is to be able to use
inline definitions for the :link, :active, :visited (:hover) colours. I
just don't know the correct incantation.
-- 
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 )




Re: [Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Michel Pelletier

Oliver Bleutgen wrote:
> 
> Hi,
> 
> I just wanted to mention a IMO bad pitfall when using ZCatalog, for
> the sake of sparing others some time.
> 
> I'm running Zope 2.2.2 with LoginManager with SQL in a subfolder and was getting
> the following error  when trying to find dtml-documents into ZCatalog:
> 
> Error Type: AttributeError
> Error Value: commit_sub
> 
> Traceback (innermost last):
>   File 
>/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 
>222, in publish_module
>   File 
>/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 
>187, in publish
>   File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py, 
>line 221, in zpublisher_exception_hook
> (Object: Traversable)
>   File 
>/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 
>175, in publish
>   File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py, 
>line 235, in commit
>   File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZODB/Transaction.py, 
>line 261, in commit
> AttributeError: (see above)
> 
> All other object-types (incuding dtml-methods) seem to work. I have put no
> restrictions on which files I want found, but restricting something to
> reduce the number of found objects helps.
> 
> I fiddled around somewhat and discovered that disabling
> subtransactions in ZCatalog does help (required for using
> ZSQL Methods and ZCatalog in the same transaction).

Yeah, that sux.  I think this is a known limitation.  I'm not sure.
 
> Now I use SQL-based LoginManager, but why on earth did it only
> fail on DTML-Documents? Is it because I have much more of them so
> only then ZCatalog's subtransactions come into play?

Probably because sub transactions are only commited after a certain
number of words or values are indexed, and your DTML documents were the
only things that held words.

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




[Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Oliver Bleutgen

Hi,

I just wanted to mention a IMO bad pitfall when using ZCatalog, for
the sake of sparing others some time.

I'm running Zope 2.2.2 with LoginManager with SQL in a subfolder and was getting 
the following error  when trying to find dtml-documents into ZCatalog:


Error Type: AttributeError
Error Value: commit_sub

Traceback (innermost last):
  File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, 
line 222, in publish_module
  File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, 
line 187, in publish
  File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 
221, in zpublisher_exception_hook
(Object: Traversable)
  File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, 
line 175, in publish
  File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 
235, in commit
  File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZODB/Transaction.py, 
line 261, in commit
AttributeError: (see above)


All other object-types (incuding dtml-methods) seem to work. I have put no 
restrictions on which files I want found, but restricting something to 
reduce the number of found objects helps.

I fiddled around somewhat and discovered that disabling 
subtransactions in ZCatalog does help (required for using
ZSQL Methods and ZCatalog in the same transaction).

Now I use SQL-based LoginManager, but why on earth did it only 
fail on DTML-Documents? Is it because I have much more of them so 
only then ZCatalog's subtransactions come into play?

Another question, why did the above also fail although I didn't restrict
any viewer permissions when searching? (i.e. why got LoginManagers ZSQL-Methods
started at all?).

cheers,
oliver






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




Re: [Zope] Zope+PostgreSQL

2000-11-28 Thread Martin Winkler

At 19:02 28.11.2000, Robert Senger wrote:
>The ZPoPyDA module refuses to work properly.

I'm using ZPygreSQLDA - just installed it today on yet another server and 
have no problems with it. Just read the README-file thoroughly and you 
should be successful in an hour or so.

Martin


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




Re: [Zope] Instance within Instance

2000-11-28 Thread Tim Cook

Daryl Stultz wrote:
> 
> Tim Cook wrote:
> > The problem here is that even though you set REQUEST, it is a
> > string. You need to be in the context of the parent _object_. You
> > should try  .
> 
> What's happening now is that my class2 is getting created at the same
> level as class1. What I want is class2 to be INSIDE class1. So I don't
> want the parent context, I want the class1 context.
>  gets me the class2 instance at the
> same level...
> 
> How can I get a new context of the newly created class1 instance?

This dtml-with should be in a DTML Method, not in your
constructor.  As I recall you are trying to construct the class2
from inside the class1 constructor.  There may be a way to get
that to work, I don't know. But if you use a DTML Method like
this:

--- add_myclass ---
This method contains a form to gather all of your required
property values.
It should POST to add_myclassProcessor.

---


--- add_myclassProcessor --
...

...


  



...

...


  




---

I guarantee that you will end up with a folder MyClass1ID that
contains MyClass2ID.

This may not be the most spectacular Zope code. There are alot of
things that Zope can do that I don't know yet. But this works and
it's readable when indented properly.

Maybe, someone else can telly you a REALLY COOL way to get it
done from inside the Class1 constructor. But if you want it to
work now. Try this way. 


HTH,

-- Tim Cook, President --
Free Practice Management,Inc. | http://FreePM.com
Office: (901) 884-4126
Censorship: The reaction of the ignorant to freedom.

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




Re: [Zope] AND operator and ZCatalog

2000-11-28 Thread The Doctor What

* Michel Pelletier ([EMAIL PROTECTED]) [001128 15:26]:
> Text indexes implicitly Or their search terms if no operator is
> specified.  Don't ask me why, I don't know.
> 
> if you want to change this behavior, edit
> lib/python/SearchIndex/UnTextIndex.py on or about line 451, change the
> 'default_operator' argument to the query method to And:
> 
> def query(self, s, default_operator = Or, ws = (string.whitespace,)):
> 
> to:
> 
> def query(self, s, default_operator = And, ws = (string.whitespace,)):

That's more like what I wanted. :-)

Ciao!

-- 
"You know, if you shoot me, you're liable to lose a lot of those humanitarian awards."
--Fletch (Fletch)

The Doctor What: A Holtje Production 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 )




Re: [Zope] ZODBC configuration problems

2000-11-28 Thread paul_s_johnson

   
   
   
   
"Capesius,   To: [EMAIL PROTECTED] 
   
Alan"cc: [EMAIL PROTECTED]
   
  
   
Sent by:   
   
zope-admin@zo  
   
pe.org 
   
   
   
   
   
11/28/00   
   
01:29 PM   
   
   
   
   
   








>Are you running 2.2?  Look at: http://www.egroups.com/message/zope/36392

>Is the Access DB on the same server as Zope? If not, you may be running
into
>problems accessing the network. The Zope service may need to be switched
to
>run under a user account that has access to the network resource. The NT
>System account does not have network authority.
>http://msdn.microsoft.com/library/periodic/period98/ewn9824.htm
>http://support.microsoft.com/support/kb/articles/Q235/5/36.ASP

>Is the ODBC DSN a system DSN? Don't use User DSN.

>Alan Capesius, MCSE+21
>Sysmex Corp of America

Based on your info I figured my install might need some upgrading. I
updated Zope ver. 2.2.0 to ver. 2.2.4 and my ODBC problems went away. Works
great.

Doing database integration is going to be a lot easier with Zope compared
to Perl/CGI. Zope is a beautiful thing.

Thanks for the help,

P. Johnson




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




Re: [Zope] ZCatalog and dates

2000-11-28 Thread Uros Midic

> If I do a search for both meta_type of "news" a date of 2000/11/16 in the
> goLiveDate field the results page returns "There was no data matching this
> Catalog query". Yet when I do a search for the meta_type of "news" alone I
> see that indeed the Catalog contains 2 entries with 2000/11/16 in the
> goLiveDate field.
>
> Why doesn't it find any entries when I search by date?

If goLiveDate is of DateTime type and is being indexed as a field index, try
using a range, for instance:





 someDate is _.DateTime('2000/11/16 00:00') or something like that.

p.s. It's very hard to catch a particular moment in the time continuum, but
it is easier with a time interval. :-)



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




RE: [Zope] ZCatalog and dates

2000-11-28 Thread James Sintz

They are a date type.

The date index or goLiveDate index is now a keyword index instead of a text
index. However, when I try to find items of the meta_type "news" to catalog
I get an AttributeError with an error value of  __getitem__



What am I doning wrong??

Jamey

> -Original Message-
> From: Andy McKay [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, November 28, 2000 3:10 PM
> To:   James Sintz; [EMAIL PROTECTED]
> Subject:  Re: [Zope] ZCatalog and dates
> 
> Are your dates actually of type date or string? If they are dates make
> sure
> your date index is a keyword index and that the input is also of type
> date.
> --
>   Andy McKay, Developer.
>   ActiveState.
> 
> - Original Message -
> From: "James Sintz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 28, 2000 11:37 AM
> Subject: [Zope] ZCatalog and dates
> 
> 
> >
> > I have a ZCatalog set up to index a date field and a title field.
> >
> > When I do a search for meta_type "news" I get a tabular list back of all
> 18
> > cataloged items showing, among other things the date field (goLiveDate)
> and
> > the title field.
> >
> > If I do a search for both meta_type of "news" a date of 2000/11/16 in
> the
> > goLiveDate field the results page returns "There was no data matching
> this
> > Catalog query". Yet when I do a search for the meta_type of "news" alone
> I
> > see that indeed the Catalog contains 2 entries with 2000/11/16 in the
> > goLiveDate field.
> >
> > Why doesn't it find any entries when I search by date?
> >
> >
> > 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 )
> >

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

2000-11-28 Thread Kyler B. Laird


I'm allowing users to initialize their own folders,
but I've run into a problem with ownership.  If I
simply do manage_addFolder(), the folder is created
"unowned".

I feel like I've looked everywhere for a clue on
how to set the ownership, but I haven't caught it.
Surely I'm missing something incredibly obvious (to
everyone else).

Anyone want to enlighten me?  I'd especially
appreciate a pointer to how I should have figured
this out on my own.

Thank you.

--kyler

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




Re: [Zope] AND operator and ZCatalog

2000-11-28 Thread Michel Pelletier

The Doctor What wrote:
> 
> * Dieter Maurer ([EMAIL PROTECTED]) [001127 17:31]:
> > Bak @ kedai writes:
> >  > i have a ZCatalog that indexes news.  i use keyword index, and text index.
> >  > when i try
> >  >
> >  > 
> >  >   .
> >  > it seems that the search was ORed, not ANDed.
> >  >
> >  > i hope i'm clear enough.
> > I tried it out:
> > For me, it was definitely an AND.
> >
> > What I did:
> >   Make a search for "Meta Type=Document Template" => lots of hits.
> >   Add "Title=" to the search => no hits
> >   Add "Title=Elvis" => some hits
> >
> > as I would expect.
> 
> Those are anded, but principiasourcesearch isn't.
> 

Text indexes implicitly Or their search terms if no operator is
specified.  Don't ask me why, I don't know.

if you want to change this behavior, edit
lib/python/SearchIndex/UnTextIndex.py on or about line 451, change the
'default_operator' argument to the query method to And:

def query(self, s, default_operator = Or, ws = (string.whitespace,)):

to:

def query(self, s, default_operator = And, ws = (string.whitespace,)):


-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] AND operator and ZCatalog

2000-11-28 Thread The Doctor What

* Dieter Maurer ([EMAIL PROTECTED]) [001127 17:31]:
> Bak @ kedai writes:
>  > i have a ZCatalog that indexes news.  i use keyword index, and text index.  
>  > when i try 
>  > 
>  > 
>  >   .
>  > it seems that the search was ORed, not ANDed.  
>  > 
>  > i hope i'm clear enough.
> I tried it out:
> For me, it was definitely an AND.
> 
> What I did:
>   Make a search for "Meta Type=Document Template" => lots of hits.
>   Add "Title=" to the search => no hits
>   Add "Title=Elvis" => some hits
> 
> as I would expect.

Those are anded, but principiasourcesearch isn't.

Searching for: zcatalog fish
http://www.zope.org/SiteIndex/search?date%3Adate=1969%2F12%2F31++16%3A00%3A00+US%2FPacific&date_usage=range%3Amin&text_content=zcatalog+fish

versus: zcatalog AND fish
http://www.zope.org/SiteIndex/search?date%3Adate=1969%2F12%2F31++16%3A00%3A00+US%2FPacific&date_usage=range%3Amin&text_content=zcatalog+AND+fish

Ciao!

-- 
There is no sweeter sound than the crumbling of your fellow man.
-- Groucho Marx

The Doctor What: A really hip dude   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 )




Re: [Zope] [BUG] [Zserver] GET and HEAD give different MIME types

2000-11-28 Thread Martijn Pieters

On Tue, Nov 28, 2000 at 10:31:18AM +0100, Stephane Bortzmeyer wrote:
> 
> application/octet-stream is sent when I HEAD while the proper text/html is 
> sent if I GET??? And I don't have the same headers at all?

<> 
> Server: Zope/Zope 2.1.6 (source release, python 1.5.2, linux2) ZServer/1.1b1

This behaviour has changed, updated if you like, since version 2.2.0b1.
See the change file:

  http://www.zope.org/Products/Zope/2.2.0b1/CHANGES.txt

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

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

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




Re: [Zope] ZCatalog and dates

2000-11-28 Thread Andy McKay

Are your dates actually of type date or string? If they are dates make sure
your date index is a keyword index and that the input is also of type date.
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "James Sintz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 11:37 AM
Subject: [Zope] ZCatalog and dates


>
> I have a ZCatalog set up to index a date field and a title field.
>
> When I do a search for meta_type "news" I get a tabular list back of all
18
> cataloged items showing, among other things the date field (goLiveDate)
and
> the title field.
>
> If I do a search for both meta_type of "news" a date of 2000/11/16 in the
> goLiveDate field the results page returns "There was no data matching this
> Catalog query". Yet when I do a search for the meta_type of "news" alone I
> see that indeed the Catalog contains 2 entries with 2000/11/16 in the
> goLiveDate field.
>
> Why doesn't it find any entries when I search by date?
>
>
> 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 )
>


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




Re: [Zope] Factoids for supporting zope

2000-11-28 Thread Dennis Nichols

At 11/28/00 11:34 AM, albert boulanger wrote:
>From: "Chris McDonough" <[EMAIL PROTECTED]>
> >   Ah.  Well, my opinion is that it'd be fairly dangerous to make the 
> assertion
> >   that (as great as they both are) Zope and the Zope community can "make up
> >   for" the other half of the capital they need to develop the software they
> >   want.  So what's the decision they're trying to make?  Whether to 
> develop at
> >   all?
>
>Whether to go with portal products from Plumtree or iPlanet.

If this implies that you are considering using Zope's PTK, then you should 
be aware of this: You can *not* get commercial support from Digital 
Creations for PTK because PTK is not a released product. If you think you 
may need such support before PTK gets to 1.0, then you had best not use the 
PTK. But that's no reason to not use the rest of Zope.

--
Dennis Nichols
[EMAIL PROTECTED]


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




Re: [Zope] ZODBC configuration problems

2000-11-28 Thread Pavel V. Piankov

>sources I receive the error "Invalid connection string" except for one of

If you are using the last ZODBCDA there should be no problems granted that
you have provided the proper connection string. check the connection object,
there sould be
written down smth. like '  ' or  '
 '
I don`t remember exactly.


regards.
--
pashah



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

2000-11-28 Thread James Sintz


I have a ZCatalog set up to index a date field and a title field.

When I do a search for meta_type "news" I get a tabular list back of all 18
cataloged items showing, among other things the date field (goLiveDate) and
the title field.

If I do a search for both meta_type of "news" a date of 2000/11/16 in the
goLiveDate field the results page returns "There was no data matching this
Catalog query". Yet when I do a search for the meta_type of "news" alone I
see that indeed the Catalog contains 2 entries with 2000/11/16 in the
goLiveDate field.

Why doesn't it find any entries when I search by date?


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 )




[Zope] ZODBC configuration problems

2000-11-28 Thread Capesius, Alan

Are you running 2.2?  Look at: http://www.egroups.com/message/zope/36392

Is the Access DB on the same server as Zope? If not, you may be running into
problems accessing the network. The Zope service may need to be switched to
run under a user account that has access to the network resource. The NT
System account does not have network authority.
http://msdn.microsoft.com/library/periodic/period98/ewn9824.htm
http://support.microsoft.com/support/kb/articles/Q235/5/36.ASP

Is the ODBC DSN a system DSN? Don't use User DSN.

Alan Capesius, MCSE+21
Sysmex Corp of America


>>>Message: 17
>>>   Date: Tue, 28 Nov 2000 09:59:32 -0600
>>>   From: [EMAIL PROTECTED]
>>>Subject: ZODBC configuration problems
>>>
>>>The permissions on this database are such that any anonymous user can
>>>access its data so the error message appears to be 
>>>inaccurate.  I double
>>>checked the db permissions to make sure this is the case.
>>>
>>>I am running Zope on NT 4.0 and using Access 97.  The 
>>>logged-in user on the
>>>webserver is not a member of any Access-related workgroups so this
>>>eliminates most security-related access issues (I think) and 
>>>none of the
>>>databases are passworded.
>>>
>>>There's some flakiness going on here.  Any recommendations 
>>>for isolating
>>>and resolving these problems?
>>>
>>>Thanks,
>>>
>>>P. Johnson
>>>
>>>
>>>___
>>>Zope maillist  -  [EMAIL PROTECTED]
>>>http://lists.zope.org/mailman/listinfo/zope
>>>**   No cross posts or HTML encoding!  **
>>>(Related lists - 
>>> http://lists.zope.org/mailman/listinfo/zope-announce
>>> http://lists.zope.org/mailman/listinfo/zope-dev )
>>>
>>>
>>>
>>>_
>>>___
>>>_
>>>___
>>>
>>>Message: 18
>>>   Date: Tue, 28 Nov 2000 11:41:50 -0500
>>>   From: "Chris McDonough" <[EMAIL PROTECTED]>
>>>Subject: Re: Factoids for supporting zope
>>>
> Our client thought that the recent VC money was about 
>>>1/2 what would
> be needed to make it fly. My argument is that money 
>>>is leveraged by
> the active Zope community so a crux in my logic is 
>>>how strong this
> community is.

1/2 of what would be needed to make it fly with Zope?  
>>>Or 1/2 of what
>>>would
be needed with any app server?


 Since they come from a non Zope context it would be from 
>>>the general
 position and the onus is on me to bring in the Zope context in the
 construction of my argument.
>>>
>>>Ah.  Well, my opinion is that it'd be fairly dangerous to 
>>>make the assertion
>>>that (as great as they both are) Zope and the Zope community 
>>>can "make up
>>>for" the other half of the capital they need to develop the 
>>>software they
>>>want.  So what's the decision they're trying to make?  
>>>Whether to develop at
>>>all?
>>>
>>>
>>>
>>>
>>>___
>>>Zope maillist  -  [EMAIL PROTECTED]
>>>http://lists.zope.org/mailman/listinfo/zope
>>>**   No cross posts or HTML encoding!  **
>>>(Related lists - 
>>> http://lists.zope.org/mailman/listinfo/zope-announce
>>> http://lists.zope.org/mailman/listinfo/zope-dev )
>>>
>>>
>>>
>>>_
>>>___
>>>_
>>>___
>>>
>>>Message: 19
>>>   Date: Tue, 28 Nov 2000 17:28:11 +0100
>>>   From: "Max M" <[EMAIL PROTECTED]>
>>>Subject: RE: How do i write ?
>>>
>>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
>>>Stoonsdesign
>>>
The thing is that I have this page (made by somebody else) 
>>>wich is supposed
>>>to
look up some words in a database by writing:
>>>
>>>Hi Stoons
>>>
>>>It really is impossible to answer that question without 
>>>knowing how that
>>>page works.
>>>
>>>But maybe letter=* will work.
>>>
>>>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 )
>>>
>>>
>>>
>>>_
>>>___
>>>_
>>>___
>>>
>>>Message: 20
>>>   Date: Tue, 28 Nov 2000 12:34:59 -0400
>>>   From: "Dany Rioux" <[EMAIL PROTECTED]>
>>>Subject: RE: Possible disaster upgrading to 2.2.4
>>>
>>>I was thinking about downloading the ZDiscussions product and install
>>>it but from what I can see, it looks like it needs so

Re: [Zope] Problem with an INTERBASE connection

2000-11-28 Thread Bob Tierney

Is it sysadm or should it be sysdba as the user?

_

Robert E. Tierney   EMail: [EMAIL PROTECTED]
Going VirtualHTTP: www.goingv.com
10800 Independence Pointe Pkwy  Phone: 1-704-849-0731 x109
Matthews, NC 28105Fax: 1-704-849-2279
  AIM: RETierney
_

On Tue, 28 Nov 2000, Francois-regis Chalaoux wrote:

> Trying to run a connection with this Database Connection String : 'C:?Program 
>Files?Borland?InterBase?examples?Database?employee.gdb sysadm
> masterkey', I got the following error : Invalid connection string: 'C:?Program 
>Files?Borland?InterBase?examples?Database?employee.gdb sysadm
> masterkey'.
> 
> where is the bug!?
> 
> FRC
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> 


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




[Zope] Problem with an INTERBASE connection

2000-11-28 Thread Francois-regis Chalaoux

Trying to run a connection with this Database Connection String : 'C:?Program 
Files?Borland?InterBase?examples?Database?employee.gdb sysadm
masterkey', I got the following error : Invalid connection string: 'C:?Program 
Files?Borland?InterBase?examples?Database?employee.gdb sysadm
masterkey'.

where is the bug!?

FRC

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




Re: [Zope] context in Python Script

2000-11-28 Thread Chris Gray

D'oh!

Thanks, Michel.  That was the problem.  Right now bindings all default to
blank in a new external script.

Cheers,
Chris


On Tue, 28 Nov 2000, Michel Pelletier wrote:

> Chris Gray wrote:
> > 
> > I still can't get external Python Scripts to work as described in the Zope
> > Book.  I am using the version of Python Scripts from the public
> > CVS.  Internal Scripts work fine, but I can't seem to use the
> > "context" object in an external script.
> > 
> > def tryContext():
> > """tryContext function"""
> > return context.objectIds()
> > 
> > gives a NameError on context.
> 
> Look at your 'Bindings' tab.  The 'context' binding should be
> 'context'.  If it's something else (like 'self') then change it.
> 
> Basicly, 'container' should be 'self' and 'context' should be 'context'.
> 
> -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] Python method: recursive function gives NameError

2000-11-28 Thread Michel Pelletier

Willem Broekema wrote:
> 
> I have a simple recursive function in a Python method that gives a
> NameError (2.2.4 on Win98).
> 
> The function (in PM named 'rec'):
> ---
> def myfunc(i):
>   if i >= 10: return myfunc(1)
>   else: return 1
> 
> return myfunc(11)
> ---
> 
> The end of the traceback:
> ---
> File c:\myzopeinstance\...cts\PythonMethod\PythonMethod.py, line 168, in
> __call__
> (Object: rec)
> (Info: ((), {}, None))
> File , line 6, in rec
> (Object: myfunc)
> File , line 3, in myfunc
> NameError: (see above)
> ---
> 
> Isn't it allowed to have a recursive function here?

Yes, but that's not your problem.  Your problem is it can't resolve the
name 'myfunc'.  You need to say self.rec(1) if you are using old python
methods (and make sure self is a parameter), or self.myfunc(1) if you
are using new ones.  Do you see why?  The python corollary:

class Foo:

  def myfunc(self, i):
if i >= 10: return self.myfunc(1)
else: return 1

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




[Zope] Python Script and O'Reilly Book

2000-11-28 Thread Michel Pelletier

Hi folks,

We get quite a bit of mail about how the book and Python Scripts don't
make sense with each other any more.  We're aware of a couple issues:

o The Book says "Python Method" and documents the version in CVS

o The current release of "Python Methods" does not work with the book
examples, you need to check them out of CVS (are there may still be some
issues)

o "Python Methods" are now "Python Scripts"

o The book explains "Methods" in a unified way, this needs to be split
up and broken out.

We apologize for the inconsistencies.  Obviously, these things are going
to all be worked out real soon now.  We wanted to make a general
announcement because we just can't handle all of the questions that come
to us directly by mail.  We want to warn you though: Python Scripts are
alpha, CVS code.  Additionaly, the book is "beta" documentation. 
Neither of these artifacts are finished or released yet, so please
always be aware that you need to use them at your own discretion.

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




[Zope] tree traversing & publishing

2000-11-28 Thread Milos Prudek

I do not quite understand how Zope traverses a tree. 

I created "ZooExhibit" Z Class within ZooExhibit factory, and
"ExhibitProperties" prop.sheet within that class, with an "animal"
property. I made association between "Edit" name and
propertysheets/ExhibitProperties/manage. I made an instance of the Z
Class called "Rabbit" within Zoo folder. But when I access
http://Zoo/Rabbit/propertysheets/ExhibitProperties/animal, I get an
error "Missing doc string".

Perhaps a similar problem: I created "BWE" product/Z Class, and on the
Methods tab I created "pop" folder with a default "index_html". I
created an instance of that Z Class called "BWE_inst" within a "BWE"
folder. I can access "http://BWE/BWE_inst", but when I try
"http://BWE/BWE_inst/pop", browser gives me Authorization failed.


--
Milos

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




Re: [Zope] context in Python Script

2000-11-28 Thread Michel Pelletier

Chris Gray wrote:
> 
> I still can't get external Python Scripts to work as described in the Zope
> Book.  I am using the version of Python Scripts from the public
> CVS.  Internal Scripts work fine, but I can't seem to use the
> "context" object in an external script.
> 
> def tryContext():
> """tryContext function"""
> return context.objectIds()
> 
> gives a NameError on context.

Look at your 'Bindings' tab.  The 'context' binding should be
'context'.  If it's something else (like 'self') then change it.

Basicly, 'container' should be 'self' and 'context' should be 'context'.

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

2000-11-28 Thread J. Atwood

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

That should give you a good idea... My guess is that there are 
probably 1-2,000 active developers with more like 500 very active 
(building products, submitting bugs, betas and code). You should, 
however, be careful with these numbers b/c some of the more success 
Open Source projects are run by under 10 developers (Postgresql for 
one).

The three big things that point to a bright future of Zope/DC and 
that any business clown should be able to figure out are...

1) DC was profitable as a consulting company
2) DC just got $12,000,000 in a harsh market
3) Guido and his python dev team are now at DC

Again... this is time break out and rejoice. We might have to rename 
2001 "The Year of Zope".

J



At 1:03 PM -0500 11/28/2000, albert boulanger wrote:
>I agree. DC and Zope are connected but if DC were to fold tomorrow
>(and trust me they are no where near folding) Zope would live on.
>There are thousands of active developers out there that would take it
>and run with it if DC decided not to. There are websites and
>structures to help in this day of Open Source 'openness'.
>
>Yes, I wanted to get an estimate of this community. Can anyone tell me
>how large the Members folder is currently at Zope.org? I recall a
>number being greater than 10K when Zope.org switched to Btree for the
>Members folder.
>
>Regards,
>Albert Boulanger


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




Re: [Zope] Factoids for supporting zope

2000-11-28 Thread albert boulanger



   I agree. DC and Zope are connected but if DC were to fold tomorrow 
   (and trust me they are no where near folding) Zope would live on. 
   There are thousands of active developers out there that would take it 
   and run with it if DC decided not to. There are websites and 
   structures to help in this day of Open Source 'openness'.

Yes, I wanted to get an estimate of this community. Can anyone tell me
how large the Members folder is currently at Zope.org? I recall a
number being greater than 10K when Zope.org switched to Btree for the
Members folder.

Regards,
Albert Boulanger



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




Re: [Zope] Client/Server Product

2000-11-28 Thread Andy McKay

> Thank you very much. I would like help you, but I am not so good as you to
> develop it.
> Congratulations for your product.

Oh I didnt develop it cant claim any credit there.

> Anderson
>
> -Original Message-
> From: Andy McKay [mailto:[EMAIL PROTECTED]]
> Sent: terça-feira, 28 de novembro de 2000 15:44
> To: Anderson Ami; [EMAIL PROTECTED]
> Subject: Re: [Zope] Client/Server Product
>
>
> > Has anybody used the Client/Server Product ?
>
> Yes its excellent and I wish time to help develop it :(
>
> > If I create a dtml document on the server, can I use it through the
client
> ?
>
> No, it facilitates the moving of objects from one zope to another. Think
of
> it as a more advanced import / export feature.
>
> > is the server just a repository that can´t make changes ?
>
> No the server can make changes, but then it could be out of sync...
>
> --
>   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 )




[Zope] Zope+PostgreSQL

2000-11-28 Thread Robert Senger

Hi all,

The ZPoPyDA module refuses to work properly. After several problems installing 
PostgreSQL (V.
7.0.3), ZPoPyDA (0.7 or 0.5) and PoPy (V. 1.4.1), Zope says at start that to please 
'update your
version of PoPy'. But I already have the newest available versions.

Does anybody have experience with PoPy/ZPoPyDA???

Thanks!

-- 
Dipl.-Phys. Robert Senger
Fachgebiet Raumfahrttechnik
Technische Universität München
Boltzmannstr. 15, D-85747 Garching
Tel:++49 / (0)89 / 289-15997
Fax:++49 / (0)89 / 289-16004
email:  [EMAIL PROTECTED]


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




[Zope] Import/Export Objects

2000-11-28 Thread Rafael Amer Ramon


Hi.

I have installed Zope-2.2.2 with mod_pcgi and the Apache server.
When I try to import some objects exported from a proviously running
ZServer, I get

Internal Server Error

and the following message in the Apache error_log file

[Tue Nov 28 19:05:26 2000] [error] PCGI Error: [503 Service Unavailable]
((116) unable to connect, fd=5) Success

Does anyboby know how I can solve this problem?

Thanks.
  
--
 _/_/  _/_/_/_/  _/_/_/  Rafael Amer Ramon
_/_/  _/_/  _/   Departament de Matemàtica Aplicada II
   _/_/  _/_/_/_/  _/E.T.S.E.I.T.
  _/_/  _/_/ Universitat Politècnica de Catalunya 
 _/_/_/_/  _/_/_/_/_/e-mail: [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] Factoids for supporting zope

2000-11-28 Thread Chris McDonough

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

Ohhh... ;-)

Well, nothing beyond the general open-source mantra marketing and the stuff
that's on digicool.com will convince them of what they don't want to
believe.  It's interesting that the amount of money we're lacking to do what
is "needed" has been actually quantified by your client, as what is needed
is not defined.  ;-)

I think perhaps the strongest real-world argument you could potentially
provide is that survival of Zope is independent of the survival of Digital
Creations.  Although I think we're doing pretty darn well.  :-)





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

2000-11-28 Thread Spicklemire, Jerry

Albert said:

> Our client thought that the recent VC money was about 1/2 what would
> be needed to make it fly. My argument is that money is leveraged by
> the active Zope community so a crux in my logic is how strong this
> community is.

The "1/2" the capital needed" part is a puzzling assumption. 
Is your client trying to map some business school model onto 
DC / Zope? If so, you are absolutely correct to point out that 
Zope is Open Source, and has excellent support from DC, and the 
Zope Community, which by the way includes lot's of other folks 
using Zope in real world enterprises. 

Most of all, it's very important for your client to understand 
DC's business model, and the fact that the new VC Capital will 
be used to scale DC to meet the already explosive demand for 
Zope based solutions. As a services company, no doubt DC has 
grown accustomed to meeting paycheck schedules by fulfilling 
the requirements of an expanding client list. The investment, 
based on the press release, etc., will be applied to making 
more of the same happen sooner. This is just my take on the 
public information, I have no ties to DC, other than as a 
Zope and Python fan (and hopelessly bedazzled groupie).

If your client is sketchy about these details, it may be up 
to you to help them fill in the blanks. Have they checked out 
the Zope.org site, specifically Testimonials

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

and Case Studies?

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

Some of these are old, but there are some pretty good hints 
there re. what folks have done with, and think about, Zope. 

Open Source in general can be disorienting at first glance. 
There are several "pages" out there with interviews where Paul 
Everitt answers questions about DC's business model, etc.

Check these out:

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

 http://www.bizjournals.com/washington/stories/1999/05/24/focus4.html

and other articles here

 http://www.troubleshooters.com/tpromag/199906/_digcreate.htm

and elsewhere on the Web.

Later,
Jerry S.

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




Re: [Zope] Factoids for supporting zope

2000-11-28 Thread J. Atwood

>I am reading between the lines here.  I think that the original poster
>has an argument inside his company.  He wants to use Zope, and some
>office droid did financial research and concluded that Zope was
>undercapitalized.
>
>I think there are two questions to be posed here:
>
>1) Does Zope, in its current state, do what the poster needs to have
>done?  If so, it is capitalization should have no effect on the
>decision whatsoever, he has source, even if DC folds Zope will live
>on in some form.

I agree. DC and Zope are connected but if DC were to fold tomorrow 
(and trust me they are no where near folding) Zope would live on. 
There are thousands of active developers out there that would take it 
and run with it if DC decided not to. There are websites and 
structures to help in this day of Open Source 'openness'.

>
>One worthwhile observation is that DC claims to have been
>profitable prior to the VC investment.  I am not privy to strategy
>or details of DC's capitalization.  But, they do have a track record
>of profitablity and reasonable prudence.  With good management and
>luck, they will remain profitable, and that is the end need for a
>business.  If they stay profitable, they remain a business; if they
>never become profitable, it does not matter how they are capitalized,
>they will not survive.

I am sure that DC was profitable (I think they said two quarters 
before the 12 Mil). They were doing a lot of consulting and if you 
check their rates "2,300/day for work at a customer site and 
$1,800/day for work performed on Digital Creations premises" that is 
pretty darn good. They obviously had something to do with 
http://www.cbsnewyork.com and I am also sure that CBS has some nice 
deep pockets.

DC has been very smart in this market by creating and backing a good 
product, getting developer and designer buy-in and creating an 
undercurrent. Selling Zope would have been foolish, as proven by open 
sourcing ZEO.

At the end of the day Zope is going to be around as long as it is a 
powerful open source tool that can solve so many problems with such 
ease. There is no question that Zope and DC are about to take a big 
turn in the market. I say hold on to your hats.

J

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




Re: [Zope] Factoids for supporting zope

2000-11-28 Thread albert boulanger


   From: "Chris McDonough" <[EMAIL PROTECTED]>
   References: <[EMAIL PROTECTED]>
   Date: Tue, 28 Nov 2000 10:04:02 -0500
   MIME-Version: 1.0
   Content-Transfer-Encoding: 7bit
   X-Priority: 3
   X-MSMail-Priority: Normal
   X-Mailer: Microsoft Outlook Express 5.00.3018.1300
   X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
   Content-Type: text/plain;
   charset="Windows-1252"
   Content-Length: 1049


   >
   > Our client thought that the recent VC money was about 1/2 what would
   > be needed to make it fly. My argument is that money is leveraged by
   > the active Zope community so a crux in my logic is how strong this
   > community is.

   1/2 of what would be needed to make it fly with Zope?  Or 1/2 of what would
   be needed with any app server?


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




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




Re: [Zope] Client/Server Product

2000-11-28 Thread Andy McKay

> Has anybody used the Client/Server Product ?

Yes its excellent and I wish time to help develop it :(

> If I create a dtml document on the server, can I use it through the client
?

No, it facilitates the moving of objects from one zope to another. Think of
it as a more advanced import / export feature.

> is the server just a repository that can´t make changes ?

No the server can make changes, but then it could be out of sync...

--
  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] Possible disaster upgrading to 2.2.4

2000-11-28 Thread J. Atwood

Any idea of what version of ZDiscussions... since I do have a little 
something to do with that. I have been able to do upgrades.

J

At 12:41 PM -0500 11/28/2000, Chris McDonough wrote:
>"ZDBase" isn't part of Zope 2.2.4.  It's an add-on (but you probably knew
>that already).
>
>The ZDiscussions product AFAICT does something very wrong when it installs
>itself for the first time.  There have been numerous reports of problems
>with it when the Zope underneath of it changes.  I don't know why.  It'd be
>great to get it figured out.  I have a feeling that it plays games by
>installing some sort of singleton somewhere in the objectbase which doesn't
>get cleaned up when it's uninstalled.
>
>Other folks said packing didn't help.
>
>"ZODB corruption" (which I continue to maintain --somewhat quixotically--
>that it's really not, not in a literal sense anyway) will continue to
>manifest itself in the way you see it now.  If it's not otherwise
>interrupting operations, the only continued symptoms will be the oid errors
>you see.  You might be able to "start anew" by exporting all the objects in
>your Zope root to .zexp or .xml files (as well as all your TTW ZClass
>Products) and by subsequently reinstalling them in a new 2.2.4 instance
>(along with any requisite disk-based Products).
>
>- Original Message -
>From: "Jonathan Cheyne" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, November 28, 2000 12:09 PM
>Subject: Re: [Zope] Possible disaster upgrading to 2.2.4
>
>
>>  ok, its deffo to do with my data.fs cos the errors only start after that
>>  has been copied across. But the errors are different if i compare
>>  the console output from a failing 2.2.4 to a 2.2.0. If i do not install
>>  zdiscussions on 2.2.0 i only get the oid errors as items requiring display
>>  are requested from the database. with 2.4.4 i get the extra cannot import
>>  errors before zope starts regardless of whether zdiscussions are installed
>>  or not. something in zdbase is very different in 2.4.4.
>>
>>  questions:
>>
>>  1. Will packing my data.fs help? I havent done this since well never.
>>
>>  2. Is the potential corruption of my data.fs likely to explode in my face
>>  without warning or is it/ will it only manifest itself during things liek
>>  product installs, upgrades etc?
>>
>>  cheers
>>
>>  Jonathan
>>
>>
>>  ___
>>  Zope maillist  -  [EMAIL PROTECTED]
>>  http://lists.zope.org/mailman/listinfo/zope
>>  **   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] html expertise anyone.

2000-11-28 Thread Andy McKay

I think this is a css question and not related to DTML. Go to
http://freezope.nipltd.net/dna and you will see a simple style sheet that
shows use of active and visited links.
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Oleg Broytmann" <[EMAIL PROTECTED]>
To: "Robin Becker" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 9:15 AM
Subject: Re: [Zope] html expertise anyone.


> On Tue, 28 Nov 2000, Robin Becker wrote:
> > I know about the style="color: red" type of inline, I was looking for
> > the :link, :active, :visited etc attributes for inline style. I can't
> > seem to get these to work. The color attribute seems to set all of the
> > states.
>
>I think it's impossible to set pseudoclasses inline.
>
> Oleg.
> 
>  Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]
>Programmers don't die, they just GOSUB without RETURN.
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


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




Re: [Zope] Factoids for supporting zope

2000-11-28 Thread jpenny

> >Ah.  Well, my opinion is that it'd be fairly dangerous to make the
> assertion
> >that (as great as they both are) Zope and the Zope community can "make
> up
> >for" the other half of the capital they need to develop the software
> they
> >want.  So what's the decision they're trying to make?  Whether to
> develop at
> >all?
> >
> > Whether to go with portal products from Plumtree or iPlanet.
> 

I am reading between the lines here.  I think that the original poster
has an argument inside his company.  He wants to use Zope, and some
office droid did financial research and concluded that Zope was 
undercapitalized.

I think there are two questions to be posed here:

1) Does Zope, in its current state, do what the poster needs to have
done?  If so, it is capitalization should have no effect on the 
decision whatsoever, he has source, even if DC folds Zope will live
on in some form.

2) If not, well, what does he need?  Has DC been contacted regarding
these needs?  

One worthwhile observation is that DC claims to have been
profitable prior to the VC investment.  I am not privy to strategy
or details of DC's capitalization.  But, they do have a track record
of profitablity and reasonable prudence.  With good management and
luck, they will remain profitable, and that is the end need for a
business.  If they stay profitable, they remain a business; if they
never become profitable, it does not matter how they are capitalized,
they will not survive.

Jim

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




Re: [Zope] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Chris McDonough

"ZDBase" isn't part of Zope 2.2.4.  It's an add-on (but you probably knew
that already).

The ZDiscussions product AFAICT does something very wrong when it installs
itself for the first time.  There have been numerous reports of problems
with it when the Zope underneath of it changes.  I don't know why.  It'd be
great to get it figured out.  I have a feeling that it plays games by
installing some sort of singleton somewhere in the objectbase which doesn't
get cleaned up when it's uninstalled.

Other folks said packing didn't help.

"ZODB corruption" (which I continue to maintain --somewhat quixotically--
that it's really not, not in a literal sense anyway) will continue to
manifest itself in the way you see it now.  If it's not otherwise
interrupting operations, the only continued symptoms will be the oid errors
you see.  You might be able to "start anew" by exporting all the objects in
your Zope root to .zexp or .xml files (as well as all your TTW ZClass
Products) and by subsequently reinstalling them in a new 2.2.4 instance
(along with any requisite disk-based Products).

- Original Message -
From: "Jonathan Cheyne" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 12:09 PM
Subject: Re: [Zope] Possible disaster upgrading to 2.2.4


> ok, its deffo to do with my data.fs cos the errors only start after that
> has been copied across. But the errors are different if i compare
> the console output from a failing 2.2.4 to a 2.2.0. If i do not install
> zdiscussions on 2.2.0 i only get the oid errors as items requiring display
> are requested from the database. with 2.4.4 i get the extra cannot import
> errors before zope starts regardless of whether zdiscussions are installed
> or not. something in zdbase is very different in 2.4.4.
>
> questions:
>
> 1. Will packing my data.fs help? I havent done this since well never.
>
> 2. Is the potential corruption of my data.fs likely to explode in my face
> without warning or is it/ will it only manifest itself during things liek
> product installs, upgrades etc?
>
> cheers
>
> Jonathan
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>


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




Re: [Zope] ZopeWeaver?

2000-11-28 Thread Andy McKay

> There are now all manner of Dreamweaver extensions, both trivial and
> sophisticated.
> http://www.macromedia.com/exchange/dreamweaver/
> [check out the various categories listed in the 'browse extensions'
dropdown
> menu near top of page]
>
> I would love to hear from anyone has been using Dreamweaver with Zope
> [recently]..
> How you organize your tasks between Dreamwever features and Zope features,
> etc?

I tried it briefly and found that Dreamweaver cant seem to handle a file
with no extension such as index_html, so gave up.

> :Have you and problems with site upload from Dreamweaver into ZServer?
> :Use of Tables to implement zopesite design changes.
> :Not losing DTML tags..
> :handling DTML

it just doesnt destroy them

> :managing files locally and their relationship to ZODB

use ftp directly in dreamweaver

--
  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] html expertise anyone.

2000-11-28 Thread Oleg Broytmann

On Tue, 28 Nov 2000, Robin Becker wrote:
> I know about the style="color: red" type of inline, I was looking for
> the :link, :active, :visited etc attributes for inline style. I can't
> seem to get these to work. The color attribute seems to set all of the
> states.

   I think it's impossible to set pseudoclasses inline.

Oleg.

 Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




Re: [Zope] Zope mailing list doesn't work

2000-11-28 Thread ethan mindlace fremen

Milos Prudek wrote:

> Today, I can't change my options for [EMAIL PROTECTED] I went to
> http://lists.zope.org/mailman/listinfo/zope, and it says that the
> document has moved to http://lists.zope.org/mailman/listinfo/zope, ad
> infinitum.
> 
> If youa are reading this then I can post, but I cannot read since I have
> disabled delivery a few days ago and now I can't enable it due to the
> above mentioned problem.
> 
> Thanks for any help, and please mail me directly


It appears that for some brief period of time, lists.zope.org was 
pointed at the wrong IP address. I'm not sure how that happened- all the 
dns records point the right place.

Anyway, it's working for me now, but if it is still not working for you, 
please visit:

http://209.67.167.110/lists.zope.org/mailman/listinfo/zope

to adjust your changes.

Thanks,

~ethan


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




Re: [Zope] Building Zope within a Virtual Server

2000-11-28 Thread ethan mindlace fremen

Norman Khine wrote:

> Hello,
> The new zope site seems to be running very well.
> 
> I have a virtual server account on which I had previously installed zope
> 2.2.2 which was later successfully upgraded to 2.2.4, unfortunantly I had
> problems in setting up MySQLdb.
> 
> I have now removed zope and python 1.5.2, re-installed python2.0, within my
> domain. Which is part of the larger domain. So my root directory is not in /
> but is in /usr/home/mydir/ , within which I have installed python2.0 I have
> changed the .login file so that the path for the new python installation is
> available through out my domain. So that when I type python2.0 at the # I
> can use the python interpreter, this seems to work OK.
> 
> Therefore my question/s are:
> If there is python on the root machine as well as on the virtual servers, so
> that both python and python2.0 will run from the command prompt, will this
> cause problems when I install the new virsion of zope 2.2.4?


If you run the server as you, and you compile zope from source as you, 
it should use "your" python.


Don't know.

Hope that helps,

~ethan mindlace fremen
Zopatista Community Liason


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




Re: [Zope] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Jonathan Cheyne

ok, its deffo to do with my data.fs cos the errors only start after that
has been copied across. But the errors are different if i compare
the console output from a failing 2.2.4 to a 2.2.0. If i do not install
zdiscussions on 2.2.0 i only get the oid errors as items requiring display
are requested from the database. with 2.4.4 i get the extra cannot import
errors before zope starts regardless of whether zdiscussions are installed
or not. something in zdbase is very different in 2.4.4.

questions:

1. Will packing my data.fs help? I havent done this since well never.

2. Is the potential corruption of my data.fs likely to explode in my face
without warning or is it/ will it only manifest itself during things liek
product installs, upgrades etc?

cheers

Jonathan 


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




Re: [Zope] Factoids for supporting zope

2000-11-28 Thread Chris McDonough

>Ah.  Well, my opinion is that it'd be fairly dangerous to make the
assertion
>that (as great as they both are) Zope and the Zope community can "make
up
>for" the other half of the capital they need to develop the software
they
>want.  So what's the decision they're trying to make?  Whether to
develop at
>all?
>
> Whether to go with portal products from Plumtree or iPlanet.

I'm not sure I understand... they know they don't have enough money to build
what they want, but they're going to do it anyway?  Isn't this a recipe for
disaster?



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




Re: [Zope] html expertise anyone.

2000-11-28 Thread rlanham

dtml as a server side scripting language is not going to change anything
dynamically on your page. Maybe you mean DHTML.

In IE everything is in the DOM and can be changed. Netscape is not thorough, and I 
don't think there is a hook that will change a.visited, et al.

But you could try.

IE has a links collection, like .images and .all




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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Simon Michael <[EMAIL PROTECTED]>
writes
>Robin Becker <[EMAIL PROTECTED]> writes:
>> I am trying to change the colour of links dynamically using dtml.
>> However, I cannot find the right incantation to change my links using an
>> inline style except for
>> 
>> A
>
>Do you mean something like
>
>A
>
>I guess this is dynamic at page load time. Perhaps you want the colors
>to change without refreshing the page ?
>
>-Simon
...
I know about the style="color: red" type of inline, I was looking for
the :link, :active, :visited etc attributes for inline style. I can't
seem to get these to work. The color attribute seems to set all of the
states.
-- 
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 )




RE: [Zope] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Dany Rioux

I was thinking about downloading the ZDiscussions product and install
it but from what I can see, it looks like it needs some fixing.

I intend to upgrade to zope 2.2.4 when it was proven that it is stable
but I don't want to run into more troubles that I can chew on.

I will need a Discussion board when the site go live so should I
upgrade Zope and wait for another Discussion Product to come up or
install ZDiscussion and hold on the Zope upgrade?

TIA

Dany

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Bill
> Welch
> Sent: Tuesday, November 28, 2000 11:50 AM
> To: [EMAIL PROTECTED]
> Cc: Jonathan Cheyne
> Subject: Re: [Zope] Possible disaster upgrading to 2.2.4
>
>
> On Tue, 28 Nov 2000, Jonathan Cheyne wrote:
> > Ah, I tried reinstalling zddiscussions, no joy, i tried deleting
> > zdiscussions but when you restart zeop it reinstalls the
> two products as
> > broken.
>
> You have to delete it from lib/python/Products as well, but
> it's a red
> herring for the real issue (see below).
>
> > i tried a new install of 2.2.4 then copy across my
> data.fs bits and untar
> > various products in use on the site, but, exactly the
> same message. so it
> > may not be th eupgrade but something in 2.2.4 itself that
> my data.fs
> > dislikes.
>
> No, it's your data.fs that's the problem. It's been
> corrupted the same way
> several others have been the past few months (ZDiscussions
> is suspiciously
> overrepresented as the pickled data in the traceback). See
> the 'Is data.fs
> corrupted' thread.
>
> Bill.


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




Re: [Zope] Factoids for supporting zope

2000-11-28 Thread albert boulanger

   From: "Chris McDonough" <[EMAIL PROTECTED]>
   Cc: <[EMAIL PROTECTED]>
   References: <[EMAIL PROTECTED]>
   Date: Tue, 28 Nov 2000 11:41:50 -0500
   MIME-Version: 1.0
   Content-Transfer-Encoding: 7bit
   X-Priority: 3
   X-MSMail-Priority: Normal
   X-Mailer: Microsoft Outlook Express 5.00.3018.1300
   X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
   Content-Type: text/plain;
   charset="Windows-1252"
   Content-Length: 851

   >> Our client thought that the recent VC money was about 1/2 what would
   >> be needed to make it fly. My argument is that money is leveraged by
   >> the active Zope community so a crux in my logic is how strong this
   >> community is.
   >
   >1/2 of what would be needed to make it fly with Zope?  Or 1/2 of what
   would
   >be needed with any app server?
   >
   >
   > Since they come from a non Zope context it would be from the general
   > position and the onus is on me to bring in the Zope context in the
   > construction of my argument.

   Ah.  Well, my opinion is that it'd be fairly dangerous to make the assertion
   that (as great as they both are) Zope and the Zope community can "make up
   for" the other half of the capital they need to develop the software they
   want.  So what's the decision they're trying to make?  Whether to develop at
   all?

Whether to go with portal products from Plumtree or iPlanet.


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




Re: [Zope] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Chris McDonough

Yes, there definitely seems to be something funky with ZDiscussions.  It's
been at the heart of several threads which claim "ZODB corruption".  If
someone had the time to figure it out, I think we'd all feel better.  ;-)

- Original Message -
From: "Bill Welch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Jonathan Cheyne" <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 10:50 AM
Subject: Re: [Zope] Possible disaster upgrading to 2.2.4


> On Tue, 28 Nov 2000, Jonathan Cheyne wrote:
> > Ah, I tried reinstalling zddiscussions, no joy, i tried deleting
> > zdiscussions but when you restart zeop it reinstalls the two products as
> > broken.
>
> You have to delete it from lib/python/Products as well, but it's a red
> herring for the real issue (see below).
>
> > i tried a new install of 2.2.4 then copy across my data.fs bits and
untar
> > various products in use on the site, but, exactly the same message. so
it
> > may not be th eupgrade but something in 2.2.4 itself that my data.fs
> > dislikes.
>
> No, it's your data.fs that's the problem. It's been corrupted the same way
> several others have been the past few months (ZDiscussions is suspiciously
> overrepresented as the pickled data in the traceback). See the 'Is data.fs
> corrupted' thread.
>
> Bill.
>
>
>
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] 2.2.4 upgrade query

2000-11-28 Thread Brian Lloyd

> Further to my paniced posting earlier, I reinstalled 2.2.0, copied over my
> data.fs* and various products and everything fired up fine but i did one
> experiment (following on from Chris) - i didnt install zdiscussions. This
> resulted in major oids errors and my broken zclass as before/ install
> zdiscussions and bingo i am back in business. so. two questios:
> 
> 1. why does my zclass appear to require zdiscussions when it is not
> based on it?

Not sure on that...

> 
> 2. does 2.2.4 contain some parts of what was previously the standalone
> zdiscussions product?

No. The only thing I could think of is maybe some change in 
the way products are registered or something that affects 
ZDiscussions badly. I'm just guessing here. Have you tried 
going from 2.2.0 -> 2.2.1 or 2.2.2? If you see the same thing 
on one of them, that would narrow it down and we could look at 
the diffs between those releases and see if anything looks 
suspicious...


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




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




[Zope] Python method: recursive function gives NameError

2000-11-28 Thread Willem Broekema

I have a simple recursive function in a Python method that gives a
NameError (2.2.4 on Win98).

The function (in PM named 'rec'):
---
def myfunc(i):
  if i >= 10: return myfunc(1)
  else: return 1

return myfunc(11)
---

The end of the traceback:
---
File c:\myzopeinstance\...cts\PythonMethod\PythonMethod.py, line 168, in
__call__
(Object: rec)
(Info: ((), {}, None))
File , line 6, in rec
(Object: myfunc)
File , line 3, in myfunc
NameError: (see above)
---

Isn't it allowed to have a recursive function here?


- Willem

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




Re: [Zope] Factoids for supporting zope

2000-11-28 Thread Chris McDonough

>> Our client thought that the recent VC money was about 1/2 what would
>> be needed to make it fly. My argument is that money is leveraged by
>> the active Zope community so a crux in my logic is how strong this
>> community is.
>
>1/2 of what would be needed to make it fly with Zope?  Or 1/2 of what
would
>be needed with any app server?
>
>
> Since they come from a non Zope context it would be from the general
> position and the onus is on me to bring in the Zope context in the
> construction of my argument.

Ah.  Well, my opinion is that it'd be fairly dangerous to make the assertion
that (as great as they both are) Zope and the Zope community can "make up
for" the other half of the capital they need to develop the software they
want.  So what's the decision they're trying to make?  Whether to develop at
all?




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

2000-11-28 Thread Max M

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Stoonsdesign

>The thing is that I have this page (made by somebody else) wich is supposed
to
>look up some words in a database by writing:

Hi Stoons

It really is impossible to answer that question without knowing how that
page works.

But maybe letter=* will work.

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 )




[Zope] ZODBC configuration problems

2000-11-28 Thread paul_s_johnson

Alas, I am but a Zope newbie and need help getting my database connections
to work.  I have previously configured the ODBC Data Source Administrator
to link Access mdbs with the PERL DBI module and it has worked with no
problems.  I have installed the ZODBC product and in the Zope database
connection window all the names of the ODBC data sources that have been
configured show up in the listbox. Upon attempting to add any of the data
sources I receive the error "Invalid connection string" except for one of
the databases that Zope does accept.  Upon testing this database connection
with a test query I get the following error:

Error Type: sql.error
Error Value: ('42000', -1907, "[Microsoft][ODBC Microsoft Access 97 Driver]
Record(s) can't be read; no read permission on 'ProjectSheets'.")

The permissions on this database are such that any anonymous user can
access its data so the error message appears to be inaccurate.  I double
checked the db permissions to make sure this is the case.

I am running Zope on NT 4.0 and using Access 97.  The logged-in user on the
webserver is not a member of any Access-related workgroups so this
eliminates most security-related access issues (I think) and none of the
databases are passworded.

There's some flakiness going on here.  Any recommendations for isolating
and resolving these problems?

Thanks,

P. Johnson


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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Simon Michael

Robin Becker <[EMAIL PROTECTED]> writes:
> I am trying to change the colour of links dynamically using dtml.
> However, I cannot find the right incantation to change my links using an
> inline style except for
> 
> A

Do you mean something like

A

I guess this is dynamic at page load time. Perhaps you want the colors
to change without refreshing the page ?

-Simon

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




Re: [Zope] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Bill Welch

On Tue, 28 Nov 2000, Jonathan Cheyne wrote:
> Ah, I tried reinstalling zddiscussions, no joy, i tried deleting
> zdiscussions but when you restart zeop it reinstalls the two products as
> broken. 

You have to delete it from lib/python/Products as well, but it's a red
herring for the real issue (see below). 

> i tried a new install of 2.2.4 then copy across my data.fs bits and untar
> various products in use on the site, but, exactly the same message. so it
> may not be th eupgrade but something in 2.2.4 itself that my data.fs
> dislikes.

No, it's your data.fs that's the problem. It's been corrupted the same way
several others have been the past few months (ZDiscussions is suspiciously
overrepresented as the pickled data in the traceback). See the 'Is data.fs
corrupted' thread.

Bill.





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

2000-11-28 Thread Jonathan Cheyne


Further to my paniced posting earlier, I reinstalled 2.2.0, copied over my
data.fs* and various products and everything fired up fine but i did one
experiment (following on from Chris) - i didnt install zdiscussions. This
resulted in major oids errors and my broken zclass as before/ install
zdiscussions and bingo i am back in business. so. two questios:

1. why does my zclass appear to require zdiscussions when it is not
based on it?

2. does 2.2.4 contain some parts of what was previously the standalone
zdiscussions product?

Is this an obsure backwarsd dependency break kindo of thing?

I will stick to 2.2.0 for now, methinks.

cheers

Jonathan


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




Re: [Zope] PoPy and Delete results

2000-11-28 Thread Chris Gray

Thanks for the response, Dieter.

For consistency within Zope, an integer result could still be repackaged
as a sequence result.

For now I can do what I wanted to by:

select count(food) from penguins
where food='Henri Bergson'

(thus getting the number of records about to be affected by a delete 
as a sequence result) before running:

delete from penguins
where food='Henri Bergson'

Cheers,
Chris

On Tue, 28 Nov 2000, Dieter Maurer wrote:

> Chris Gray writes:
>  > In psql a delete command returns a count of the number of rows
>  > deleted.  Is this returned result available to a ZSQL method using PoPy or
>  > PyGreSQL?
> I think, Zope should pass integer results from SQL commands.
> But I fear, it does not.
> 
> When I looked at the code (quite some time ago), I had the impression,
> that Zope does only pass sequence results. Integer results
> are translated into 'None'.
> 
> 
> Dieter
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 


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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Robin Becker

In article <[EMAIL PROTECTED]>, Dany Rioux
<[EMAIL PROTECTED]> writes
>Robin,
>
>IIRC it can be done but I never used it myself because I think it's
>annoying and it is confusing for the visitors. *G* But you should
>definitively check www.echoecho.com. If it is possible it *will* be
>posted there.
>
...
thanks I'll have a look there.
-- 
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 )




Re: [Zope] Factory location and Add box pollution

2000-11-28 Thread Stefan H. Holek


Thanks, but it doesn't ;) The prob is that anything inside the
projectfolder's ZClass becomes invisible...


On Mon, 27 Nov 2000, Lalo Martins wrote:

> Create all your ZClasses normally, and make projectfolder a
> subclass of Folder. Then, move all the Factories (except the
> projectfolderFactory) to inside the projectfolder ZClass. This
> should do the same trick as LocalFactory.
> 
> 
> On Mon, Nov 27, 2000 at 02:38:42PM +0100, Stefan H. Holek wrote:
> > I want to create a folderish ZClass to contain all my
> > project specific ZClasses. The idea is to only have them show up
> > when inside my projectfolder. Just like the ZClass object only
> > shows up inside a product's folder.
> > 
> > Well, when I derive from OFS:Folder I do get all the global stuff, but
> > _not_ my included ZClasses in the Add box. OTOH, deriving from
> > ZClasses:ObjectManager gives me my ZClasses, but _not_ the global
> > objects (DTML Methods, ...)
> > 
> > Deriving from _both_ gives me the behavior of whichever was named first.
> > 
> > I have seen the LocalFactory product, but this would force me to move
> > the factories and constructors out of my ZClasses. Its very existance
> > though might mean what I want is impossible :( 
> 
> 
> 
> []s,
>|alo
>+
> --
>   Hack and Roll  ( http://www.hackandroll.org )
> News for, uh, whatever it is that we are.
> 
> 
> http://zope.gf.com.br/lalo   mailto:[EMAIL PROTECTED]
>  pgp key: http://zope.gf.com.br/lalo/pessoal/pgp
> 
> Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] context in Python Script

2000-11-28 Thread Chris Gray

I still can't get external Python Scripts to work as described in the Zope
Book.  I am using the version of Python Scripts from the public
CVS.  Internal Scripts work fine, but I can't seem to use the
"context" object in an external script.

def tryContext():
"""tryContext function"""
return context.objectIds()

gives a NameError on context.

--

def tryContext(context):
"""tryContext function"""
return context.objectIds()

with the "Try It" tab, no form for passing parameters comes up and the
complaint is that the context parameter was omitted from the request.

---



to the first example above gives the same NameError on context and to the
second example gives "a not enough arguments" TypeError

---

It only seems to work when explicitly passing an argument like



but I thought that context was supposed to be bound to an object by
default as it is with an Internal Script.

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

2000-11-28 Thread ghaley


> My argument is that money is leveraged by the active Zope community so
> a crux in my logic is how strong this community is.
> 
> Other support?
>   
Hi Albert.

I'm not sure about the first part of the question, so i'll go to
the second query.

Our company uses zope in a combination of consumer and commercial
applications.  We find it very powerful, very fast, and quite flexible --
though this last comes later.

Pluses:

The Zope community is very strong, and very supportive.  Queries
to the list get answered fairly quickly, and, tend to be in direct
proportion to the quality of the question asked.  I have also found the
tone of reponses to be respectful -- unlike some other obnoxious lists,
you tend not to get an answer "Read the Man page!"  Replies will range
from detailed information on the specific problem to a recommendation of
existing documentation that might have already addressed the problem
raised.  

There is a wealth of documentation available on-line at
zope.org.  There are tutorials, full length documentation, how-tos, and
the archive of the list-serves.  the quality ranges from very thorough to
fairly rudimentary, so, caveat preemptor!  Docmentation written by the
digicool folks is generally excellent.

Zope will do anything that other web languages claim (e.g., asp
and php), though with more sophistication, since it is written in a real,
object oriented programming language (python).

Minuses:

The learning curve is STEEP!!  Once you learn Zope, you can
prototype and implement very complex solutions quickly, but plan on
several months before you get the full power of the server under your
hood.  As many testimonials will attest, you can do some nice stuff in
short order, but you'll be at the tip of the iceberg.

There are no books on Zope yet, though there is one on the way
from O'Reilly, and I think I heard there is one in the works from
Wrox.  There is a chapter on Zope at the end of "The Quick Python Book",
but it is not very complete.  As more users come on board, the publishers
will quickly follow (remember, it was only about three years ago that the
number of linux books would fit on a single shelf in a bookstore).  

You need to know Python to get the real power of the server
working for you, but Python is powerful and very clean, and its
datastructures are amazing.

Good luck,

ciao!
greg.

Gregory Haley
DBA/Web programmer
Venaca.com


> 
> I am going through a justification (risks) of the use of Zope for a
> corporate client. Framing things as an Open Source play relies on the
> health of its community for its longevity and access to expertise for
> support. I remember some number tossed out when the Members folder at
> zope.org went to Btree. What is the current # of Members? Is this an
> estimate of the Zope community? I think there is probably some dead
> wood in that # but at least its an estimate. I remember it being over 10K.
> 
> Our client thought that the recent VC money was about 1/2 what would
> be needed to make it fly. 

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


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




Re: [Zope] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Jonathan Cheyne


Ah, I tried reinstalling zddiscussions, no joy, i tried deleting
zdiscussions but when you restart zeop it reinstalls the two products as
broken. 

i tried a new install of 2.2.4 then copy across my data.fs bits and untar
various products in use on the site, but, exactly the same message. so it
may not be th eupgrade but something in 2.2.4 itself that my data.fs
dislikes.

just to clarify three key messages that apprae immediately after starting
up.

couldnt' import product.ZDbase
[some blurge here]
unpack sequence of wrong size
[blurge]
cannot import name ZDiscussions

i tried chown -R zope * and even tried running it as root. nope.

I will try reinstalling 2.2.0 and see what happens.

gonna be a long long night


Jonathan



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




Re: [Zope] Factoids for supporting zope

2000-11-28 Thread albert boulanger

   From: "Chris McDonough" <[EMAIL PROTECTED]>
   References: <[EMAIL PROTECTED]>
   Date: Tue, 28 Nov 2000 10:04:02 -0500
   MIME-Version: 1.0
   Content-Transfer-Encoding: 7bit
   X-Priority: 3
   X-MSMail-Priority: Normal
   X-Mailer: Microsoft Outlook Express 5.00.3018.1300
   X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
   Content-Type: text/plain;
   charset="Windows-1252"
   Content-Length: 1049


   - Original Message -
   From: "albert boulanger" <[EMAIL PROTECTED]>
   To: <[EMAIL PROTECTED]>
   Sent: Tuesday, November 28, 2000 9:37 AM
   Subject: [Zope] Factoids for supporting zope


   >
   > I am going through a justification (risks) of the use of Zope for a
   > corporate client. Framing things as an Open Source play relies on the
   > health of its community for its longevity and access to expertise for
   > support. I remember some number tossed out when the Members folder at
   > zope.org went to Btree. What is the current # of Members? Is this an
   > estimate of the Zope community? I think there is probably some dead
   > wood in that # but at least its an estimate. I remember it being over 10K.

   Not sure...

   >
   > Our client thought that the recent VC money was about 1/2 what would
   > be needed to make it fly. My argument is that money is leveraged by
   > the active Zope community so a crux in my logic is how strong this
   > community is.

   1/2 of what would be needed to make it fly with Zope?  Or 1/2 of what would
   be needed with any app server?


Since they come from a non Zope context it would be from the general
position and the onus is on me to bring in the Zope context in the
construction of my argument.

Regards,
Albert


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




Re: [Zope] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Chris McDonough

If I were you, I'd see if I could get ZDiscussions working under your
current setup.

- Original Message -
From: "Jonathan Cheyne" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 9:51 AM
Subject: [Zope] Possible disaster upgrading to 2.2.4


>
> Hi all, been very very foolish and didnt backup my entire zope
> installation prior to untarring the 2.2.x to 2.2.4 diff (binary) tgz.
>
> after restarting i get a message "couldnt import product.ZDbase" and one
> or two others, then screeds of oid errors then a start. But the site is a
> bit slaughtered because anything basedon a zclass I created durny work.
> even though it is there and not shown as brokwen itself. the only two
> shown as broken are zdbase and zdconfera. my zclass is only based on
> ZObject, CatalogAwareBase, _ZClass_for_Renderable so I am a bit stumped.
>
> when I try to list in magament view, the contents of any folder containing
> 1 or more instances of my zclass, the console shows things like:
>
> --
> 2000-11-28T14:37:38 ERROR(200) ZODB Couldn't load state for
> '\000\000\000\000\000\000\000k'
> Traceback (innermost last):
>   File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
> line 448, in setstate
>   File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
> line 213, in _persistent_load
> (Info: )
>   File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
> line 154, in __getitem__
> (Info: ('\000\000\000\000\000\000\003\266',
>
'(cExtensionClass\012ExtensionClass\012q\001(U\006ZDItemq\002(cZClasses.ZCla
ss\012PersistentClass\012q\003cProducts.ZDBase.ZDiscussions\012ZDItem\012q\0
04cOFS.SimpleItem\012SimpleItem\012q\005tq\006}q\007(U\004iconq\010UWControl
_Panel/Products/ZDiscussions/ZDTopic/propertysheets/methods/ZDItem%20/ziconI
mageq\011U\012_p_changedq\012K\001U\007__doc__q\013U\021ZDiscussions
>
Itemq\014U\006_p_oidq\015U\010\000\000\000\000\000\000\002Lq\016U\011meta_ty
peq\017U\021ZDiscussions
>
Itemq\020U\016propertysheetsq\021(U\010\000\000\000\000\000\000\003\271q\022
(NU\010\000\000\000\000\000\000\003\265q\023Qttq\024QU\012index_htmlq\025cZC
lasses.Method\012MW\012q\026NRq\027}q\030U$_ZClassMethodPermissionMapperMeth
od_q\031(U\010\000\000\000\000\000\000\003\272q\032(U\016OFS.DTMLMethodq\033
cOFS.DTMLMethod\012DTMLMethod\012q\034ttq\035QsbU\016manage_optionsq\036(}q\
037(U\005labelq
>
U\012Propertiesq!U\006actionq"U\025manage_propertiesFormq#u}q$(U\005labelq%U
\010Securityq&U\006actionq\'U\015manage_accessq(u}q)(h%U\004Viewq*h\'U\012in
dex_htmlq+utq,U\012ziconImageq-(U\010\000\000\000\000\000\000\003\273q.(U\01
1OFS.Imageq/cOFS.Image\012Image\012q0tq1tq2QU\022__ac_permissions__q3)U\011_
p_serialq4U\010\0030\226a\274;\204\314q5U\012__module__q6U\031*73biqpAI2QDa2
iKPitv57g==q7utq8t.N.'))
> Could not load oid , pickled data in traceback info maycontain
> clues
>
>
> --
> 2000-11-28T14:44:30 ERROR(200) ZODB Couldn't load state for
> '\000\000\000\000\000\000\003\236'
> Traceback (innermost last):
>   File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
> line 448, in setstate
> SystemError: Failed to import class _ZClass_for_ZDTopic from module
> Products.ZDBase
>
> any clues no matter how trivial gratefully received
>
> Jonathan
> London
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Jonathan Cheyne


Hi all, been very very foolish and didnt backup my entire zope
installation prior to untarring the 2.2.x to 2.2.4 diff (binary) tgz.

after restarting i get a message "couldnt import product.ZDbase" and one
or two others, then screeds of oid errors then a start. But the site is a
bit slaughtered because anything basedon a zclass I created durny work.
even though it is there and not shown as brokwen itself. the only two
shown as broken are zdbase and zdconfera. my zclass is only based on
ZObject, CatalogAwareBase, _ZClass_for_Renderable so I am a bit stumped.

when I try to list in magament view, the contents of any folder containing
1 or more instances of my zclass, the console shows things like:

--
2000-11-28T14:37:38 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\000\000k'
Traceback (innermost last):
  File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
line 448, in setstate
  File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
line 213, in _persistent_load
(Info: )
  File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
line 154, in __getitem__
(Info: ('\000\000\000\000\000\000\003\266',
'(cExtensionClass\012ExtensionClass\012q\001(U\006ZDItemq\002(cZClasses.ZClass\012PersistentClass\012q\003cProducts.ZDBase.ZDiscussions\012ZDItem\012q\004cOFS.SimpleItem\012SimpleItem\012q\005tq\006}q\007(U\004iconq\010UWControl_Panel/Products/ZDiscussions/ZDTopic/propertysheets/methods/ZDItem%20/ziconImageq\011U\012_p_changedq\012K\001U\007__doc__q\013U\021ZDiscussions
Itemq\014U\006_p_oidq\015U\010\000\000\000\000\000\000\002Lq\016U\011meta_typeq\017U\021ZDiscussions
Itemq\020U\016propertysheetsq\021(U\010\000\000\000\000\000\000\003\271q\022(NU\010\000\000\000\000\000\000\003\265q\023Qttq\024QU\012index_htmlq\025cZClasses.Method\012MW\012q\026NRq\027}q\030U$_ZClassMethodPermissionMapperMethod_q\031(U\010\000\000\000\000\000\000\003\272q\032(U\016OFS.DTMLMethodq\033cOFS.DTMLMethod\012DTMLMethod\012q\034ttq\035QsbU\016manage_optionsq\036(}q\037(U\005labelq
U\012Propertiesq!U\006actionq"U\025manage_propertiesFormq#u}q$(U\005labelq%U\010Securityq&U\006actionq\'U\015manage_accessq(u}q)(h%U\004Viewq*h\'U\012index_htmlq+utq,U\012ziconImageq-(U\010\000\000\000\000\000\000\003\273q.(U\011OFS.Imageq/cOFS.Image\012Image\012q0tq1tq2QU\022__ac_permissions__q3)U\011_p_serialq4U\010\0030\226a\274;\204\314q5U\012__module__q6U\031*73biqpAI2QDa2iKPitv57g==q7utq8t.N.'))
Could not load oid , pickled data in traceback info maycontain
clues


--
2000-11-28T14:44:30 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\000\003\236'
Traceback (innermost last):
  File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
line 448, in setstate
SystemError: Failed to import class _ZClass_for_ZDTopic from module
Products.ZDBase

any clues no matter how trivial gratefully received 

Jonathan
London


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




Re: [Zope] Factoids for supporting zope

2000-11-28 Thread Chris McDonough


- Original Message -
From: "albert boulanger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 9:37 AM
Subject: [Zope] Factoids for supporting zope


>
> I am going through a justification (risks) of the use of Zope for a
> corporate client. Framing things as an Open Source play relies on the
> health of its community for its longevity and access to expertise for
> support. I remember some number tossed out when the Members folder at
> zope.org went to Btree. What is the current # of Members? Is this an
> estimate of the Zope community? I think there is probably some dead
> wood in that # but at least its an estimate. I remember it being over 10K.

Not sure...

>
> Our client thought that the recent VC money was about 1/2 what would
> be needed to make it fly. My argument is that money is leveraged by
> the active Zope community so a crux in my logic is how strong this
> community is.

1/2 of what would be needed to make it fly with Zope?  Or 1/2 of what would
be needed with any app server?


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

2000-11-28 Thread albert boulanger


I am going through a justification (risks) of the use of Zope for a
corporate client. Framing things as an Open Source play relies on the
health of its community for its longevity and access to expertise for
support. I remember some number tossed out when the Members folder at
zope.org went to Btree. What is the current # of Members? Is this an
estimate of the Zope community? I think there is probably some dead
wood in that # but at least its an estimate. I remember it being over 10K.

Our client thought that the recent VC money was about 1/2 what would
be needed to make it fly. My argument is that money is leveraged by
the active Zope community so a crux in my logic is how strong this
community is.

Other support?

Regards,
Albert Boulanger
[EMAIL PROTECTED]

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




  1   2   >