Re: [Zope] Mozilla for mgmt

2000-06-15 Thread Anthony Baxter

>>> Anthony Baxter wrote
> > > Has anyone besides me had trouble using Mozilla to manage Zope ie access
> > > the control panel via log in?
> > There are regressions in recent Mozilla builds that prevent the authenticat

oops. I forgot this other one that I found. Mozilla writes the 
username/password with a trailing null. I just logged it:
http://bugzilla.mozilla.org/show_bug.cgi?id=42782

A patch that allows Zope to workaround this:

diff -u -r1.110 User.py
--- User.py 2000/06/05 15:31:43 1.110
+++ User.py 2000/06/16 06:26:32
@@ -439,6 +439,8 @@
 if lower(auth[:6])!='basic ':
 return None
 name,password=tuple(split(decodestring(split(auth)[-1]), ':', 1))
+if password[-1] == '\000':
+   password = password[:-1]
 
 # Check for superuser
 super=self._super


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




Re: [Zope] Creating a FRAMESET

2000-06-15 Thread Diny van Gool

Hi,

I'm new here but I'm using framesets myself and this one is working. This
frameset, menu_html and homepage_html are all dtml-methods and in the same
folder.
Hope this will help you,

Diny






   
   

  
  
  
 



At 19:51 15-6-00 -0700, Wayne Izatt wrote:
>Maybe I'm going crazy, but I can't seem to get my FRAMESET to render. If
>I understand things correctly, the SRC of the html is the same as the
>ID. Or am I wrong? Should I completely qualify the SRC, or will Zope
>take care of this for me?...
>
>ciao
>
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   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] Mozilla for mgmt

2000-06-15 Thread Anthony Baxter

>>> Martijn Pieters wrote
> > Has anyone besides me had trouble using Mozilla to manage Zope ie access
> > the control panel via log in?
> There are regressions in recent Mozilla builds that prevent the authentication
> dialog from functioning properly. This regression seems to keep popping up
> once in a while. The password textbox is then broken, and Mozilla tries to
> authenticate you with an empty password field.

The current one is bugzilla 42008. ("Basic" auth works, "basic" auth doesn't).
Zope gets it wrong, I just put a patch in the Collector.

Mozilla "bug" at 
http://bugzilla.mozilla.org/show_bug.cgi?id=42008

fix at
http://classic.zope.org:8080/Collector/1328/view

> Often, you can bypass it by typing the password in a seperate text window,
> then copying and pasting it into the password textfield. This has worked for
> me on Linux.

This now works, but was broken by the above Mozilla bug (ok, they're 
technically correct, but it's still a change, and no other browser behaves
this way).

> Other than this problem I have had no trouble managing Zope servers with
> Mozilla, or at least not much.. it all depends on the quality of the nighty
> build. Try a newer or older build, I'd say.

Newer ones are broken since 2000/06/01... 

Anthony

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross 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 2.1.5/6/7 & ZSQLMethods problem

2000-06-15 Thread Ron Bickers

> > I assume based on the change log that this is the only fix in 2.1.7,
> > correct?
>
> Yes, this is the only fix (that I can verify, Brian has the final say(!)).
>
> Also, again as far as I can verify, the supplied patch can be
> applied to all
> Zope version 2.0.0b5 and up without problems. If you look at the
> patch you'll
> see it involves the adding of two lines, thus very easy to apply
> by hand if
> need be.

That will get me the fix for 2.1.7, but what about the 2 security fixes in
2.1.5 (which I believe is what broke it in the first place) and the numerous
other bug fixes?

I know I'm not the only one running 2.1.4 because of misbehaving ZSQLMethods
in 2.1.5/6/7, and wondering when my site is going to be exploited because of
the security issues.  Broken or vulnerable seem to be my two choices.  Not a
very good selection.

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


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




Re: [Zope] Zope 2.1.5/6/7 & ZSQLMethods problem

2000-06-15 Thread Martijn Pieters

On Thu, Jun 15, 2000 at 07:42:04PM -0400, Ron Bickers wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Brian
> > Lloyd
> > Sent: Thursday, June 15, 2000 5:26 PM
> > To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> > Subject: [Zope] Zope security alert and 2.1.7 update [*important*]
> >
> 
> > A Zope 2.1.7 release has been made that resolves this issue for
> > Zope 2.1.x users. This release is available from Zope.org:
> >
> >   http://www.zope.org/Products/Zope/2.1.7/
> >
> 
> I assume based on the change log that this is the only fix in 2.1.7,
> correct?

Yes, this is the only fix (that I can verify, Brian has the final say(!)).

Also, again as far as I can verify, the supplied patch can be applied to all
Zope version 2.0.0b5 and up without problems. If you look at the patch you'll
see it involves the adding of two lines, thus very easy to apply by hand if
need be.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
|   The Open Source Web Application 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 )




Re: [Zope] Difference between &dtml-myvar; and

2000-06-15 Thread Hung Jung Lu

>From: [EMAIL PROTECTED]
>From the Using the DTML entity syntax How-To
>(http://www.zope.org/Members/AlexR/EntitySyntax) :

Very very cool. Thanks a lot!

Hung Jung


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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: [Zope-dev] Zope ...2.1.7 update - patch for EMarket 0.1.03

2000-06-15 Thread Adam Karpierz

Patch for EMarket v.0.1.3 product for Zope 2.1.7


begin 666 EMarket.py.patch
M*BHJ($5-87)K970N<'DN;W)I9PE4:'4@2G5N(# Q(# P.C V.C Q(#(P,# *
M+2TM($5-87)K970N<'D)1G)I($IU;B Q-B P,CHU-CHS-2 R,# P"BHJ*BHJ
M*BHJ*BHJ*BHJ*@HJ*BH@,C4X+#(V-2 J*BHJ"B @(" @(&YE=TUA:6Y&+G1R
M86YS86-T:6]N1F]L9&5R(#T@;F5W5')A;G-&"B @(" @( H@(" @("!0http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] sql and zope-2.2

2000-06-15 Thread Bak @ kedai

hi all,
i managed to upgrade my site from 2.1.6 to 2.2b1 with no problems (thanks Brian)
but now, something else cropped up.  what used to work on my 2.1.6 doesn't
anymore.  following are the sql snippets and tracebacks

--show_subtree_index




- 



---

my sqlmethod

select *
from msg
where 
par_id=

---
and the traceback

---
Traceback (innermost last):
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 187, in 
publish
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 171, in 
publish
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/OFS/DTMLMethod.py, line 168, in __call__
(Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_String.py, line 500, 
in __call__
(Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_In.py, line 611, in 
renderwb
(Object: qry_msgs_by_par_id(par_id=0))
  File /home/kdie/Zope-2.2.0b1-src/lib/python/OFS/DTMLMethod.py, line 164, in __call__
(Object: show_subtree_index)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_String.py, line 500, 
in __call__
(Object: show_subtree_index)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_In.py, line 633, in 
renderwob
(Object: qry_msg_thread(_.None,_,par_id=obj_id))
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_Util.py, line 339, 
in eval
(Object: qry_msg_thread(_.None,_,par_id=obj_id))
(Info: qry_msg_thread)
  File , line 0, in ?
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Shared/DC/ZRDB/DA.py, line 444, in 
__call__
(Object: qry_msg_thread)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_String.py, line 500, 
in __call__
(Object: )
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Shared/DC/ZRDB/sqlvar.py, line 168, in 
render
(Object: obj_id)
Missing Input: (see above)
--
i tried encapsulating the dtml method with  just in case,
but still no go.
any help appreciated

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


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




[Zope] Creating a FRAMESET

2000-06-15 Thread Wayne Izatt

Maybe I'm going crazy, but I can't seem to get my FRAMESET to render. If
I understand things correctly, the SRC of the html is the same as the
ID. Or am I wrong? Should I completely qualify the SRC, or will Zope
take care of this for me?...

ciao


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

2000-06-15 Thread joel grimes

I should have given a little more detail.

I have an odbc connection and a zsqlmethod that work fine when the 
zsqlmethod says:

select description, datein
from san_jose

But I just want the first 4 characters of the description field.  So I've 
tried:

select substring(description, 1, 4), datein
from san_jose

I've also tried substr(), and some variations.  I even tried the Access 
version - left(description, 4).

If it can't be done in the query, and I have to get the whole string in the 
sql method and slice it later, I can live with that, but then I have another 
problem: I let the wizard create a report for me and it gave me results that 
include:


  
  


works fine.

so I changed "description" to "description[:4]" (no quotes, though).  If I 
try to view the report I get an error.

Error Type: KeyError
Error Value: description[:4]

Any ideas?

Thanks

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


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




Re: [Zope] Difference between &dtml-myvar; and

2000-06-15 Thread andres

On Thu, Jun 15, 2000 at 12:47:17PM -0700, Hung Jung Lu wrote:
> This has been something that I've never been very careful about. Until I got 
> bitten in generating a JavaScript.
> 
> What is the difference between
> 
>   
> 
> and
> 
>   &dtml-myvar;
> 
> ?
> 
> I have noticed some differences before, but I don't remember the details, 
> now. I guess one of them mangles the result so it can be looked at in a 
> browser (properly HTML quoted?)
> 
>   
>   
>   &dtml-myvar;
> 
> Visually they look the same, but if I looked at the source:
> 
>   &
>   &
> 
> Is the a technical term (e.g: "rendering", "HTML-quoting", etc.) that 
> describes the difference in the output?
> 
> regards,
> 
> Hung Jung
> 

>From the Using the DTML entity syntax How-To
(http://www.zope.org/Members/AlexR/EntitySyntax) :

"The &dtml-myVar; syntax is intended for use within HTML tag attributes, and
as such will insert the variable HTML-quoted. This means that characters
that have a special meaning in HTML (such as <, >, or &) will be replaced by
the corresponding entities. So if you include &dtml-standard_html_header; in
a page you'll find your header HTML source in the browser, instead of
rendered HTML."

--
Andres Corrada-Emmanuel   Email: [EMAIL PROTECTED]
--

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




Re: [Zope] left(string, n) equivalent (newbie q.)

2000-06-15 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article <000901bfd712$42628800$[EMAIL PROTECTED]>, Luis Cortes
<[EMAIL PROTECTED]> writes
>You should be able to use python's slice like so:
>
>
>...
>
>where "word" is the variable you want to use only 4 characters of.
>
>Hope this helps,

But he is referring to a zsqlmethod, and you should be able to pass sql
thru.

Perhaps if he posts the zslqmethod..  Maybe it's an Access thing.

- -- 
Regards,  Graham Chiu
gchiucompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and Zope

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOUjGTrTRdIWzaLpMEQL1IACgp1lkupw3pCyxkAbVJ6melhuv2/8AoJ78
U//cKJwG0QQsCwyWWHIM/LbL
=e+7V
-END PGP SIGNATURE-

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross 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 2.1.5/6/7 & ZSQLMethods problem

2000-06-15 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article <[EMAIL PROTECTED]>, Ron
Bickers <[EMAIL PROTECTED]> writes
>I fought for a full day to get my ZSQLMethods working in 2.1.6, but
>apparently the argument aquisition or something like that is still so broken
>that I had to jump back to 2.1.4.  I applied the various unofficial "fixes"
>from the list archives (not all at the same time, of course) and none of
>them did the trick.  I know others beat themselves up over this too.
>
>The problem I'm talking about is the one where the arguments to the sql
>method seem to be ignored.  That is, if I have an argument 'order', and I
>have a DTML method (or any other "item") named 'order' in the same folder,
> in the sql method refers to the DTML method, not the
>argument.  This breaks dozens of sql methods I have.
>
>With all of these security issues popping up, I don't like not being able to
>upgrade.  Does anyone have a real fix for the ZSQLMethod problems in 2.1.6
>that could be officially applied to the 2.1 series, or should I start using
>the 2.2 betas?

May I second this!

- -- 
Regards,  Graham Chiu
gchiucompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and Zope 2.1.4 and not willing to run beta on production

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOUjFD7TRdIWzaLpMEQK6+QCgijhq2oTAgjc72mYhLlC9m+cLJt4AoKkc
qZyj4nVLszB1QoBUQuZibW9U
=BDlD
-END PGP SIGNATURE-

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




[Zope] Zope 2.1.5/6/7 & ZSQLMethods problem

2000-06-15 Thread Ron Bickers


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Brian
> Lloyd
> Sent: Thursday, June 15, 2000 5:26 PM
> To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> Subject: [Zope] Zope security alert and 2.1.7 update [*important*]
>

> A Zope 2.1.7 release has been made that resolves this issue for
> Zope 2.1.x users. This release is available from Zope.org:
>
>   http://www.zope.org/Products/Zope/2.1.7/
>

I assume based on the change log that this is the only fix in 2.1.7,
correct?

I fought for a full day to get my ZSQLMethods working in 2.1.6, but
apparently the argument aquisition or something like that is still so broken
that I had to jump back to 2.1.4.  I applied the various unofficial "fixes"
from the list archives (not all at the same time, of course) and none of
them did the trick.  I know others beat themselves up over this too.

The problem I'm talking about is the one where the arguments to the sql
method seem to be ignored.  That is, if I have an argument 'order', and I
have a DTML method (or any other "item") named 'order' in the same folder,
 in the sql method refers to the DTML method, not the
argument.  This breaks dozens of sql methods I have.

With all of these security issues popping up, I don't like not being able to
upgrade.  Does anyone have a real fix for the ZSQLMethod problems in 2.1.6
that could be officially applied to the 2.1 series, or should I start using
the 2.2 betas?

Thanks!
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


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




[Zope] neted dtml-in and ZSQL methods

2000-06-15 Thread jpenny

Suppose, you have a database, items,  that has fields product and scheme.

You are processing a form that has field old_product and new_product.

You have a ZSQL method, get_scheme, with parameter old_product and body
select * from items where product = .

You also have a ZSQL method, new_scheme, with parameter new_product and
scheme.

Observation:


 


fails, with message

  Zope Error

  Zope has encountered an error while publishing this resource. 

  Error Type: NameError
  Error Value: scheme



  Troubleshooting Suggestions

   This resource may be trying to reference a nonexistent object or 
variable scheme. 
   The URL may be incorrect. 
   The parameters passed to this resource may be incorrect. 
   A resource that this resource relies on may be encountering an error. 

  For more detailed information about the error, please refer to the HTML 
source for this page. 

  If the error persists please contact the site maintainer. Thank you for your 
patience. 

even though


 


prints the expected value.

Why?

Jim Penny

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

2000-06-15 Thread Alexander N Gould

Never mind the last message.  A typo in the vhosts dtml method was the
culprit, combined with my near total ignorance of Python which prevented
me from spotting it.  Change line 5 from

to


That does it!  Thanks!
--
Building highways to reduce traffic is like loosening your belt to reduce
obesity


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




[Zope] Catalog Aware ZClass

2000-06-15 Thread Scott Burton

Hello fellow Zopists, I want to create a catalog aware Zclass. I would like
to include some specific indexable metadata when creating an instance of
that object. So when I add an instance of that object it asks me for some
information that gets indexed by ZCatalog to be searched later on.
I have tried following the instructions given here:
http://www.zope.org/Members/AlexR/CatalogAware
But I noticed there is some information which may be outdated. It also
suggests having to Patch CatalogAwareness.py I am not sure if this is still
required? Or, where do I start? TIA!

Scott


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




Re: [Zope] virtual hosts with ZServer

2000-06-15 Thread Alexander N Gould

On Wed, 14 Jun 2000, ethan mindlace fremen wrote:

> Hmm.  superuser can't manage the folders? They should be able to.  I assume you
> mean by "almost works" it doesn't let you manage?
> 

> Second, once you set this up, you cannot manage the folder except from it's url
> ( host1.penguinpowered.com/manage should work)
> 
> These are kind of stabs in the dark. If you could show me some urls that don't
> work, then maybe I can do some more.
> 

No, even worse!  Here's what I do, and what happens:

Add folders with the names of the subdomains.
Add SiteRoots to each of these folders, with both fields blank as
instructed.
Create a dtml-method at the root level named "virtualhosts" using the
script you provided.
Add a Site Access Rule at the root level linked to the method.
... everything works fine up to here.  A confirmation message appears
saying "You have added a site access rule" or something like that.  Then
when I click on "OK", a dialog comes up saying "Authorization failed,
retry?".  Even the superuser doesn't work.  I try quitting the browser
(Netscape) and accessing the site (using any of the urls -
masspirg.penguinpowered.com, singlepayermass.penguinpowered.com, others),
but the exact same error occurs.  Here is the traceback:

Traceback (innermost last):
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 214,
in publish_module
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 179,
in publish
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 151,
in publish
  File /usr/share/zope/lib/python/Products/SiteAccess/ChangeBehaviors.py,
line 93, in traverse
  File /usr/share/zope/lib/python/Products/SiteAccess/ChangeBehaviors.py,
line 27, in before_traverse
  File /usr/share/zope/lib/python/OFS/DTMLMethod.py, line 150, in __call__
(Object: virtualhosts)
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: virtualhosts)
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_Let.py, line
145, in render
(Object:
hostname="_.string.join(_.string.split(_.string.split(HTTP_HOST,':')[0],
'.')[0], '')")
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_Try.py, line
212, in render
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_Try.py, line
221, in render_try_except
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py, line
335, in eval
(Object: _[hostname])
(Info: _)
  File , line 0, in ?
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py, line
161, in careful_getitem
Unauthorized: (see above)

Let me clarify some relevant things about my setup.  My server is in my
dorm room, thus is allocated a dynamic IP address through DHCP, also a
random hostname (prin-###.res.umass.edu).  I get around this by
registering some names with penguinpowered.com "dynamic DNS" and
automatically updating them with my IP address when it changes.  Before I
tried this virtual hosts experiment, the system worked just fine -
everyone who tested it could reach masspirg.penguinpowered.com.  I'm
teaching myself this server/content management stuff during this summer as
I work on a groupware-like site that will eventually be moved to a
dedicated server with a better connection.

Thanks for all your help - I'm sure you have much more important things to
do than assisting newbies like myself!
-
Building highways to reduce traffic is like loosening your belt to reduce
obesity


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




Re: [Zope] Containment or context

2000-06-15 Thread Evan Simpson

I have paraphrased your example at
http://www.zope.org/Wikis/zope-dev/AcquisitionFeedback

We are considering providing some way for you to acquire properties in the
way you expected.  You can read more about this in the pages connected to
the AcquisitionFeedback page.

- Original Message -
From: Stephen Harrison <[EMAIL PROTECTED]>
[snip]
> http://www.zope.org/Members/Hoekstra/ChangingContexts1
>
> it states that PARENTS is defined as the acquisition parents of an
> object.  But this is not true.

PARENTS is the list of objects traversed to get to the *published* object.
If you visit "/foo/bar/foo/bar/baz", then PARENTS will contain [bar, foo,
bar, foo, /].  If baz calls another method, PARENTS is unaffected, as are
the URLn and BASEn variables.  Only absolute_url() is affected.

The only way (right now) to search for a property in the order PARENTS
mentions them is to do so explicitly, by looping through the elements of
PARENTS and checking their 'aq_explicit' for the property.  Example Python
snippet:

for p in REQUEST['PARENTS']:
if hasattr(p.aq_explicit, propname):
return getattr(p, propname)
raise AttributeError, propname

Cheers,

Evan @ digicool & 4-am


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




Re: [Zope] left(string, n) equivalent (newbie q.)

2000-06-15 Thread Luis Cortes

You should be able to use python's slice like so:


...

where "word" is the variable you want to use only 4 characters of.

Hope this helps,
bye.

- Original Message -
From: joel grimes <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 15, 2000 3:18 PM
Subject: [Zope] left(string, n) equivalent (newbie q.)


> Pardon my ignorance, I'm coming from a VB/Access background.
>
> I need to find an equivalent to using left(string, 4) in a zope SQL
method's
> select query.  My SQL book
> says I can use SUBSTRING(string, 1, 4) in a query but no luck.  I'm
> connecting to an Access database.
>
> btw - this mail list ROCKS!  I've never waited more than 10 minutes for a
> response.
>
> Thanks
> 
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )


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




[Zope] Zope security alert and 2.1.7 update [*important*]

2000-06-15 Thread Brian Lloyd

Hello all,


We have recently become aware of an important security issue 
that affects all released Zope versions including the recent 
2.2 beta 1 release.

The issue involves an inadequately protected method in one of 
the base classes in the DocumentTemplate package that could allow 
the contents of DTMLDocuments or DTMLMethods to be changed 
remotely or through DTML code without forcing proper user 
authorization. 

A Zope 2.1.7 release has been made that resolves this issue for 
Zope 2.1.x users. This release is available from Zope.org:
  
  http://www.zope.org/Products/Zope/2.1.7/

A patch is also available if it is not feasible to update your 
Zope installation at this time (the patch is based on 2.1.6):

  http://www.zope.org/Products/Zope/2.1.7/DT_String.diff

If you are evaluating any of the recent 2.2 alpha or beta releases, 
you should apply the patch noted above if your site is accessible 
by untrusted clients. A forthcoming 2.2 beta 2 release will contain 
the fix for this issue.

While we know of no instances of this issue being used to exploit a 
site, we *highly* recommend that any Zope site that is accessible by 
untrusted clients take the appropriate mitigation steps immediately.


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] left(string, n) equivalent (newbie q.)

2000-06-15 Thread joel grimes

Pardon my ignorance, I'm coming from a VB/Access background.

I need to find an equivalent to using left(string, 4) in a zope SQL method's 
select query.  My SQL book
says I can use SUBSTRING(string, 1, 4) in a query but no luck.  I'm  
connecting to an Access database.

btw - this mail list ROCKS!  I've never waited more than 10 minutes for a 
response.

Thanks

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] LocalFS cross platform bug

2000-06-15 Thread Dan L. Pierson

If you upload from a browser on a Windows machine to a server running
on Linux, the id (and thus the file name) of the new file will be the
complete Windows path instead of just the file name.  This happens
because os.basename on Linux doesn't know how to handle Windows
pathname syntax.

Here's a rather crude diff -u patch that works for me:

--- LocalFS.py-orig Fri Apr 14 00:36:06 2000
+++ LocalFS.py  Thu Jun 15 15:36:19 2000
@@ -625,10 +625,16 @@
 "to this directory.")
 else: raise
 
+def _canonicalize_pathname(self, path):
+if (string.count(path, '\\')):
+if (len(path) > 1 and path[0] in string.letters and path[1] == ':'):
+path = path[2:]
+path = string.translate(path, string.maketrans('\\', '/'))
+
 def manage_upload(self, file, REQUEST=None):
 """Upload a file to the local file system. The 'file' parameter
 is a FileUpload instance representing the uploaded file."""
-id = os.path.basename(file.filename)
+id = os.path.basename(self._canonicalize_pathname(file.filename))
 path = self._getpath(id)
 data = file.read(_test_read)
 if (find_binary(data) >= 0):

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




RE: [Zope] Version Paradox

2000-06-15 Thread Baker, Dennis [sjmr]

Actually,  I tried this first and it didn't work.  not certain why.  However
your original suggestion of going into the version manager in control panel
did the trick.  Thanks for the suggestion I'm up and running again !!

> -Original Message-
> From: Dan Rusch [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 15, 2000 12:30 PM
> To: Baker, Dennis [sjmr]
> Subject: Re: [Zope] Version Paradox
> 
> 
> Dennis,
> 
> Don't fret I just replicated you paradox and you can fix the 
> problem.  I just
> have to remember what I did, please bear with me.
> 
> I created a version in a folder.
> I entered the version
> I then went to undo (while still in the version) and undid the version
> 
> wham I'm stuck in a non-existant version
> 
> I logged out of zope
> I logged in as the superuser dude
> I went to the folder
> I recreated the same version (same name etc)
> I went to the control panel
> I went to Version Management
> I disgard the version
> 
> wham I'm unstuck
> 
> Let me know if this helped
> 
> DR
> 
> 
> 
> 
> "Baker, Dennis [sjmr]" wrote:
> 
> > No luck,  Maybe I'm describing my problem wrong,  When I go 
> to manage Zope
> > The header at the top says "
> >Folder at / * (/Developement%20Site)
> >^ (This is the version Symbol)
> >
> > It doesn't Say that I am working in a version otherwise.  
> Then if I attempt
> > to create a new version I get the following error:
> >
> >   Error Type: VersionLockError
> >   Error Value: ("'\\000\\000\\000\\000\\000\\000\\000\\002'",
> > '/Developement%20Site')
> >
> > I can create a version in a subfolder,  and subfolders 
> don't have the
> > "Folder at" stuff all messed up.  Unfortunately this is my 
> production server
> > too,  not my testing server.
> >
> > -Original Message-
> > From: Cornelis J. de Brabander [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 15, 2000 12:14 AM
> > To: Baker, Dennis [sjmr]; [EMAIL PROTECTED]
> > Subject: Re: [Zope] Version Paradox
> >
> > >I've inadvertently created a version paradox.  I created a 
> version and
> > >joined it,  then I realized that I did a stupid naming 
> mistake I tried to
> > >UNDO the creation of the version.  It allowed me to undo 
> the creation of
> > the
> > >version,  however I was in the version at the time,  and 
> now I am stuck in
> > >the version and cannot get out.  I cannot create a version 
> of the same name
> > >and delete it either.  I am stuck.  HELP !!
> > >
> > >How can I exit a version that doesn't exist?
> > >
> > I believe that versions are based on cookies and that 
> removing the culprit
> > will unlock your paradox
> >
> > cb
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   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] GUF broken with Zope 2.2 beta 1?

2000-06-15 Thread Stuart 'Zen' Bishop

On Thu, 15 Jun 2000, Tom Schwaller wrote:

> I imported the folder from an older installation, but 
> the underlying Zope-API which GUF uses seems changed, 
> so it does not work.

Quite possibly. No testing has been done under 2.2 yet - I know there
will be issues with it as I have been watching pje & ty tackle them with
the LoginManager product.

> Even adding a GUF-folder by hand does not work:
> 
> Error Type: KeyError
> Error Value: PARENT_URL

This looks like you are trying to create a GUF in a folder that already
has an acl_users folder. This bug will be fixed in the next release,
which should be shortly after Zope 2.2 is released. You still won't be
able to create an acl_users folder in a folder that already contains one,
but the error message will actually render :-)
 
> line 576, in manage_addGenericUserFolder
>   File /usr/local/Zope-2.2.0/lib/python/ZPublisher/HTTPRequest.py, line
> 809, in __getitem__
> KeyError: (see above)

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


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




Re: [Zope] Version Paradox

2000-06-15 Thread Michel Pelletier

Go to 'Control Panel' and then 'Version Managment', you should be able
to discard the paradoxical version there.


"Baker, Dennis [sjmr]" wrote:
> 
> No luck,  Maybe I'm describing my problem wrong,  When I go to manage Zope
> The header at the top says "
>Folder at / * (/Developement%20Site)
>^ (This is the version Symbol)
> 
> It doesn't Say that I am working in a version otherwise.  Then if I attempt
> to create a new version I get the following error:
> 
>   Error Type: VersionLockError
>   Error Value: ("'\\000\\000\\000\\000\\000\\000\\000\\002'",
> '/Developement%20Site')
> 
> I can create a version in a subfolder,  and subfolders don't have the
> "Folder at" stuff all messed up.  Unfortunately this is my production server
> too,  not my testing server.
> 
> -Original Message-
> From: Cornelis J. de Brabander [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 15, 2000 12:14 AM
> To: Baker, Dennis [sjmr]; [EMAIL PROTECTED]
> Subject: Re: [Zope] Version Paradox
> 
> >I've inadvertently created a version paradox.  I created a version and
> >joined it,  then I realized that I did a stupid naming mistake I tried to
> >UNDO the creation of the version.  It allowed me to undo the creation of
> the
> >version,  however I was in the version at the time,  and now I am stuck in
> >the version and cannot get out.  I cannot create a version of the same name
> >and delete it either.  I am stuck.  HELP !!
> >
> >How can I exit a version that doesn't exist?
> >
> I believe that versions are based on cookies and that removing the culprit
> will unlock your paradox
> 
> cb
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 

-Michel Pelletier

http://www.zope.org/Members/michel/MyWiki

Visit WikiCentral for the latest Zen:

http://www.zope.org/Members/WikiCentral

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

2000-06-15 Thread J. Michael Mc Kay

It ws me, I admit it...
I'm breaking another bad habit (at least for threaded mail client
users)...Posting from NEW MESSAGE verses choosing reply and changing the
topic.

Just can't win sometimes.


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




Re: [Zope] PCGI application Question?

2000-06-15 Thread Rik Hoekstra





>Hi:
>
>In the way of PCGI work.
>PCGI Wrapper sends request to PCGI Application throught INET port.
>This is what mention on ZAG document.
>However, it also has a note said that the PCGI Wrapper is capable of
>launching the PCGI application, if it is not currently running
>
>My problem is, how to found out that the PCGI application is not running
>and which cause the PCGI Wrapper to launch it instead?
>
>My situation is like this:
>I setup Zope communicate with IIS.  However, after I use the
>scripts/zope.pcgi
>the var/pcgi.pid got changed.  As the ZAG document mention above, it
>looks like
>after the Zope server startup... somehow, the PCGI Application (is it
>pcgi_publisher.py?) dead/shutdown.  Which makes PCGI Wrapper
>(pcgi-wrapper.exe?) to launch its own one.  Hence, a new proccess with
>different PID.  Since it is a different proccess, it is not allow to
>touch the Database file and cause me get the error message "Could not
>lock the database file"  Am I right on this?

yes, I suppose so

>
>If this is the situation, how do I check to make sure the PCGI
>Application actually dead or not response after Zope start up?
>What can I do to check what cause it to close?
>

check the services, and the task/processes list in NT as to what is running.
Do you have any old copies of Zope running, that could be in the way?
You should (once more) check your Zope registry key.
IIRC it's CURRENT_CONTROL_SET/Services/Zope under the Parameters item (don't
have an NT machine here to check). Perhaps there is some information in  the
relevant ZBook draft on the ZDP site
http://zdp.zope.org/projects/zbook/book/VII/IntegraWebServers/IntegraWindows
/ZopeIISIntegraPCGI/Drafts/954785904

(sorry for the long url, it'sprobably wrapped)


>Thanks very much for your time
>

Oh, and one more option (and perhaps not the worst): you could try and
reinstall Zope (stop service, doubleclick the Unwise.exe in your zope home
and reinstal zope). In any way you'll know if it's working from a clean
install.


Good luck
Rik


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




[Zope] Difference between &dtml-myvar; and

2000-06-15 Thread Hung Jung Lu

This has been something that I've never been very careful about. Until I got 
bitten in generating a JavaScript.

What is the difference between

  

and

  &dtml-myvar;

?

I have noticed some differences before, but I don't remember the details, 
now. I guess one of them mangles the result so it can be looked at in a 
browser (properly HTML quoted?)

  
  
  &dtml-myvar;

Visually they look the same, but if I looked at the source:

  &
  &

Is the a technical term (e.g: "rendering", "HTML-quoting", etc.) that 
describes the difference in the output?

regards,

Hung Jung


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] [Fwd: [Zope] Version Paradox]

2000-06-15 Thread Dan Rusch





Dennis,

Don't fret I just replicated you paradox and you can fix the problem.  I just
have to remember what I did, please bear with me.

I created a version in a folder.
I entered the version
I then went to undo (while still in the version) and undid the version

wham I'm stuck in a non-existant version

I logged out of zope
I logged in as the superuser dude
I went to the folder
I recreated the same version (same name etc)
I went to the control panel
I went to Version Management
I disgard the version

wham I'm unstuck

Let me know if this helped

DR




"Baker, Dennis [sjmr]" wrote:

> No luck,  Maybe I'm describing my problem wrong,  When I go to manage Zope
> The header at the top says "
>Folder at / * (/Developement%20Site)
>^ (This is the version Symbol)
>
> It doesn't Say that I am working in a version otherwise.  Then if I attempt
> to create a new version I get the following error:
>
>   Error Type: VersionLockError
>   Error Value: ("'\\000\\000\\000\\000\\000\\000\\000\\002'",
> '/Developement%20Site')
>
> I can create a version in a subfolder,  and subfolders don't have the
> "Folder at" stuff all messed up.  Unfortunately this is my production server
> too,  not my testing server.
>
> -Original Message-
> From: Cornelis J. de Brabander [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 15, 2000 12:14 AM
> To: Baker, Dennis [sjmr]; [EMAIL PROTECTED]
> Subject: Re: [Zope] Version Paradox
>
> >I've inadvertently created a version paradox.  I created a version and
> >joined it,  then I realized that I did a stupid naming mistake I tried to
> >UNDO the creation of the version.  It allowed me to undo the creation of
> the
> >version,  however I was in the version at the time,  and now I am stuck in
> >the version and cannot get out.  I cannot create a version of the same name
> >and delete it either.  I am stuck.  HELP !!
> >
> >How can I exit a version that doesn't exist?
> >
> I believe that versions are based on cookies and that removing the culprit
> will unlock your paradox
>
> cb
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] [Fwd: [Zope] Version Paradox]

2000-06-15 Thread Dan Rusch





In the process of building an automated exporter and importer I did the
samething once. Can you log in as someone else? And go to the control panel
/version managment page??

If so try disgarding or saving it from there ?
I will attempt to replicate the problem here in the mean time

DR

"Baker, Dennis [sjmr]" wrote:

> No luck,  Maybe I'm describing my problem wrong,  When I go to manage Zope
> The header at the top says "
>Folder at / * (/Developement%20Site)
>^ (This is the version Symbol)
>
> It doesn't Say that I am working in a version otherwise.  Then if I attempt
> to create a new version I get the following error:
>
>   Error Type: VersionLockError
>   Error Value: ("'\\000\\000\\000\\000\\000\\000\\000\\002'",
> '/Developement%20Site')
>
> I can create a version in a subfolder,  and subfolders don't have the
> "Folder at" stuff all messed up.  Unfortunately this is my production server
> too,  not my testing server.
>
> -Original Message-
> From: Cornelis J. de Brabander [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 15, 2000 12:14 AM
> To: Baker, Dennis [sjmr]; [EMAIL PROTECTED]
> Subject: Re: [Zope] Version Paradox
>
> >I've inadvertently created a version paradox.  I created a version and
> >joined it,  then I realized that I did a stupid naming mistake I tried to
> >UNDO the creation of the version.  It allowed me to undo the creation of
> the
> >version,  however I was in the version at the time,  and now I am stuck in
> >the version and cannot get out.  I cannot create a version of the same name
> >and delete it either.  I am stuck.  HELP !!
> >
> >How can I exit a version that doesn't exist?
> >
> I believe that versions are based on cookies and that removing the culprit
> will unlock your paradox
>
> cb
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )





Re:[Zope] Importing data

2000-06-15 Thread Jim Washington

Please, no HTML posts.  I crashed Netscape Mail twice trying to reply. 
Thanks.

But to answer, exporting and importing works just fine if you want to
copy parts of an existing zope site.  It even works recursively, so if
you want to export an entire folder of stuff (or Squishdot site) with
subfolders, properties, etc., just go to its enclosing folder's
"Import/Export" management tab, and follow the directions for
exporting.  This will create a .zexp file.

To import into the new Data.fs file, put the .zexp file you have created
into your [where zope is installed]/import folder on your hard drive. 
Then open the new site's management interface for zope and go to the
same Import/Export tab and use the Import part.

If you have 2 Data.fs files and only 1 zope, you can switch back and
forth between them (stopping and restarting Zope in between so terrible
things do not happen) by moving one and then the other into the
appropriate var directory to do exporting, or importing as you want. 
Copies of the original files will come in handy if you confuse easily
like me.

-- Jim Washington

>Well, I meant that I have some products w/ data setup in the new .fs.  If I copy the 
>>old over then I loose what I am currently working on.
>
>   - Original Message - 
>   From: J. Michael Mc Kay 
>   To: [EMAIL PROTECTED] 
>   Sent: Thursday, June 15, 2000 12:26 PM
>   Subject: [Zope] Importing data
>
>   I have a Data.fs file from a previous instal of Zope.  How can import parts of 
>>that data base to a current data.fs?
>
>   I have a product setup in the old .fs that I want to use in the newlike a 
>>squishdot for instance.

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




Re: [Zope] Importing data

2000-06-15 Thread Chris McDonough

Have you tried pushing the 'Export' button in the management interface?
-- 
Chris McDonough
Digital Creations
Publishers of Zope - http://www.zope.org

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




Re: [Zope] Importing data

2000-06-15 Thread J. Michael Mc Kay



Well, I meant that I have some products w/ data 
setup in the new .fs.  If I copy the old over then I loose what I am 
currently working on.

  - Original Message - 
  From: 
  J. 
  Michael Mc Kay 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, June 15, 2000 12:26 
  PM
  Subject: [Zope] Importing data
  
  I have a Data.fs file from a previous instal of 
  Zope.  How can import parts of that data base to a current 
  data.fs?
   
  I have a product setup in the old .fs that I want 
  to use in the newlike a squishdot for 
instance.


[Zope] indexing sub-objects?

2000-06-15 Thread Philipp Dunkel

Hi all,
I have simple question:

Is it possible to story properties of zclass's subobjects together with the
zclass?

TIA
 

* Philipp DunkelICQ# 60149094  *
* zReal Productions*
* meet me at DALNet chan #phidu*




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




Re: [Zope] Importing data

2000-06-15 Thread Oleg Broytmann

On Thu, 15 Jun 2000, J. Michael Mc Kay wrote:
> I have a Data.fs file from a previous instal of Zope.  How can import parts of that 
>data base to a current data.fs?

   Just copy it in place. Data.fs files are compatible across 2.0+
versions, across different OSes and even different platforms/processors.

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


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




RE: [Zope] Version Paradox

2000-06-15 Thread Baker, Dennis [sjmr]

No luck,  Maybe I'm describing my problem wrong,  When I go to manage Zope
The header at the top says "
   Folder at / * (/Developement%20Site) 
   ^ (This is the version Symbol)

It doesn't Say that I am working in a version otherwise.  Then if I attempt
to create a new version I get the following error:

  Error Type: VersionLockError
  Error Value: ("'\\000\\000\\000\\000\\000\\000\\000\\002'",
'/Developement%20Site')

I can create a version in a subfolder,  and subfolders don't have the
"Folder at" stuff all messed up.  Unfortunately this is my production server
too,  not my testing server.

-Original Message-
From: Cornelis J. de Brabander [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 15, 2000 12:14 AM
To: Baker, Dennis [sjmr]; [EMAIL PROTECTED]
Subject: Re: [Zope] Version Paradox


>I've inadvertently created a version paradox.  I created a version and
>joined it,  then I realized that I did a stupid naming mistake I tried to
>UNDO the creation of the version.  It allowed me to undo the creation of
the
>version,  however I was in the version at the time,  and now I am stuck in
>the version and cannot get out.  I cannot create a version of the same name
>and delete it either.  I am stuck.  HELP !!
>
>How can I exit a version that doesn't exist?
>
I believe that versions are based on cookies and that removing the culprit
will unlock your paradox

cb



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

2000-06-15 Thread J. Michael Mc Kay



I have a Data.fs file from a previous instal of 
Zope.  How can import parts of that data base to a current 
data.fs?
 
I have a product setup in the old .fs that I want 
to use in the newlike a squishdot for instance.


Re: [Zope] Mozilla for mgmt

2000-06-15 Thread Martijn Pieters

On Thu, Jun 15, 2000 at 09:07:04AM -0700, [EMAIL PROTECTED] wrote:
> Has anyone besides me had trouble using Mozilla to manage Zope ie access
> the control panel via log in?
> 
> This is on Windows
> 
> yes I know it doesn't matter

There are regressions in recent Mozilla builds that prevent the authentication
dialog from functioning properly. This regression seems to keep popping up
once in a while. The password textbox is then broken, and Mozilla tries to
authenticate you with an empty password field.

Often, you can bypass it by typing the password in a seperate text window,
then copying and pasting it into the password textfield. This has worked for
me on Linux.

Other than this problem I have had no trouble managing Zope servers with
Mozilla, or at least not much.. it all depends on the quality of the nighty
build. Try a newer or older build, I'd say.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
|   The Open Source Web Application 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] Mozilla for mgmt

2000-06-15 Thread jholland

Has anyone besides me had trouble using Mozilla to manage Zope ie access
the control panel via log in?

This is on Windows

yes I know it doesn't matter



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

2000-06-15 Thread kwan

Hi:

In the way of PCGI work.
PCGI Wrapper sends request to PCGI Application throught INET port.
This is what mention on ZAG document.
However, it also has a note said that the PCGI Wrapper is capable of
launching the PCGI application, if it is not currently running

My problem is, how to found out that the PCGI application is not running
and which cause the PCGI Wrapper to launch it instead?

My situation is like this:
I setup Zope communicate with IIS.  However, after I use the
scripts/zope.pcgi
the var/pcgi.pid got changed.  As the ZAG document mention above, it
looks like
after the Zope server startup... somehow, the PCGI Application (is it
pcgi_publisher.py?) dead/shutdown.  Which makes PCGI Wrapper
(pcgi-wrapper.exe?) to launch its own one.  Hence, a new proccess with
different PID.  Since it is a different proccess, it is not allow to
touch the Database file and cause me get the error message "Could not
lock the database file"  Am I right on this?

If this is the situation, how do I check to make sure the PCGI
Application actually dead or not response after Zope start up?
What can I do to check what cause it to close?

Thanks very much for your time

Kwan


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




Re: [Zope] Virtual hosts: How to make proper intra-site URL's?

2000-06-15 Thread Rob W. W. Hooft

> "ES" == Evan Simpson <[EMAIL PROTECTED]> writes:

 ES> - Original Message - From: Rob W. W. Hooft
 ES> <[EMAIL PROTECTED]>
 >> I have set up a site:
 >> 
 >> www.site
 >> 
 >> In this site, there are a few virtual hosts:
 >> 
 >> www.host1 --> www.site/Host1 www.host2 --> www.site/Host2
 >> 
 >> Thanks to a nice access rule, both the left and right names can be
 >> used to refer to the information. So far so good.

 ES> You mention an Access Rule, but do you have SiteRoots in the
 ES> Host1 and Host2 folders?

Yes, I do! So: the URL0..N and PARENT0..N do refer to the right host name.
The problem is that since the "level" is different for "www.host1" and
for "www.site/Host1", so I don't know to which PARENT or URL I need to
refer

Side effect of the AccessRule is also that the Z2.log file doesn't log
enough any more as I mailed yesterday. I'd still be interested in a
solution to that problem as well

Regards,

Rob

-- 
=   [EMAIL PROTECTED]  http://www.hooft.net/people/rob/  =
=   R&D, Nonius BV, Delft  http://www.nonius.nl/ =
= PGPid 0xFA19277D == Use Linux! =

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




[Zope] DCOracle source examples...

2000-06-15 Thread Juan Jose Garcia Garcia

Hello...

How can I get real DCOracle source examples  ??

Many, many thanks...
--
-
Juan Jose Garcia
INFORMATICA EL CORTE INGLES S.A.
Departamento de Desarrollo de Plataformas Sectoriales
Laboratorio StoreFlow
Avda. de Cantabria, 51
28042 - MADRID
e-mail: [EMAIL PROTECTED]
Tfno:  91-329-82-00 Ext. 8341
Movil: 629-08-56-73
Fax: 91-329-54-59
-



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

2000-06-15 Thread Tom Schwaller

The Generic User Folder (GUF) Product seems broken
with the new beta relaese. Has anybody the same problem?
I use a kind of thing modelled after

http://www.zope.org/Members/hippy/GUF_SQL_crypt_1_2

I imported the folder from an older installation, but 
the underlying Zope-API which GUF uses seems changed, 
so it does not work.

Even adding a GUF-folder by hand does not work:

Error Type: KeyError
Error Value: PARENT_URL

Traceback (innermost last):
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222,
in publish_module
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 187,
in publish
  File /usr/local/Zope-2.2.0/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171,
in publish
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: manage_addGenericUserFolder)
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112,
in call_object
(Object: manage_addGenericUserFolder)
  File
/usr/local/Zope-2.2.0/lib/python/Products/GenericUserFolder/GenericUserFolder.py,
line 576, in manage_addGenericUserFolder
  File /usr/local/Zope-2.2.0/lib/python/ZPublisher/HTTPRequest.py, line
809, in __getitem__
KeyError: (see above)


Any hints? 


-- 

Tom Schwaller
http://www.linux-magazin.de
http://www.linux-community.de

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




Re: [Zope] Extra Path Info

2000-06-15 Thread Tino Wildenhain

Hi Sunil,
> Sunil Jain wrote:
> 
> I am using tomcat 3.1 with apache 1.3.12.
> Is it possible to send additional information on the URL
> (as in servlets, between servlet name and query) in a jsp
> request. 
 ^ schould it not be a question mark here?
> For example .. snoop.jsp/ABC?query=..

I dont see the relation to Zope here,
but why do you want to add a path to a document? 
>From what I know it does not work.
You should probably use a servlet here or zope with the 
traversal patch for documents and methods.

Regards
Tino Wildenhain

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




Re: [Zope] problem with PTK and LoginManager

2000-06-15 Thread Tino Wildenhain

Hi,

Tim Lynch wrote:
> 
> Hi,
> 
> I can't seem to get PTK to install. When I put both PTKBase and PTKDemo
> in the Products directory, PTKBase is OK, but PTKDemo is 'broken'.
> The traceback is:
> 
This is already mentioned in the Install-Document on the download-page.
(in short: you have to restart your zope)
Regards
Tino Wildenhain

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




Re: [Zope] Virtual hosts: How to make proper intra-site URL's?

2000-06-15 Thread Evan Simpson

- Original Message -
From: Rob W. W. Hooft <[EMAIL PROTECTED]>
> I have set up a site:
>
>www.site
>
> In this site, there are a few virtual hosts:
>
>www.host1  --> www.site/Host1
>www.host2  --> www.site/Host2
>
> Thanks to a nice access rule, both the left and right names can be
> used to refer to the information. So far so good.

You mention an Access Rule, but do you have SiteRoots in the Host1 and Host2
folders?

Cheers,

Evan @ digicool & 4-am


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




[Zope] sorry just testing list

2000-06-15 Thread jholland



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Living dangerously - lost objects re-appear after database packing

2000-06-15 Thread Paul Browning


Hi - I don't recall any mention of this sort of
experience before so I thought I'd share it and
would be interested in reactions. 

Yesterday around 18:30 (BST) two Linux boxes of
mine which both run Zope re-booted - as they
sit next to each other on the same electrical
supply I've assuming there was some sort of spike.

Neither are setup to re-start Zope services
automatically - these are not production servers.
They are also not backed up 

So I did the usual manual restart and, on one,
got a bit of a shock. It went like this:

1. Login to box running RH 5.2
2. su
3. Start Zope 2.1.6 that has been running fine 
   for months.
4. Open browser to check most recent stuff that
   I've developed looks OK - it's not there.
5. Go to management screen - newer folders are missing.
6. Go to Undo. Most recent transaction Apr 19. Uh-oh.
7. Decide to get out quick. Shutdown via CP.
8. Data.fs shown as last modified 6 June.
9. Copied Data.fs (having no regular back-ups)
10. Restarted Zope
11. Packed database (shrinks from 36MB to 9MB).
12. Breathe sigh of relief as missing folders re-appear.

Is this normal, doctor?

Paul

--
 The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
 E-mail: [EMAIL PROTECTED]  URL: http://www.bris.ac.uk/


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




RE: [Zope] getUsers cf. get_valid_userids question

2000-06-15 Thread Geoff Gardiner

Thank you. Adapting your code, I also added getUserIdsWithPermission.

Geoff


from App.Common import aq_base

def getUserIdsWithPermission(self, permission):
  "Get all userids having a permission."
  item=self
  dict={}
  while 1:
if hasattr(aq_base(item), 'acl_users') and hasattr(item.acl_users,
'user_names'):
  for user in item.acl_users.getUsers():
if user.has_permission(permission, object=self):
  dict[user.getUserName()]=1
if not hasattr(item, 'aq_parent'):
  break
item=item.aq_parent
  keys=dict.keys()
  keys.sort()
  return keys

-Original Message-
From: Shalabh Chaturvedi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 15, 2000 5:43 AM
To: Geoff Gardiner; Zope Mailing List
Subject: Re: [Zope] getUsers cf. get_valid_userids question


Hi:

In an attempt to solve the very same problem (Get a list of all users with
certain role) I created an external method. It walks up the acquisition
path,
at each level checking the existing acl_users (if it exists) for all users
with
the role.



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




Re: [Zope] private Z Classes

2000-06-15 Thread Armin Wappenschmidt

Shalabh Chaturvedi wrote:
> 
> Hi
> 
> Could it be the infamous "Resouce Not Found" bug?
> 
> The following link has information about the bug and how to work around it.
> http://www.zope.org/Members/gtk/containers
> 

Yes - that's it!

Thanks!
armin :)

-- 
Armin Wappenschmidt - Consultant Engineer

 SDRC Ford Program OfficeSDRC Software und Service GmbH
 Spessartstrasse (D-MD/PA-2) Martin-Behaim-Strasse 12
 D-50725 Koeln-Merkenich D-63263 Neu-Isenburg
 Phone  (+49) 0221-90 33619  Phone   (+49) 06102-747-0
 Fax(+49) 0221-90 31243  Fax (+49) 06102-747 299
 PROFS  AWAPPENS
mailto:[EMAIL PROTECTED]

_/_/_/_/   _/_/_/ _/_/_/  _/_/_/_/
   _/ _/_/   _/_/_/
  _/_/_/_/   _/ _/  _/_/_/  _/
   _/   _/ _/  _/   _/ _/
_/_/_/_/   _/_/_/_/   _/ _/   _/_/_/_/
S O F T W A R E  U N D  S E R V I C E  G M B H


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




Re: [Zope] Simple tabular data. Do I need SQL?

2000-06-15 Thread Tony McDonald

At 12:01 pm +0200 15/6/00, Rob W. W. Hooft wrote:
>On my web site, I have made a "News" page. The "News" items themselves
>are listed as a "lines"-property named "Items" on the News folder:
>
>date1;text1
>date2;text2
>...
>
>They are accessed in a dtml-method:
>
>
>
>
>
>
>   dat="lin[0]"
>   txt="lin[1]">
>
>
>
>
>
>
>
>
>-
>
>Since this is a small listing, this is still manageable. But: I do find the
>";"-delimited fields a bit hackish, so I'm looking for a better way to
>handle this kind of very simple tabular data.
>
>Do I really have to go all the way to a proper relational database and
>learn SQL? Or is there another way? If I do need to go with a real
>database, do I have to pay attention to the "Demo Only" warnings in
>GadFly?

I'd use TinyTable http://www.zope.org/Members/tsarna/TinyTable

It's lightweight and functional. No SQL queries as such, but things like



and



work fine.
Shane Hathaway has a product called 'TinyTable plus' 
http://www.zope.org/Members/hathawsh/TinyTablePlus that allows 
updates of the original TinyTable data.

Tone.
--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

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




Re: [Zope] Virtual hosts: How to make proper intra-site URL's?

2000-06-15 Thread Rik Hoekstra


>Thanks to a nice access rule, both the left and right names can be
>used to refer to the information. So far so good.

>I have not been able to produce this effect using either BASE0..N or
>URL0..N.
>
>Help?


You probably need the SiteAccess product by Evan Simpson to do this. It is
at http://www.zope.org/Members/4am/SiteAccess . I don't use it myself, but
apparently many people on the list do. I don't know if it's already safe to
use it with 2.2 beta, but for a production site you probably won't run this
anyway

Rik


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




Re: [Zope] Simple tabular data. Do I need SQL?

2000-06-15 Thread Rik Hoekstra

>On my web site, I have made a "News" page. The "News" items themselves
>are listed as a "lines"-property named "Items" on the News folder:
>
>date1;text1
>date2;text2
>...
>
>They are accessed in a dtml-method:
>
>
>
>
>
>
>  dat="lin[0]"
>  txt="lin[1]">
>
>
>
>
>
>
>
>
>-
>
>Since this is a small listing, this is still manageable. But: I do find the
>";"-delimited fields a bit hackish, so I'm looking for a better way to
>handle this kind of very simple tabular data.
>
>Do I really have to go all the way to a proper relational database and
>learn SQL? Or is there another way? If I do need to go with a real
>database, do I have to pay attention to the "Demo Only" warnings in
>GadFly?


No, as long as it doesn't grow too much Gadfly will probably be fine (it is
an in memory db)
Another possibility is to use TinyTable, a contributed product by Ty Sarna.
It's at http://www.zope.org/Members/tsarna/TinyTable
Still another possibility is to use the Catalog to catalog news items. The
Catalog approach has the advantage that your news items will be monitored
dynamically. The Catalog is built into Zope


hth

Rik


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




Re: [Zope] private Z Classes

2000-06-15 Thread Shalabh Chaturvedi

Hi

Could it be the infamous "Resouce Not Found" bug?

The following link has information about the bug and how to work around it.
http://www.zope.org/Members/gtk/containers

HTH,
Shalabh
- Original Message - 
From: Armin Wappenschmidt <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 15, 2000 3:25 PM
Subject: [Zope] private Z Classes


> Hi all,
> 
> I'm trying to create a product with a Z Class (call it Z_Super) that
> contains other (private) Z Classes (call them Z_Subs).
> 
> Creating Z_Super is no problem, but creating Z_Sub in Z_Super
> gives me the following traceback:
> 
> Traceback (innermost last):
>   File
> /ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
> line 214, in publish_module
>   File
> /ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
> line 179, in publish
>   File /ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/Zope/__init__.py,
> line 202, in zpublisher_exception_hook
> (Object: RoleManager)
>   File
> /ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
> line 151, in publish
>   File
> /ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/ZPublisher/BaseRequest.py,
> line 430, in traverse
>   File
> /ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/AccessControl/User.py,
> line 375, in validate
> (Object: RoleManager)
>   File
> /ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/ZPublisher/HTTPResponse.py,
> line 511, in notFoundError
> NotFound: (see above)
> 
> 
> 
> FYI I'm using Zope 2.1.6.
> 
> Thanks a lot.
> armin 
> 



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




[Zope] SQL snippet...

2000-06-15 Thread Tony McDonald

Here's a quickie.

If you're using MySQL and return integers, you'll see L added to the 
end of your numbers (it's a Python thing!)

Try this


et volia!, no L added to the end of your numbers...

Ithangyu.
Tone.
--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

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




[Zope] Simple tabular data. Do I need SQL?

2000-06-15 Thread Rob W. W. Hooft

On my web site, I have made a "News" page. The "News" items themselves
are listed as a "lines"-property named "Items" on the News folder:

date1;text1
date2;text2
...

They are accessed in a dtml-method:















-

Since this is a small listing, this is still manageable. But: I do find the
";"-delimited fields a bit hackish, so I'm looking for a better way to
handle this kind of very simple tabular data. 

Do I really have to go all the way to a proper relational database and
learn SQL? Or is there another way? If I do need to go with a real
database, do I have to pay attention to the "Demo Only" warnings in
GadFly?

Lots of questions from a python-loving-zope-newbie.

Regards,

Rob Hooft.

-- 
=   [EMAIL PROTECTED]  http://www.hooft.net/people/rob/  =
=   R&D, Nonius BV, Delft  http://www.nonius.nl/ =
= PGPid 0xFA19277D == Use Linux! =

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




[Zope] private Z Classes

2000-06-15 Thread Armin Wappenschmidt

Hi all,

I'm trying to create a product with a Z Class (call it Z_Super) that
contains other (private) Z Classes (call them Z_Subs).

Creating Z_Super is no problem, but creating Z_Sub in Z_Super
gives me the following traceback:

Traceback (innermost last):
  File
/ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
line 214, in publish_module
  File
/ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
line 179, in publish
  File /ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/Zope/__init__.py,
line 202, in zpublisher_exception_hook
(Object: RoleManager)
  File
/ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py,
line 151, in publish
  File
/ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/ZPublisher/BaseRequest.py,
line 430, in traverse
  File
/ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/AccessControl/User.py,
line 375, in validate
(Object: RoleManager)
  File
/ford/sdrcsvr/u/zope/Zope-2.1.6-src/lib/python/ZPublisher/HTTPResponse.py,
line 511, in notFoundError
NotFound: (see above)



FYI I'm using Zope 2.1.6.

Thanks a lot.
armin 



-- 
Armin Wappenschmidt - Consultant Engineer

 SDRC Ford Program OfficeSDRC Software und Service GmbH
 Spessartstrasse (D-MD/PA-2) Martin-Behaim-Strasse 12
 D-50725 Koeln-Merkenich D-63263 Neu-Isenburg
 Phone  (+49) 0221-90 33619  Phone   (+49) 06102-747-0
 Fax(+49) 0221-90 31243  Fax (+49) 06102-747 299
 PROFS  AWAPPENS
mailto:[EMAIL PROTECTED]

_/_/_/_/   _/_/_/ _/_/_/  _/_/_/_/
   _/ _/_/   _/_/_/
  _/_/_/_/   _/ _/  _/_/_/  _/
   _/   _/ _/  _/   _/ _/
_/_/_/_/   _/_/_/_/   _/ _/   _/_/_/_/
S O F T W A R E  U N D  S E R V I C E  G M B H


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Virtual hosts: How to make proper intra-site URL's?

2000-06-15 Thread Rob W. W. Hooft

I have set up a site:

   www.site

In this site, there are a few virtual hosts:

   www.host1  --> www.site/Host1
   www.host2  --> www.site/Host2

Thanks to a nice access rule, both the left and right names can be
used to refer to the information. So far so good.

In www.site/Host1 I have define a navigation bar dtml method 
to show some important check points in the host.

Question: How do I make relative URLs in the navigation bar work so
that they work under all circumstances. E.g. if I have a "People"
Folder under "Host1" listed in the navigation bar, I'd like to see
that the link shows up as follows:

If I am looking at page:"People" should link to:
 http://www.host1/  People or  http://www.host1/People
 http://www.host1/News  ../People  or  http://www.host1/People
 http://www.site/Host1  People or  http://www.site/Host1/People
 http://www.site/Host1/News ../People  or  http://www.site/Host1/People

I have not been able to produce this effect using either BASE0..N or
URL0..N.

Help?

Rob Hooft

-- 
=   [EMAIL PROTECTED]  http://www.hooft.net/people/rob/  =
=   R&D, Nonius BV, Delft  http://www.nonius.nl/ =
= PGPid 0xFA19277D == Use Linux! =

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




[Zope] fingding problem in using ZCatalog

2000-06-15 Thread P Chandra Sekhar

Hi Everybody...

I'm trying with ZCatalog. I've installed it properly and after creating
one ZCatalog object, when I'm trying to click on it, it is asking for
user name and password even though I'm super user for the Zope.

It is showing the problem as unauthorized.

I didn't get the point what I did the wrong. Pls. point me in right
direction.

Thank you  in advance,

Regards,
Chandra Sekhar


begin:vcard 
n:;
tel;work:8522192 extn 3308
x-mozilla-html:FALSE
url:http://www.siri.co.in
org:SIRI Technologies Pvt Ltd
version:2.1
email;internet:[EMAIL PROTECTED]
title:Sr Software Engineer
adr;quoted-printable:;;92, 2nd Main,=0D=0AElectronic City,=0D=0A;Bangalore-561229;Karnataka-India;;
fn:Chandra Sekhar.P
end:vcard



Re: [Zope] Version Paradox

2000-06-15 Thread Cornelis J. de Brabander

>I've inadvertently created a version paradox.  I created a version and
>joined it,  then I realized that I did a stupid naming mistake I tried to
>UNDO the creation of the version.  It allowed me to undo the creation of
the
>version,  however I was in the version at the time,  and now I am stuck in
>the version and cannot get out.  I cannot create a version of the same name
>and delete it either.  I am stuck.  HELP !!
>
>How can I exit a version that doesn't exist?
>
I believe that versions are based on cookies and that removing the culprit
will unlock your paradox

cb


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




Re: [Zope] SuperCannotOwn

2000-06-15 Thread Bill Anderson

"Hellekin O. Wolf" wrote:
> 
> ... La suite...
> 
> Hello people !
> 
> I just installed a fresh v2.2.0b1 and bumped into some annoying problem.
> 
> As the security model seems to have been changed, the superuser cannot
> own anything.
> 
> That means we now need to install a new user with management access to
> get started.
> 
> The question is :
> 
> How to setup an "admin account" that will have the right to add new
> stuff ?
> 
> *

In your root acl_users folder, add a user, and assign them the role of
'Manager'.

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