[Zope] Problems with adding tutorial

2000-12-13 Thread Bob Sidebotham

(I submitted this as a bug report, and then I later discovered this
list. So perhaps it's overkill to send this here, too. Normally I would
have sent it here first, then filed a bug report if it was obvious that
it was a new bug. So I apologize for the redundancy).

When I click "ADD" to add a zope tutorial, I get a dialog box from my
browser that says "unable to locate server localhost:8080". If I click
anything else, then the server seems to restart (I'm running with z2.py
-D). I don't get any error messages, other than the server restart
messages. If I do two ADD's in a row (i.e. attempt to add the tutorial
a second time), then the server terminates after restarting once.

I did see the messages regarding creating a non-admin user and
authenticating as that user (by first terminating the zope process). I
did all that.

Any ideas? I'm a complete newbie, so it'd be helpful to be able to run
through the tutorial.

Please note that I'm using the latest zope tarball:

  Linux Mandrake 6.0, zope2.3.0a1, Python 2.0, Communicator 4.6.

Thanks,
Bob Sidebotham

[EMAIL PROTECTED]




__
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] multiple selects are not allowed

2000-12-13 Thread Diny van Gool

Hi,

I want to execute multiple SQL statements in one SQL-Method. In the
mailinglist archives i found the answer but when i try it i get an error:

Error, exceptions.ValueError: multiple selects are not allowed

I used a simple Z SQL Method query (Zope 2.2.2) just to try:

select *
from GENEESM_DIER



select *
from TOED_WIJZE

What am i doing wrong?

Diny


DIVA, Faculty of Veterinary Medicine
Utrecht University,  The Netherlands
http://www.vet.uu.nl 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 on running the ZOPE by using ZmySQLDA

2000-12-13 Thread Angietel



Finally my ZOPE is connected to MySQL succesfully, 
i can insert, delete the record,but i can not search and view my record in ZOPE. 
When i go to MySQL it can shows all my database records after my 
modification in ZOPE. Every time when i want to search or view my records it 
will promt out the illegal operation message in ZOPE and my pyhon 
will be exactly look like this:-
 
iles\WebSite\z2.py" 
-D--2000-12-13T08:34:28 PROBLEM(100) ZServer Computing default 
hostname--2000-12-13T08:34:31 INFO(0) ZServer Medusa (V1.16.4.2) 
started at Wed Dec 13 16:34:31 
2000    Hostname: 
ANGIE    Port:8080
 
--2000-12-13T08:34:31 INFO(0) ZServer FTP 
server started at Wed Dec 13 16:34:31 
2000    
Authorizer:None    Hostname: 
angie    Port: 
8021--2000-12-13T08:34:31 INFO(0) ZServer PCGI Server started at Wed 
Dec 13 16:34:31 2000    Inet 
socket port: 8090--2000-12-13T08:34:31 INFO(0) ZServer Monitor 
Server (V1.8) started on port 8099
 
C:\Program Files\WebSite>
 
P/s let me know me that whether this is regard 
to my MySQL or ZOPE or Python, but i have tried to reinstall all of them, and the situation is still remain 
the same. Thanks for your concern.


Re: [Zope] HTTPServer.py patch

2000-12-13 Thread Oleg Broytmann

On Tue, 12 Dec 2000, Evan Simpson wrote:
> >With the recent patch I have problems connecting directly to ZServer
> > (port 8080) - Zope reported error 500 and restarted itself.
>
> Is this the patch from the Collector, or the replacement HTTPServer.py I
> recently mailed out?  If it's the replacement, which version did you try?
> The one for Zope 2.0.x and 2.1.x, or the one for Zope 2.2.x?

   I've got the patch from the mailing list. I saw only one replacement
HTTPServer.py here - 13979 bytes in size.

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




[Zope] Changing a Zclass meta type doesn't work

2000-12-13 Thread Ivan Cornell

Hi all,

I've finally tracked down the bug that was preventing me from using
copy/paste/rename with my ZClasses (_verifyObjectPaste exceptions). It's
caused by the fact that I changed their meta type names after creation
to allow them to be stored easily in a tokens attribute (I removed the
spaces).

The all_meta_types method used by verifyObjectPaste appears to return
the original meta_type of a ZClass, even if you rename it, and so the
comparison fails. This is because all_meta_types actually uses the 'add
list name' of the factory, and changing this appears to work. I think it
would good if the latter's importance it is hilighted - that it isn't
just the text that appears in the 'Add Product List'.

Regards,

Ivan

PS Yes, the above took 3 hours.


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

2000-12-13 Thread Chris Withers

Michel Pelletier wrote:
> 
> See, people used to post helpful little things like this in DTML.  What a
> nightmare.  Python Scripts rock!  We're gonna be seein' alot more of them
> fly by on the list once people get over the initial shock that they can do
> 90% of what they've been doing in Python.

Yay! :-)

Now all Zope needs is a concurrent versioning system with an 'archive to
CVS' option for folders and there won't be a need for python products
;-)

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] SiteAccess, SSL + SiteRootBASE

2000-12-13 Thread Chris Withers

emf wrote:
> 
> I do this in the access rule.
> 
> 
> 
> 

Shouldn't that access rule be a Python Script:

if condition:
REQUEST.set('SiteRootBASE','some-value')

*grinz*

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] ANNOUNCE: Zope 2.3.0 alpha 1 released...

2000-12-13 Thread Chris Withers

Michel Pelletier wrote:
> 
> On Tue, 12 Dec 2000, Chris Withers wrote:
> 
> That being said, perhaps you can be the first person to get it to work
> using the various free ports of gcc to windows.

There a how-to on compiling with gcc anywhere?

cheers,

Chris

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




[Zope] Dreamweaver and WebDav

2000-12-13 Thread Hans de Wit

Is anybody using the combination Dreamweaver 4 WebDAV Zope already?
A connection was easy to make. At the moment i want to put or get something "access to 
the desired resource is denied by the server". I checked my password, i have the 
correct 
rights, and it is working more or less fine on ftp. (i can not change a file name on 
the host: an ftp error occured, cannot rename hihi.htm to haha.htm. 500 RNFR command 
not 
understood)


Met vriendelijke groeten,

Hans de Wit

[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] Gopher from Zope

2000-12-13 Thread Dario Lopez-Kästen

I wanna serve gopher:// from Zope :-)

Is it possible?  Don't need answers like "but gopher is old, ugly, etc", "we
will loose all fomatting, etc", etc.

Thanks,

/dario :))

read all about it:
gopher://gopher.heatdeath.org/00/the%20gopher%20manifesto.txt

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems & Services


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




Re: [Zope] Gopher from Zope

2000-12-13 Thread Oleg Broytmann

On Wed, 13 Dec 2000, Dario Lopez-Kästen wrote:
> I wanna serve gopher:// from Zope :-)
>
> Is it possible?

   It is possible, but no so simple. How would you map gopher menues to
Zope objects?

   On the positive side - thanks Zope for your component-based
architecture. You just need to write GopherServer.py; see HTTPServer.py,
PCGIServer.py in ZServer subdirectory.

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




Re: [Zope] multiple selects are not allowed

2000-12-13 Thread Jose Soares

from ZSQL Methods User's Guide, last row on pag. 22:

"Note that no more than one SQL select statement may be used in a single SQL
Database Method."



Diny van Gool wrote:

> Hi,
>
> I want to execute multiple SQL statements in one SQL-Method. In the
> mailinglist archives i found the answer but when i try it i get an error:
>
> Error, exceptions.ValueError: multiple selects are not allowed
>
> I used a simple Z SQL Method query (Zope 2.2.2) just to try:
>
> select *
> from GENEESM_DIER
>
> 
>
> select *
> from TOED_WIJZE
>
> What am i doing wrong?
>
> Diny
>
> DIVA, Faculty of Veterinary Medicine
> Utrecht University,  The Netherlands
> http://www.vet.uu.nl
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] multiple selects are not allowed

2000-12-13 Thread Dario Lopez-Kästen


- Original Message -
From: "Jose Soares" <[EMAIL PROTECTED]>
Subject: Re: [Zope] multiple selects are not allowed


> from ZSQL Methods User's Guide, last row on pag. 22:
>
> "Note that no more than one SQL select statement may be used in a single
SQL
> Database Method."
>
> Diny van Gool wrote:
>
> > Hi,
> >
> > I want to execute multiple SQL statements in one SQL-Method. In the
> > mailinglist archives i found the answer but when i try it i get an
error:


Diny, why do you need to execute multiple selects in one SQL-Method?

Maybe there is another way of doing it?

/dario

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems & Services


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

2000-12-13 Thread Paolo Quaglia



Hi 
All,
I'm building a high 
transaction traffic db application using Zope.
I used for this 
tests two DB: MSAccess 97 and SQL Server 7.0 with the ZODBCDA 
product
 
I have made 
some tests and I have found this:
 
The test 
is:
I have two DTML 
document called Test1 and Test2
I have 2 ZSQL 
Queries called Select1 and Select2
I have an external 
method (which id is Wait) that call the time.sleep(10) #it sleeps 10 
seconds
 
Test1 calls Select1 
and then the Wait() 
 
Test2 calls Select2 

 
First transaction 
test:
Select1 and Select2 
queries are equal:= select * from Users where name='example'
I call test1 in 
a browser and immediately after test2 in another 
Browser.
RESULT: Test2 wait 
the end of test1 before the page was displayed
 
Second Transaction 
test:

Select1 = select * 
from Users where name='example'
Select2 = select * 
from Products where id='example'
I call test1 in 
a browser and immediately after test2 in another 
Browser.
RESULT: Test2 wait 
the end of test1 before the page was 
displayed!!
 
 
Third Transaction 
test:

Select1 = select * 
from Users where name='example' on the Access Connection
Select2 = select * 
from Products where id='example' on the SQL sever 
Connection
I call test1 in 
a browser and immediately after test2 in another 
Browser.
RESULT: Test2 wait 
the end of test1 before the page was displayed!! :(
 
Now 
Summarizing:
I think the Zope 
transaction Server works in every Zope operation. This is good, but it 
seems that it uses a bad locking method. I mean when I read a DB (usually a 
select) I wouldn't to lock the entire DB and I would let the other DB session 
free to call select statements!!
 
Am I right?? Or I do 
some mistake?? 
Thanks Very much for 
your cooperation
Paolo QuagliaInformation Technology 
CoordinatorSitek S.p.A.[EMAIL PROTECTED] 
 


[Zope] default values in forms

2000-12-13 Thread Olaf Zanger

hi there,

i'd like to send default values for an data update with the link to the
form

like
c

unfortunately name may contain spaces.

i found out that spaces may be replaced by "+" in the link, 
but how do i get the "+" into the  statement?

thanks for help

olaf


-- 
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] Problems with adding tutorial

2000-12-13 Thread Aleksander Salwa


On Tue, 12 Dec 2000, Bob Sidebotham wrote:

> I did see the messages regarding creating a non-admin user and
> authenticating as that user (by first terminating the zope process). I
> did all that.

Terminating BROWSER, not Zope.

> Please note that I'm using the latest zope tarball:
> 
>   Linux Mandrake 6.0, zope2.3.0a1, Python 2.0, Communicator 4.6.

Keep in mind that the latest STABLE version is Zope 2.2.4.
Officially supported (by Zope) release of Python is still 1.5.2.


   Aleksander Salwa



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

2000-12-13 Thread Stephane Bortzmeyer

I just try to automatically get a list of subfolders, following the
example in the ZopeBook
. Here is
my code, in a DTML method in the root folder:


  


  


If I call it from /index_html, it works fine. If I call it from any
other document anywhere, I just get  (so I'm sure the method
has been called) but nothing else as if objectValues sent nothing (no
need to say that I *have* subfolders an I also tried without the
'Folder' restriction, with the same result).

Any advice? Zope RPM 2.2.2 on RedHat 6.2.

 Zope version: Zope 2.2.2 (source release, python 1.5.2, linux2) 
 Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC
 egcs-2.91.66 19990314/Linux (egcs- 
 System Platform: linux-i386 
 Process ID: 17906 (4101) 
 Running for: 2 hours 55 min 45 sec 




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

2000-12-13 Thread Paolo Quaglia



Reading the [EMAIL PROTECTED] archive I found one message with 
an interesting sentence:
 
[Message]
> I am currently considering and evaluating Zope 
as one of the options we have> to build a really large, completely 
databasedriven "enterprise scale"> web-platform. I am a bit worried about 
this "maximum of 7 threads per dbThis isn't a maximum.  It's just 
the default.  It's easy to increase thenumber of 
connections.
[/Message]
 
 
Where is this 
Default and How can I increase this counter??
Thanks very much in 
advance
Paolo QuagliaInformation Technology 
CoordinatorSitek S.p.A.[EMAIL PROTECTED] 
 


Re: [Zope] HTTPServer.py patch

2000-12-13 Thread Evan Simpson

From: Oleg Broytmann <[EMAIL PROTECTED]>
>I've got the patch from the mailing list. I saw only one replacement
> HTTPServer.py here - 13979 bytes in size.

Looks like you've got the one that only works with Zope 2.0 - 2.1.6.  If
you're using Zope 2.2.0 or above, you need the other one.  See
http://www.zope.org/Members/4am/postbugfix

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] HTTPServer.py patch

2000-12-13 Thread Oleg Broytmann

On Wed, 13 Dec 2000, Evan Simpson wrote:
> Looks like you've got the one that only works with Zope 2.0 - 2.1.6.  If
> you're using Zope 2.2.0 or above, you need the other one.  See
> http://www.zope.org/Members/4am/postbugfix

   Got it. Now it works. Thank you.

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




RE: [Zope] HTML formatting from a text field

2000-12-13 Thread Lee Hunter

Hi Ausum,

Do you mean a text field that shows a row of formatting buttons at the top
for 'bold', 'italic' 'add link' etc.

There is an ActiveX control that is built in to IE Explorer 5.x - you just
have to call it from your page.

Here's the information from Microsoft:

http://msdn.microsoft.com/workshop/author/dhtml/edit/ref/cncpt.asp

If you get it working with Zope (which shouldn't be a problem) let us know.

The Manila/Frontier CMS uses it as a default and it works well. It's very
handy when you have users who have basic word processor knowledge (i.e. they
know enough to select text first then click a formatting button) but can't
be trusted with hand coding html.

Cheers

Lee Hunter



  - - - H U M  C O M M U N I C A T I O N S  L T D - - -
website design, content management and technical editing
   Ste. 147 99 Fifth Ave Ottawa ON Canada K1S 5P5
  1-819-459-2511


Ausum wrote:
> what I have in mind, wich is
> a sort of simple html editor within a text field. As I said before, the
> only place I've seen something like that is at Hotmail.
>


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




Re: [Zope] More on DB Transactions

2000-12-13 Thread Rik Hoekstra



> Paolo Quaglia wrote:
> 
> Reading the [EMAIL PROTECTED] archive I found one message with an
> interesting sentence:
> 
> [Message]
> > I am currently considering and evaluating Zope as one of the options
> we have
> > to build a really large, completely databasedriven "enterprise
> scale"
> > web-platform. I am a bit worried about this "maximum of 7 threads
> per db
> 
> This isn't a maximum.  It's just the default.  It's easy to increase
> the
> number of connections.
> [/Message]
> 
> 
> Where is this Default and How can I increase this counter??
> Thanks very much in advance
> 

AFAIK the ZODBC adapter is still single threaded. See
http://www.zope.org/Members/petrilli/DARoadmap for more information,
though I'm not certain wether this page is still up to date. There are
rumours that for SQL Server you could use the mxODBC adapter, though I
know nothing more of it. Recently there were posts on this list about
using the ZSybase Adapter for SQL Server they're probably thread safe as
well (?). 
Do a search in the archives for more info

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] HTML formatting from a text field

2000-12-13 Thread Rik Hoekstra



Lee Hunter wrote:
> 
> Hi Ausum,
> 
> Do you mean a text field that shows a row of formatting buttons at the top
> for 'bold', 'italic' 'add link' etc.
> 
> There is an ActiveX control that is built in to IE Explorer 5.x - you just
> have to call it from your page.
> 
> Here's the information from Microsoft:
> 
> http://msdn.microsoft.com/workshop/author/dhtml/edit/ref/cncpt.asp
> 
> If you get it working with Zope (which shouldn't be a problem) let us know.
> 


There was a start at a product doing this (called ZIE) by Johan Carlsson
, but it looks like it was aborted quite some time ago. Dont know about
its status. You could try how far it would get you, tho
see:
http://www.zope.org/Members/johanc/ZIE

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] ZWiki hierarchy seems to be broken

2000-12-13 Thread Simon Michael

do you see more than one page name in your url path - eg FrontPage/FrontPage ?

are you acquiring a different standard_wiki_header from somewhere ? 

are you failing to acquire it ? (does page source include 
"" ?) are permissions ok ?

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] HTML formatting from a text field

2000-12-13 Thread David Spencer

Ausum,

I would suggest going to the website for Lotus Quickplace
(www.quickplace.com or www.lotus.com) and signing up for a demo account.
They've got a very simple word processor (bold, italics, a couple of fonts,
etc.) integrated into their project sites that, I think, does what you're
describing.  I'm pretty sure everything is accomplished using Javascript.
If you could port something like this over to zope and release it as a
product, so that WYSIWYG documents can be created through the web and still
incorporate standard headers and footers, I would be a very happy man.  I
dread trying to explain zwiki and structured text to clients.  You might
also want to look at standardbrains.editthispage.com.  He's got an
excellent, javascript-based approach to WYSIWYG editing, but you can't save
it back to the site as far as I can tell.

David


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




Re: [Zope] Last day of Month

2000-12-13 Thread Jose Soares

Use an External Method like this one.

# Perché non usare un metodo esterno?
from DateTime import Date
def lastDay(year,month):
try:
last = Date(year,month+1,1)-1
return last.day
except:
return 31


José

Eric Walstad wrote:

> Hi Paolo,
> I have a Python Metho... er  Python Script that I use that tells me the days
> in each month.  You pass in a Zope DateTime object as a parameter and it
> returns the days in that month:
>
> Parameters: ZopeDateTime
> Code:
> -8<-- Start Snip --8<-
> if ZopeDateTime.isLeapYear():
> intDaysInFebruary = 29
> else:
> intDaysInFebruary = 28
>
> strMonthName=ZopeDateTime.Month()
>
> dicDaysPerMonth =
> {'January':31,'February':intDaysInFebruary,'March':31,'April':30,'May':31,'J
> une':30,'July':31,'August':31,'September':30,'October':31,'November':30,'Dec
> ember':31}
>
> return dicDaysPerMonth.get(strMonthName, 0)
> -8<-- End Snip --8<-
>
> Hope that helps.
>
> Eric.
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Paolo
> Quaglia
> Sent: Tuesday, December 12, 2000 4:05 AM
> To: [EMAIL PROTECTED]
> Subject: [Zope] Last day of Month
>
> Hi everibody
> Is there some tricky way to know the last day of the month of a DateTime
> object?
> for ex: if my DateTime object is 12/12/2000  is there a method or a
> function that return the last day of the month? (in this example 31)
>
> Thanks a lot
> Paolo Quaglia
> Information Technology Coordinator
> Sitek S.p.A.
> [EMAIL PROTECTED]
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )


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




[Zope] turning off inheritance

2000-12-13 Thread Kyler B. Laird


I am working on generating a directory from Zope
objects.  There is a folder full of units (other
folders).  These units contain people (more
folders).

Units and people both have contact information
stored in their properties.  How do I detect if a
person has, for example, 'contact_email' set?

I've tried

It succeeds if the person doesn't have
contact_email set but its unit does.  I've also
tried variations of , with no
success.

Any pointers?  Where could I have found the
answer to this 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] turning off inheritance

2000-12-13 Thread Oleg Broytmann

On Wed, 13 Dec 2000, Kyler B. Laird wrote:
> Units and people both have contact information
> stored in their properties.  How do I detect if a
> person has, for example, 'contact_email' set?
>
> I've tried
>   

   Something like

   (untested, but I use this in External Methods)

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




Re: [Zope] default values in forms

2000-12-13 Thread Andy McKay

An ugly solution is &f_name=">c

Be careful that other none url compliant characters dont slip into your
variables.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Olaf Zanger" <[EMAIL PROTECTED]>
To: "Zope Mailinglist" <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 6:55 AM
Subject: [Zope] default values in forms


> hi there,
>
> i'd like to send default values for an data update with the link to the
> form
>
> like
> c
>
> unfortunately name may contain spaces.
>
> i found out that spaces may be replaced by "+" in the link,
> but how do i get the "+" into the  statement?
>
> thanks for help
>
> olaf
>
>
> --
> soli-con Engineering Zanger
> Dipl.-Ing. (FH) Olaf Zanger Nusch
> Lorrainestrasse 23
> 3013 Bern / Switzerland
> Fon: +41-31-332 9782
> Mob: +41-76-572 9782
> mailto:[EMAIL PROTECTED]
> mailto:[EMAIL PROTECTED]
> http://www.soli-con.com


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




Re: [Zope] turning off inheritance

2000-12-13 Thread Kyler B. Laird


On Wed, 13 Dec 2000 19:39:43 +0300 (MSK) you wrote:
>On Wed, 13 Dec 2000, Kyler B. Laird wrote:
>> Units and people both have contact information
>> stored in their properties.  How do I detect if a
>> person has, for example, 'contact_email' set?
>>
>> I've tried
>>  
>
>   Something like
>
>   (untested, but I use this in External Methods)

Consider it tested.  It works great from DTML.

Now that I know what to seek, I found a couple of
old messages that reference this.  I'm still
honing my ability to get Zope clues.

Thanks for the quick and effective answer!

--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] Problem on running the ZOPE by using ZmySQLDA

2000-12-13 Thread Eric Walstad

Hi Angie.

First off, I think there are some users in the list that are unable to read
HTML formatted email.  I've seen a lot of requests for folks to send only
plain text messages to the list.

Well, I don't run Zope on a Windows machine, so maybe I'm wrong here, but
the output you've shown below looks normal to me.  It doesn't look like an
error.  Is there any error message that's displayed in your browser?  If so,
can you recreate it and send it to the list?

Also, can you include the SQL statement that is causing the problem?  Have
you tried making a ZSQL Method that issues a really simple query, like:
SELECT * FROM InsertYourTableNameHere

You can also try this simple test from your "Z MySQL Database Connection"
object.  Just browse to that object in the Zope management interface, click
the "Test" tab and then enter the SQL statement.  Then click the "Submit
Query" button to test it.  It should return all the records in the table you
specified.  If it doesn't, I would hope it simply returns a traceback and
not crash Zope.

Hope that helps.

Eric.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Angietel
Sent: Wednesday, December 13, 2000 12:42 AM
To: [EMAIL PROTECTED]
Subject: [Zope] Problem on running the ZOPE by using ZmySQLDA


Finally my ZOPE is connected to MySQL succesfully, i can insert, delete the
record,but i can not search and view my record in ZOPE. When i go to MySQL
it can shows all my database records after my modification in ZOPE. Every
time when i want to search or view my records it will promt out the illegal
operation message in ZOPE and my pyhon will be exactly look like this:-

iles\WebSite\z2.py" -D
--
2000-12-13T08:34:28 PROBLEM(100) ZServer Computing default hostname
--
2000-12-13T08:34:31 INFO(0) ZServer Medusa (V1.16.4.2) started at Wed Dec 13
16:
34:31 2000
Hostname: ANGIE
Port:8080

--
2000-12-13T08:34:31 INFO(0) ZServer FTP server started at Wed Dec 13
16:34:31 20
00
Authorizer:None
Hostname: angie
Port: 8021
--
2000-12-13T08:34:31 INFO(0) ZServer PCGI Server started at Wed Dec 13
16:34:31 2
000
Inet socket port: 8090
--
2000-12-13T08:34:31 INFO(0) ZServer Monitor Server (V1.8) started on port
8099

C:\Program Files\WebSite>

P/s let me know me that whether this is regard to my MySQL or ZOPE or
Python, but i have tried to reinstall all of them, and the situation is
still remain the same. Thanks for your concern.


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




Re: [Zope] turning off inheritance

2000-12-13 Thread Oleg Broytmann

On Wed, 13 Dec 2000, Kyler B. Laird wrote:
> >
> >   (untested, but I use this in External Methods)
>
> Consider it tested.  It works great from DTML.
>
> Now that I know what to seek, I found a couple of
> old messages that reference this.  I'm still
> honing my ability to get Zope clues.

   I got it form exactly this mailing list. I just monitor the list form
the very beginning, I forward many important message to Russian Zope list,
discuss this information, etc. Nothing special. Often I ask questions here.
   Of course I do digging Zope sources from time to time :)

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




Re: [Zope] turning off inheritance

2000-12-13 Thread Rik Hoekstra



"Kyler B. Laird" wrote:
> 
> I am working on generating a directory from Zope
> objects.  There is a folder full of units (other
> folders).  These units contain people (more
> folders).
> 
> Units and people both have contact information
> stored in their properties.  How do I detect if a
> person has, for example, 'contact_email' set?
> 
> I've tried
> 
> It succeeds if the person doesn't have
> contact_email set but its unit does.  I've also
> tried variations of , with no
> success.
> 
> Any pointers?  Where could I have found the
> answer to this on my own?
> 

I don't claim to know the complete answer, but one approach could be to
do a comparison something like:

(warning code untested):

 

another approach is to set contact_email by default and test for
emptiness 







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 )




[Zope] Response.redirect problem **sometimes** on netscape

2000-12-13 Thread Didier Georgieff

Hello,

I'm doing a form for deleting objects within our site design (no manage 
interface).

All goes well, with a FORM

. [ we create the ids:list here]
  

myDelete method does also the redirect on the calling page.


  



In IE5 works fine, but NO REDIRECT on Netscape 4.51 (blank page and 
the post data still there), while the RESPONSE.redirect **works** on other 
occasions with N4.51.

Is it a known problem, or a problem calling manage_delObjects bfore 
redirection ?
If not, seems like a bug somewhere in the headers ?

Thanks in advance.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

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




Re: [Zope] default values in forms

2000-12-13 Thread Stefan H. Holek

On Wed, 13 Dec 2000, Olaf Zanger wrote:

> i found out that spaces may be replaced by "+" in the link, 
> but how do i get the "+" into the  statement?

what you want is 

see the DTML guide:
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.5.html

HTH
Stefan


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




[Zope] Strange Win2000 Service behaviour

2000-12-13 Thread peter bengtson

I restarted the Zope server from the Control Panel inside Zope and it took a
long time untill it was back up again. About 20 seconds.
During these 20 seconds, I started to suspect that the service wasn't
working, so I manually pressed the "Start" on the Zope Server inside the
Control panel in windows. I couldn't. Below is the traceback I got.
I suspect that it means that the Zope server is already running and that I
can't start it again (see error and Fs.lock stuff).

It turned out that the server was actually running since people on the
intranet was using it at the same time as I was struggling with getting the
service running.
Now the server is running fine, but if I go into the Services in
Administrative Tools of the Control Panel, the service ZopeSite is "turned
off".
So from a quick look on the Win2000 server you can't tell whether the Zope
Server actually is running, unless you open a web browser.

Strange. It's not a production server and I guess the w2k needs a robust
restart with a little kick in the machines direction.

Here's the Traceback I got when I tried to start it because I thought it was
started:

C:\Program Files\Zopesite>start.bat

C:\Program Files\Zopesite>"C:\Program Files\Zopesite\bin\python.exe"
"C:\Program
 Files\Zopesite\z2.py" -D
Traceback (innermost last):
  File "C:\Program Files\Zopesite\z2.py", line 554, in ?
exec "import "+MODULE in {}
  File "", line 1, in ?
  File "C:\PROGRA~1\Zopesite\lib\python\Zope\__init__.py", line 110, in ?
DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName)
  File "C:\PROGRA~1\Zopesite\lib\python\ZODB\FileStorage.py", line 262, in
__ini
t__
lock_file(f)
  File "C:\PROGRA~1\Zopesite\lib\python\ZODB\lock_file.py", line 115, in
lock_fi
le
raise error, (
ZODB.POSException.StorageSystemError: Could not lock the database file.
There m
ust be
another process that has opened the file.


C:\Program Files\Zopesite>


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




Re: [Zope] default values in forms

2000-12-13 Thread Andy McKay

Oops forgot about that. Yep use that. That's it I'll stop answering
questions until at least 3 cups of tea in the morning.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Stefan H. Holek" <[EMAIL PROTECTED]>
To: "Olaf Zanger" <[EMAIL PROTECTED]>
Cc: "Zope Mailinglist" <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 9:04 AM
Subject: Re: [Zope] default values in forms


> On Wed, 13 Dec 2000, Olaf Zanger wrote:
>
> > i found out that spaces may be replaced by "+" in the link,
> > but how do i get the "+" into the  statement?
>
> what you want is 
>
> see the DTML guide:
> http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.5.html
>
> HTH
> Stefan
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


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

2000-12-13 Thread Ragnar Beer

Howdy Zopistas!

Has anyone installed a Squishdot site with access restrictions? I've 
got the problem that as soon as I take away the "view" and "access 
contents information" permission from the anonymous user in my 
Squishdot site I cannot use the search interface anymore but only get 
KeyErrors (icon or thread_path depending on which permission I take 
away). I'm using Squishdot 0.7.2 and Zope 2.2.2.

Any help appreciated!

Ragnar

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




Re: [Zope] Lost with navigation using objectValues

2000-12-13 Thread Tim Cook

Stephane Bortzmeyer wrote:


> my code, in a DTML method in the root folder:

Are you sure you put it in a DTML Method and not a DTML Document?
The code looks fine. 

 
> If I call it from /index_html, it works fine. If I call it from any
> other document anywhere, I just get  (so I'm sure the method
> has been called) but nothing else as if objectValues sent nothing (no
> need to say that I *have* subfolders an I also tried without the
> 'Folder' restriction, with the same result).

This leads me to believe that it's in a DTML Document. It is
looking in the current documents namespace and not in the root
folder namespace.

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 )




[Zope] XEmacs DTML Mode

2000-12-13 Thread Alastair Burt

I have made many changes to my DTML Mode Howto and the associated files,
which can be found here:

  http://www.zope.org/Members/alburt/dtml_mode.html

The Howto explains how to get the benefits of Lennart Staflin's PSGML mode
when editing DTML code.  PSGML is a wonderful package for structure-based
editing of SGML and XML code.  There are menus and commands for inserting
only contextually valid tags, it will identify structural errors and help
indent the code appropriately, and attribute values can be edited via popup
menus or in a separate window.  The Howto explains how to get all of this
for editing DTML.  The technique is based on using a DTD for HTML with DTML
tags added and with some Elisp code that extends the basic SGML/HTML mode.

Since I first put this on zope.org, I have made the following changes:

* Changed the DTDs so that they are now more consistent.

* Changed the Elisp code to allow you to specify the enclosing element
  for a chunk of DTML+HTML code, so that the editor always knows what
  the valid tags are.

* Added code to automatically add "-*-" mode declarations at the top of
  the file, so that on subsequent visits the file is always edited in
  dtml-mode. 

* Added commands to swap between HTTP and FTP access of the same
  objects.  In particular, when you are editing a DTML file via FTP
  with three keystrokes you can pop to the management screen for the
  object in Emacs' W3 web browser.

This functionality comes on top of the transparent FTP access explained in
another Howto by Zope member nemeth:

   http://www.zope.org/Members/nemeth/usingEmacsWithZope

--- Alastair


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




[Zope] feedback on ZCatalog section of Zope Book

2000-12-13 Thread Josh Zeidner

I tried out the example in the Zope book and found that the ZCatalog aware
example only works if you create the "default" catalog as explained
elsewhere( must be named "Catalog" ).  Am I doing something wrong or is this
an error in the book?

 -keep up the good work!

  Josh Zeidner


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




Re: [Zope] Important Fix for Zope 2.2.x

2000-12-13 Thread The Doctor What

* Evan Simpson ([EMAIL PROTECTED]) [001210 10:27]:
> Thanks to Jeff Ragsdale, we've finally been able to kill a
> longstanding bug that allows POST requests to interfere with
> each other.  Symptoms include corrupted or aborted File and
> Image uploads, and stupid-log messages about
> "AttributeError: data" killing threads.
> 
> The attached HTTPServer.py is valid for all Zope 2.2.x
> versions.  I am posting the patched file for earlier Zope
> versions separately.

Will these be released as Hotfixes?  Or just new versions? Or is
this it?

Ciao!

-- 
Little children, keep yourselves from idols
-- St John, Ist century

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

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




[Zope] SiteAccess and Roles

2000-12-13 Thread The Doctor What

I have site access running, but I apparently don't fully grok roles.

I have a directory layout like so:

/ZopeRoot
  /site1
  /site2
  /site3
 /user_acl(2)
  /user_acl(1)

My site access rule is at:
http://linuxasm.gerf.org:9673/siteid/view_source
All the site[123] directories are SiteRooted and work fine.

If I add user as manager to user_acl(1) they have essentially 'root'
access.  They can do everything.

What do I have to do to give site3 to a specific user without giving
them access to everyone else?

I tried both Owner and Manager roles in user_acl(2) but it doesn't
work!

What am I doing wrong?

Ciao!

-- 
"If only you'd listened to me, I could have saved you from all that yukkiness."
--Kryten (Red Dwarf)

The Doctor What: "What, Doctor What" http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

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




[Zope] Can't RENAME using ftp (was Re: [Zope] Dreamweaver and WebDav)

2000-12-13 Thread Paul Browning


On Wed, 13 Dec 2000 12:38:36 MET Hans de Wit <[EMAIL PROTECTED]> wrote:

> Is anybody using the combination Dreamweaver 4 WebDAV Zope already?

I'm waiting for the evaluation version to become available .

> A connection was easy to make. At the moment i want to put or get something 
> "access to the desired resource is denied by the server". I checked my 
> password, i have the correct rights, 

H. I've had mixed success with a range of WebDAV clients on a range
of operating systems - not all seem to handle renaming files/folders.

> and it is working more or less fine on 
> ftp. (i can not change a file name on the host: an ftp error occured, cannot 
> rename hihi.htm to haha.htm. 500 RNFR command not understood)

I've been meaning to ask the list about this for some time. This
is a real PITA. I infer it to be a ZServer issue (no ftp client
I've tried supports renaming).

With marvellous tools like HMTL-Kit, Homesite (Dreamweaver when
I get my hands on it), etc it really is a bit of a let down when
a well-integrated ftp tool is hobbled by the lack of ZServer
support for rename.

Is this something that is easy to fix? It would be a major
Quick Win in my book.

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 )




[Zope] SOAP support in Zope?

2000-12-13 Thread Brad Clements

I'm thinking of using the MS WebServices IE behaviour with Zope. But 
when searching the zope site for info on soap, I find only a news 
announcement saying it will be supported in 2000.

I've grepped the source, can't find a mention of soap.

I thought someone had posted a patch to enable soap in Zope some 
time ago, but search doesn't bring it up.

Can anyone tell me the status of Soap in Zope?



Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

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




Re: [Zope] Lost with navigation using objectValues

2000-12-13 Thread Stephane Bortzmeyer

On Wed, Dec 13, 2000 at 11:31:34AM -0600, Tim Cook wrote:

> Are you sure you put it in a DTML Method and not a DTML Document?

Well, viewing the object through the management interface says so. To
be sure, I created a new object from scratch and changed the
standard_html_header to use it. Same problem.

Could it be an error in the calling code? I just say:



[That's a problem I often have with Zope. Things which seems very
basic suddenly become blocking problems.]



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




Re: [Zope] default values in forms

2000-12-13 Thread Ivan Cornell

Olaf Zanger wrote:

> hi there,
>
> i'd like to send default values for an data update with the link to the
> form
>
> like
> c
>
> unfortunately name may contain spaces.
>
> i found out that spaces may be replaced by "+" in the link,
> but how do i get the "+" into the  statement?
>

Try
c

Ivan


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




Re: [Zope] feedback on ZCatalog section of Zope Book

2000-12-13 Thread Andy McKay

That is true of CatalogAware objects, there must be a catalog called
"Catalog"... the book is right.
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Josh Zeidner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 9:36 AM
Subject: [Zope] feedback on ZCatalog section of Zope Book


> I tried out the example in the Zope book and found that the ZCatalog aware
> example only works if you create the "default" catalog as explained
> elsewhere( must be named "Catalog" ).  Am I doing something wrong or is
this
> an error in the book?
>
>  -keep up the good work!
>
>   Josh Zeidner
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] What version of Python Methods - no - Scripts for 2.2.4?

2000-12-13 Thread Ronald L. Roeber

Quesrion(s):

Is the recommended install of Python Scripts for Zope 2.24 this?

http://www.zope.org/Members/4am/PythonMethod

even though it appears to be exactly one year old today (13-Dec)?

This is also the date in the CHANGES.txt file in 2.3_a1 PythonScripts
directory.

Can I just copy the PythonScripts  product from my 2.3_a1 Products
directory to the appropriate location on a 2.24 server or should I use
the PythonMethod from above? Are there implications for upgrades from
Methods to Scripts? Am I missing something(s)? (probably) Please advise.
Sorry to be so confused.

Thank you.

ron...


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




Re: [Zope] Strange Win2000 Service behaviour

2000-12-13 Thread Andy McKay

Have you tried refreshing the Control Panel? If not just kick it (restart)
from the Control Panel. I have found that the Control Panel is normally in
sync with the service. Actually I got a little more nasty and wrote some
Perl scripts to restart/reboot Zope servers/machines...
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "peter bengtson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 9:23 AM
Subject: [Zope] Strange Win2000 Service behaviour


> I restarted the Zope server from the Control Panel inside Zope and it took
a
> long time untill it was back up again. About 20 seconds.
> During these 20 seconds, I started to suspect that the service wasn't
> working, so I manually pressed the "Start" on the Zope Server inside the
> Control panel in windows. I couldn't. Below is the traceback I got.
> I suspect that it means that the Zope server is already running and that I
> can't start it again (see error and Fs.lock stuff).
>
> It turned out that the server was actually running since people on the
> intranet was using it at the same time as I was struggling with getting
the
> service running.
> Now the server is running fine, but if I go into the Services in
> Administrative Tools of the Control Panel, the service ZopeSite is "turned
> off".
> So from a quick look on the Win2000 server you can't tell whether the Zope
> Server actually is running, unless you open a web browser.
>
> Strange. It's not a production server and I guess the w2k needs a robust
> restart with a little kick in the machines direction.
>
> Here's the Traceback I got when I tried to start it because I thought it
was
> started:
>
> C:\Program Files\Zopesite>start.bat
>
> C:\Program Files\Zopesite>"C:\Program Files\Zopesite\bin\python.exe"
> "C:\Program
>  Files\Zopesite\z2.py" -D
> Traceback (innermost last):
>   File "C:\Program Files\Zopesite\z2.py", line 554, in ?
> exec "import "+MODULE in {}
>   File "", line 1, in ?
>   File "C:\PROGRA~1\Zopesite\lib\python\Zope\__init__.py", line 110, in ?
> DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName)
>   File "C:\PROGRA~1\Zopesite\lib\python\ZODB\FileStorage.py", line 262, in
> __ini
> t__
> lock_file(f)
>   File "C:\PROGRA~1\Zopesite\lib\python\ZODB\lock_file.py", line 115, in
> lock_fi
> le
> raise error, (
> ZODB.POSException.StorageSystemError: Could not lock the database file.
> There m
> ust be
> another process that has opened the file.
> 
>
> C:\Program Files\Zopesite>
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] dtml decimals

2000-12-13 Thread Andy McKay

 instead of getting 1.50 as I was expecting I get
1.00, I never seem to be getting decimals. Whats the obivous thing Im
missing here?

Cheers.

--
  Andy McKay, Developer.
  ActiveState.


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




Re: [Zope] default values in forms

2000-12-13 Thread peter bengtson



> i found out that spaces may be replaced by "+" in the link,
> but how do i get the "+" into the  statement?
>


Can't honestly remember where the word "plus" is supposed to be, but search
the DTML Reference documentation.

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


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




[Zope] DA Adapter for transactional DB

2000-12-13 Thread Paolo Quaglia



What is the most 
reliable DA Adapter for the supported transactional DB:
I mean for Postgres, 
MS SQL Server, for Interbase etc ...
 
Are there some DA 
that work in multithreaded manner under WinNT?
Thanks a 
lot
Paolo QuagliaInformation Technology 
CoordinatorSitek S.p.A.[EMAIL PROTECTED] 
 


RE: [Zope] HTML formatting from a text field

2000-12-13 Thread sean . upton

I remember reading somewhere about messaging between Java applets and
JavaScript code in the browser, allowing JavaScript code from a web form to
manipulate the applet output; the example was typing something into a text
box, clicking a button in a form, and having that rendered in some obscure
font inside the applet.  Where I read this escapes me, and I've never tried
this, but I wonder if such a trick works conversely.  In other words, what
if the applet can pass values to a JavaScript variable associated with the
value of a form input element in the browser's HTML DOM?

I could imagine that something like this could be very effective for certain
situations where people want better through-the-web editing of code (imagine
if you could edit dtml in a web form color coding syntax with a feature to
collapse blocks of code, similar to Homesite 4.5, or editing python scripts
-- what were python methods -- with an outline-based editor that created
automatic indentation).

Or, better yet, imagine running JPython within the applet (I don't know
whether this is possible) to do all this.  

Anyway, I wonder if this type of thing could be an alternative to either
ActiveX components or a XUL/XPCOM based-interface.

Sean

-Original Message-
From: Rik Hoekstra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 8:17 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] HTML formatting from a text field




Lee Hunter wrote:
> 
> Hi Ausum,
> 
> Do you mean a text field that shows a row of formatting buttons at the top
> for 'bold', 'italic' 'add link' etc.
> 
> There is an ActiveX control that is built in to IE Explorer 5.x - you just
> have to call it from your page.
> 
> Here's the information from Microsoft:
> 
> http://msdn.microsoft.com/workshop/author/dhtml/edit/ref/cncpt.asp
> 
> If you get it working with Zope (which shouldn't be a problem) let us
know.
> 


There was a start at a product doing this (called ZIE) by Johan Carlsson
, but it looks like it was aborted quite some time ago. Dont know about
its status. You could try how far it would get you, tho
see:
http://www.zope.org/Members/johanc/ZIE

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 )

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




Re: [Zope] dtml decimals

2000-12-13 Thread Andy McKay

Well for one thing that example should be 
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: "zope-misc" <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 10:03 AM
Subject: [Zope] dtml decimals


>  instead of getting 1.50 as I was expecting I
get
> 1.00, I never seem to be getting decimals. Whats the obivous thing Im
> missing here?
>
> Cheers.
>
> --
>   Andy McKay, Developer.
>   ActiveState.
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


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




Re: [Zope] Lost with navigation using objectValues

2000-12-13 Thread Tim Cook

Stephane Bortzmeyer wrote:

> Could it be an error in the calling code? I just say:
> 
> 
>

If the calling code is within a DTML Document, then yes. The DTML
Method is within the calling namespace. 
You would need to set up the correct namespace first using
dtml-with or PARENTS[x] where x is the proper namespace level of
the aquisition tree (Jim Fulton is probably either laughing or
choking at my description but it works for those of us still
struggling ).

> [That's a problem I often have with Zope. Things which seems very
> basic suddenly become blocking problems.]

It's just that aq_ thing. :-)

-- 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] What version of Python Methods - no - Scripts for 2.2.4?

2000-12-13 Thread Evan Simpson

From: Ronald L. Roeber <[EMAIL PROTECTED]>
> Is the recommended install of Python Scripts for Zope 2.24 this?
>
> http://www.zope.org/Members/4am/PythonMethod
>
> even though it appears to be exactly one year old today (13-Dec)?

Wow, I didn't realize today was its anniversary :-)  No, this isn't the
recommended install of Python Scripts, but it is the closest thing currently
released.

> Can I just copy the PythonScripts  product from my 2.3_a1 Products
> directory to the appropriate location on a 2.24 server or should I use
> the PythonMethod from above? Are there implications for upgrades from
> Methods to Scripts? Am I missing something(s)? (probably) Please advise.

PythonMethod and PythonScripts are independent Products, providing objects
with different meta-types.  They can be installed side-by-side perfectly
safely, and both Python Methods and Python Scripts can be used at the same
time, and even together.

I haven't tried installing PythonScripts in a pre-2.3 Zope, but I have no
reason to expect that it would fail, except in one feature:  Since pre-2.3
Zopes don't support the __render_with_namespace__ protocol, you would always
have to pass parameters explicitly when calling from DTML, and wouldn't be
able to bind the caller's namespace.

If you want to give it a shot, the worst thing that I would expect it to do
is fail and produce error messages when you try to create or use Python
Scripts.  Want to write a Howto? ;-)

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] DA Adapter for transactional DB

2000-12-13 Thread Andy McKay

ZODBC: http://www.zope.org/SiteIndex/search?text_content=ZODBC

--
  Andy McKay, Developer.
  ActiveState.

- Original Message - 
From: "Paolo Quaglia" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 10:08 AM
Subject: [Zope] DA Adapter for transactional DB


> What is the most reliable DA Adapter for the supported transactional DB:
> I mean for Postgres, MS SQL Server, for Interbase etc ...
> 
> Are there some DA that work in multithreaded manner under WinNT?
> Thanks a lot
> Paolo Quaglia
> Information Technology Coordinator
> Sitek S.p.A.
> [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] Important Fix for Zope 2.2.x

2000-12-13 Thread Evan Simpson

From: The Doctor What <[EMAIL PROTECTED]>
> Will these be released as Hotfixes?  Or just new versions? Or is
> this it?

Hotfixes are pretty much reserved for critical security holes.  Zope 2.3
(and possibly an interim 2.2.5 release) and above will have the fix.
Fortunately, HTTPServer has had *very* few changes that would render newer
versions incompatible with older Zopes, so I didn't have to go with a
Windows-unfriendly patch file, and only needed two replacement files.

So, yes, this is it.

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] SiteAccess and Roles

2000-12-13 Thread Evan Simpson

From: The Doctor What <[EMAIL PROTECTED]>
> I tried both Owner and Manager roles in user_acl(2) but it doesn't
> work!

Didn't work in what sense?  They couldn't log in, or didn't get the access
you expected?  More access or less, or just weird?

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] Dreamweaver and WebDav

2000-12-13 Thread Todd Coram

> Is anybody using the combination Dreamweaver 4 WebDAV Zope already?
> A connection was easy to make. At the moment i want to put or get
> something "access to
> the desired resource is denied by the server". I checked my
> password, i have the correct
> rights, and it is working more or less fine on ftp.

There seems to be Dreamweaver 4 WebDAV issues in general (a quick look at
news:macromedia.dreamweaver suggests that).

I have not been able to get Dreamweaver 4 to PUT data into Zope via WebDAV.
GoLive works fine. Cadaver works fine, etc. I looked at the HTTP header (for
PUT) that Dreamweaver sends and it seems to lack a HTTP_AUTHORIZATION entry.
My username and password was entered in Dreamweaver's "Define site"/"Remote
info"/access:WebDAV" panel. But, Dreamweaver doesn't seem to want to send
it...

---
"Sardonic Slaughterer of Sacred Cows"
Todd Coram - mailto:[EMAIL PROTECTED]
Digital Creations, Inc - http://www.digicool.com
Publishers of Zope - http://www.zope.org

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hans
> de Wit
> Sent: Wednesday, December 13, 2000 7:39 AM
> To: [EMAIL PROTECTED]
> Subject: [Zope] Dreamweaver and WebDav
>
>
> Is anybody using the combination Dreamweaver 4 WebDAV Zope already?
> A connection was easy to make. At the moment i want to put or get
> something "access to
> the desired resource is denied by the server". I checked my
> password, i have the correct
> rights, and it is working more or less fine on ftp. (i can not
> change a file name on
> the host: an ftp error occured, cannot rename hihi.htm to
> haha.htm. 500 RNFR command not
> understood)
>
>
> Met vriendelijke groeten,
>
> Hans de Wit
>
> [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] SiteAccess and Roles

2000-12-13 Thread Evan Simpson

From: The Doctor What <[EMAIL PROTECTED]>
> I tried both Owner and Manager roles in user_acl(2) but it doesn't
> work!

Didn't work in what sense?  They couldn't log in, or didn't get the access
you expected?  More access or less, or just weird?

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] apache/mod_rewrite and user-logging (semi-OT)

2000-12-13 Thread Oliver Bleutgen

This is not directly a zope-question,
but maybe someone has figured out how to solve
this.

I'm using apache with mod_rewrite to redirect
requests for a certain directory from apache to zope 
(with option [p]).

Now for the first time I can't get apache to do want
I want it to, that is logging the usernames into
apaches logfile.

Apache does this only when enabling apache's mod_auth
via 


AuthType Basic
AuthName "Ihr Login..."
AuthUserFile "/httproot/web/bogus_userfile.txt"
require valid-user


or similar, but the silly thing then also wants his own 
authentication.
I am not able to get it to extract the username without
really requiring apache authentication.

Does anybody know how I could accomplish that?
Any dirty tricks to get apache to *think* it authentifies,
but letting through every username/password combination,
so that zope can do it's job?
And no, putting any of this combinations in bogus_userfile.txt
is not an option ;->.

Another possibility (which gets me more on-topic) is to
do that in medusas http_server (which logs a '-' hardcoded),
but the only way I could imagine (and code myself) would 
be to do the base64-decoding there and that seems not quite
elegant, even more because apache's log-files hold the
client-ip in this situation and therefore are more 
informative anyway.


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] Lost with navigation using objectValues

2000-12-13 Thread Stephane Bortzmeyer

On Wed, Dec 13, 2000 at 11:31:34AM -0600, Tim Cook wrote:

> Are you sure you put it in a DTML Method and not a DTML Document?

OK, I get you: my code is in a DTML method but it was ultimately
called by DTML documents, which produced the wrong result. If I create
a DTML method, it works. After reading the excellent "DTML documents
vs DTML methods" HOWTO, it makes sense but it is quite surprising.

Does it mean I have to turn all my DTML documents into DTML methods if
I want them to call DTML methods, even if they are only content?


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




Re: [Zope] SOAP support in Zope?

2000-12-13 Thread Petru Paler

On Wed, Dec 13, 2000 at 12:43:33PM -0500, Brad Clements wrote:
> I'm thinking of using the MS WebServices IE behaviour with Zope. But 
> when searching the zope site for info on soap, I find only a news 
> announcement saying it will be supported in 2000.
> 
> I've grepped the source, can't find a mention of soap.
> 
> I thought someone had posted a patch to enable soap in Zope some 
> time ago, but search doesn't bring it up.
> 
> Can anyone tell me the status of Soap in Zope?

take a look at http://www.ppetru.net. When I wrote it, I was able
to call methods and get results back, but it was having trouble
with exceptions (what could you expect from an one-night hack :)

let me know if it still applies to the current Zope and if you need
any assistance with it...

--
Petru Paler, mailto:[EMAIL PROTECTED]
http://www.ppetru.net - ICQ: 41817235

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




RE: [Zope] Important Fix for Zope 2.2.x

2000-12-13 Thread Brian Lloyd

> > The attached HTTPServer.py is valid for all Zope 2.2.x
> > versions.  I am posting the patched file for earlier Zope
> > versions separately.
> 
> Will these be released as Hotfixes?  Or just new versions? Or is
> this it?

I'll be building a 2.2.5 (hopefully by the end of the week) 
that will have that fix, plus the fix for the recent 
security issue. It will also have a fix for a memory leak 
that affects column name aliasing in some SQLMethod results
(working that one now). 


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] Broken LoginManager - Can't get it to install

2000-12-13 Thread Mohan Baro

I can seem to figure out what wrong here.

I have ZPatterns installed already 0.4.3b2

This is the latest LoginManager 0.8.8b1

LoginManager Import Traceback
Traceback (innermost last):
  File "/usr/share/zope/lib/python/OFS/Application.py", line 397, in
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "/usr/share/zope/lib/python/Products/LoginManager/__init__.py", line
1, in ?
import LoginManager, LoginMethods, UserSources
  File "/usr/share/zope/lib/python/Products/LoginManager/LoginManager.py",
line 7, in ?
from Products.ZPatterns.PlugIns import PlugInGroup
  File "/usr/share/zope/lib/python/Products/ZPatterns/__init__.py", line 1,
in ?
import Rack, Specialists, Customizers, AttributeProviders,
SheetProviders
  File "/usr/share/zope/lib/python/Products/ZPatterns/Rack.py", line 9, in ?
from DataSkins import DataSkin
  File "/usr/share/zope/lib/python/Products/ZPatterns/DataSkins.py", line 1,
in ?
from DynPersist import DynPersist
ImportError: No module named DynPersist



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




Re: [Zope] What version of Python Methods - no - Scripts for 2.2.4?

2000-12-13 Thread Evan Simpson

From: Evan Simpson <[EMAIL PROTECTED]>
> I haven't tried installing PythonScripts in a pre-2.3 Zope, but I have no
> reason to expect that it would fail, except in one feature:  Since pre-2.3
> Zopes don't support the __render_with_namespace__ protocol, you would
always
> have to pass parameters explicitly when calling from DTML, and wouldn't be
> able to bind the caller's namespace.

After a little experimentation, I was able to get it to run with Zope 2.0.0.
It required small changes to __init__.py and Guarded.py, which are available
through cvs.zope.org.

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] Zope with BBedit: a successful experiment

2000-12-13 Thread Stephane Bortzmeyer

http://www.zope.org/Members/runyaga/ZopeFAQs/ZopeCompatibleTools says
that BBedit have not been tested as a DTML editor for Zope
 but it works fine and is a good solution for
MacOS users. A few tricks which may be included on www.zope.org if you
think so:

BBedit  has two
versions, a free (as in free beer) one and a commercial one. I tried
only the first, the second seems to have many useful things for Zope. 

The official list of plugins at BBedit official site is far from
complete (because they allow the free version to be less antiquated by
the commercial one?). Most of the plugins are in
info-mac/_Text_Processing/_BBEdit. I suggest the HTML plugin (to have
some useful HTML menus), the Midex plugin (to translate composed
characters since MacOS is not Latin-1) and the FTP plugin (to exchange
with Zope).

If you transfer with Fetch, for reasons I don't know, the Zserver does
strange things in text mode. You have to transfer in binary (which
makes you lose the charset translation) and then to import with "LF
translation" in BBedit. 

I prefer to transfer with the FTP plugin (but you still have to
convert the composed characters with Midex, which is
painful). Unfortunately, it seems no longer maintained.

For both FTP clients, don't forget to add the FTP port number
(typically 8021) after the host name (separated with a space).

I did not test the Interarchy FTP client, which some people recommend.

http://www.anybrowser.org/bbedit/ is a good list of tricks for BBedit.






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




Re: [Zope] Lost with navigation using objectValues

2000-12-13 Thread Stephane Bortzmeyer

On Wed, Dec 13, 2000 at 12:20:34PM -0600, Tim Cook wrote:

> If the calling code is within a DTML Document, then yes. The DTML
> Method is within the calling namespace. 

OK, I understand, now, the ZopeBook was far from clear on this
example.

> You would need to set up the correct namespace first using
> dtml-with or PARENTS[x] where x is the proper namespace level of
> the aquisition tree (Jim Fulton is probably either laughing or

Peter Bengston sent me the proper syntax:

  

and it works (with DTML documents, of course). Many thanks to all,
this is user support.



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




Re: [Zope] Lost with navigation using objectValues

2000-12-13 Thread Tim Cook

Stephane Bortzmeyer wrote:

> Does it mean I have to turn all my DTML documents into DTML methods if
> I want them to call DTML methods, even if they are only content?
> 

DTML Rule of Thumb (according to Tim):
"Only use DTML Documents when you want an object to have
persistent properties. All DTML Code goes into DTML Methods."

-- 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] HTML formatting from a text field

2000-12-13 Thread Stephane Bortzmeyer

On Tue, Dec 12, 2000 at 04:47:13AM -0500, Ausum wrote:
> I'm needing a tool that could let a normal user to update a web page,
> HTML-formatted from a text field within a Zope's form, just like the
> Compose page at Hotmail, when selecting "Rich Text Format".

As far as free software is concerned, I'm very happy with txt2html,
which you may use a foundation. Rewrite it as a Python script :-)

It was at  which apparently
disappeared but it is integrated in WML
 so you can extract it from WML
sources.


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

2000-12-13 Thread Steve Drees

I can't seem to find worldpilot on zope.org anymore. 
Has it been killed?

--
Steve Drees 
SysAdmin/Software Developer/Web Geek/Chief Bottle Washer
"A problem well-stated is a problem half-solved."
http://www.christianmp3zone.com/savanna


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




Re: [Zope] What version of Python Methods - no - Scripts for 2.2.4?

2000-12-13 Thread Evan Simpson

From: Evan Simpson <[EMAIL PROTECTED]>
> After a little experimentation, I was able to get it to run with Zope
2.0.0.
> It required small changes to __init__.py and Guarded.py, which are
available
> through cvs.zope.org.

P.P.S.

That's "2.2.0", not "2.0.0", and as of three hours ago you would also need
to backport (or stub out) OFS.Cache :-(

Sorry,

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] dtml decimals

2000-12-13 Thread Andy McKay

Well there you go:



Its a python thing, it sees 3 and casts it as an int, same with 2 and
dividing ints results in an int. You learn something new every day.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: "zope-misc" <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 10:11 AM
Subject: Re: [Zope] dtml decimals


> Well for one thing that example should be 
> --
>   Andy McKay, Developer.
>   ActiveState.
>
> - Original Message -
> From: "Andy McKay" <[EMAIL PROTECTED]>
> To: "zope-misc" <[EMAIL PROTECTED]>
> Sent: Wednesday, December 13, 2000 10:03 AM
> Subject: [Zope] dtml decimals
>
>
> >  instead of getting 1.50 as I was expecting I
> get
> > 1.00, I never seem to be getting decimals. Whats the obivous thing Im
> > missing here?
> >
> > Cheers.
> >
> > --
> >   Andy McKay, Developer.
> >   ActiveState.
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] What happened to worldpilot

2000-12-13 Thread Aleksander Salwa

On Wed, 13 Dec 2000, Steve Drees wrote:

> I can't seem to find worldpilot on zope.org anymore. 
> Has it been killed?

www.worldpilot.com or something...

[EMAIL PROTECTED]

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



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




Re: [Zope] dtml decimals

2000-12-13 Thread Aleksander Salwa

On Wed, 13 Dec 2000, Andy McKay wrote:

>  instead of getting 1.50 as I was expecting I get
> 1.00, I never seem to be getting decimals. Whats the obivous thing Im
> missing here?

Python Reference Manual, chapter 5.6:

The / (division) operator yields the quotient of its arguments. The
numeric arguments are first converted to a common type. Plain or long
integer division yields an integer of the same type; the result is that of
mathematical division with the `floor' function applied to the result.

Try:
3.0/2

[EMAIL PROTECTED]

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



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




Re: [Zope] dtml decimals

2000-12-13 Thread Dyon Balding

or even simpler:



the decimal point implies a floating point rather than an int.

-d

On Wed, Dec 13, 2000 at 12:23:19PM -0800, Andy McKay wrote:
> Well there you go:
> 
> 
> 
> Its a python thing, it sees 3 and casts it as an int, same with 2 and
> dividing ints results in an int. You learn something new every day.
> 
> --
>   Andy McKay, Developer.
>   ActiveState.
> 
> - Original Message -
> From: "Andy McKay" <[EMAIL PROTECTED]>
> To: "zope-misc" <[EMAIL PROTECTED]>
> Sent: Wednesday, December 13, 2000 10:11 AM
> Subject: Re: [Zope] dtml decimals
> 
> 
> > Well for one thing that example should be 
> > --
> >   Andy McKay, Developer.
> >   ActiveState.
> >
> > - Original Message -
> > From: "Andy McKay" <[EMAIL PROTECTED]>
> > To: "zope-misc" <[EMAIL PROTECTED]>
> > Sent: Wednesday, December 13, 2000 10:03 AM
> > Subject: [Zope] dtml decimals
> >
> >
> > >  instead of getting 1.50 as I was expecting I
> > get
> > > 1.00, I never seem to be getting decimals. Whats the obivous thing Im
> > > missing here?
> > >
> > > Cheers.
> > >
> > > --
> > >   Andy McKay, Developer.
> > >   ActiveState.
> > >
> > >
> > > ___
> > > Zope maillist  -  [EMAIL PROTECTED]
> > > http://lists.zope.org/mailman/listinfo/zope
> > > **   No cross posts or HTML encoding!  **
> > > (Related lists -
> > >  http://lists.zope.org/mailman/listinfo/zope-announce
> > >  http://lists.zope.org/mailman/listinfo/zope-dev )
> > >
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   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 )

-- 
Dyon Balding <[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] charset from forms input

2000-12-13 Thread Matt

Hi, I seem to have come across the depressing fact that most browsers
will not return a charset parameter in the http header when a form is
submitted.  For example, the following from Netscape ... (it happens
with both IE and Netscape on many platforms I have tried ... Mac, all
Windows, and Linux).

POST /hi HTTP/1.0
Referer: http://localhost:8080/temp/test_form
Connection: Keep-Alive
User-Agent: Mozilla/4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
Host: 172.16.21.165:50009
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png,
*/*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8

Content-type: multipart/form-data;
boundary=---17670043309955870831526446972
Content-Length: 180


So much for a useful Content-type.I know this is NOT a zope issue,
but I was hoping someone had an easy answer.  There is such a myriad of
character encodings out there that is makes it quite difficult to
handle.  The example that most frustrates us are the two byte encodings
vs the one.  I.e. : two common defaults people set their browsers on in
windows are either Western (ISO) or Western (Windows) ... the former
being a two byte encoding set and the latter being a one byte(presumably
ISO-8859-1 + the unhelpful use of the control set  0x85 - 0x95(hex)).
People often copy and paste from word into form text inputs, and as a
quick hack we made up a byte conversion table for the "Microsoft"
range.  So Western(Windows) works, but of course Western(ISO) does not.
How does one detect these?  and more the point, how does one test easily
for any of the other encoding standards?

Surely this has bugged a lot of people?

regards
Matt



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




Re: [Zope] dtml decimals

2000-12-13 Thread Andy McKay

Yup, the implication there is that I am doing a 3/2, im not, that was an
example. Im using variables and hence its easiest to cast one of them as a
float is easier than adding .0 on to the end...

Cheers.
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Dyon Balding" <[EMAIL PROTECTED]>
To: "Andy McKay" <[EMAIL PROTECTED]>
Cc: "zope-misc" <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 12:38 PM
Subject: Re: [Zope] dtml decimals


> or even simpler:
>
> 
>
> the decimal point implies a floating point rather than an int.
>
> -d
>
> On Wed, Dec 13, 2000 at 12:23:19PM -0800, Andy McKay wrote:
> > Well there you go:
> >
> > 
> >
> > Its a python thing, it sees 3 and casts it as an int, same with 2 and
> > dividing ints results in an int. You learn something new every day.
> >
> > --
> >   Andy McKay, Developer.
> >   ActiveState.
> >
> > - Original Message -
> > From: "Andy McKay" <[EMAIL PROTECTED]>
> > To: "zope-misc" <[EMAIL PROTECTED]>
> > Sent: Wednesday, December 13, 2000 10:11 AM
> > Subject: Re: [Zope] dtml decimals
> >
> >
> > > Well for one thing that example should be 
> > > --
> > >   Andy McKay, Developer.
> > >   ActiveState.
> > >
> > > - Original Message -
> > > From: "Andy McKay" <[EMAIL PROTECTED]>
> > > To: "zope-misc" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, December 13, 2000 10:03 AM
> > > Subject: [Zope] dtml decimals
> > >
> > >
> > > >  instead of getting 1.50 as I was
expecting I
> > > get
> > > > 1.00, I never seem to be getting decimals. Whats the obivous thing
Im
> > > > missing here?
> > > >
> > > > Cheers.
> > > >
> > > > --
> > > >   Andy McKay, Developer.
> > > >   ActiveState.
> > > >
> > > >
> > > > ___
> > > > Zope maillist  -  [EMAIL PROTECTED]
> > > > http://lists.zope.org/mailman/listinfo/zope
> > > > **   No cross posts or HTML encoding!  **
> > > > (Related lists -
> > > >  http://lists.zope.org/mailman/listinfo/zope-announce
> > > >  http://lists.zope.org/mailman/listinfo/zope-dev )
> > > >
> > >
> > >
> > > ___
> > > Zope maillist  -  [EMAIL PROTECTED]
> > > http://lists.zope.org/mailman/listinfo/zope
> > > **   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 )
>
> --
> Dyon Balding <[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] SiteAccess and Roles

2000-12-13 Thread The Doctor What

* Evan Simpson ([EMAIL PROTECTED]) [001213 12:28]:
> From: The Doctor What <[EMAIL PROTECTED]>
> > I tried both Owner and Manager roles in user_acl(2) but it doesn't
> > work!
> 
> Didn't work in what sense?  They couldn't log in, or didn't get the access
> you expected?  More access or less, or just weird?

You know, I should be smacked around for not saying *how* it didn't
work.

If I logged in as that new user, foo, at http://site3/manage
I would get the nav bar on the side, but I couldn't view anything in
the /site3 (my virtual root).

If I created a subfolder (ie /site3/test ) then I could do:
http://site3/test/manage

Does that help?

Ciao!

-- 
Nobody's gonna believe that computers are intelligent until they start coming in late 
and lying about it.

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] ZWiki hierarchy seems to be broken

2000-12-13 Thread Frank McGeough

I lose my hierarchy all the time as well. I haven't been able to figure out
a cause for it. Or figure out a way to debug it.
The "entire wiki contents" shows only Singletons.
The  in the
standard_wiki_header doesn't seem to do anything anymore.

- Original Message -
From: "Simon Michael" <[EMAIL PROTECTED]>
To: "Zope Folk" <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 11:20 AM
Subject: Re: [Zope] ZWiki hierarchy seems to be broken


> do you see more than one page name in your url path - eg
FrontPage/FrontPage ?
>
> are you acquiring a different standard_wiki_header from somewhere ?
>
> are you failing to acquire it ? (does page source include
> "" ?) are permissions ok ?



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




Re: [Zope] ZWiki hierarchy seems to be broken

2000-12-13 Thread Timothy Grant

On Wed, Dec 13, 2000 at 08:20:14AM -0800, Simon Michael wrote:
> do you see more than one page name in your url path - eg FrontPage/FrontPage ?

On the very first page, yes, as the folder and the WikiPage have the same
name. However, the header appears on this page.
 
> are you acquiring a different standard_wiki_header from somewhere ? 

Not that I know of. I only have one ZWiki object setup

> 
> are you failing to acquire it ? (does page source include 
> "" ?) are permissions ok ?

The page source includes this text:



Aha!

I just went digging through all the properties of the pages that didn't have
headers, and compared them to the properties for the pages that did, and I
noticed that they were all parented wrong! I didn't think to look there. I
had changed the name of the FrontPage to something else, which broke all the
parent links.

Thanks for your very kind assistance!

-- 
Stand Fast,
tjg.

Timothy Grant [EMAIL PROTECTED]
Red Hat Certified Engineerwww.exceptionalminds.com
Avalon Technology Group, Inc.   (503) 246-3630
>Linux, because rebooting is *NOT* normal<
This machine was last rebooted:  15 days 1 hours ago<<

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

2000-12-13 Thread Andy McKay

Ok, ive seen lots of products and ways of creating RSS files, but I havent
been able to spot one that reads other peoples (eg ZNN, Slashdot). Is there
such a product?
--
  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] dtml decimals

2000-12-13 Thread Dieter Maurer

Andy McKay writes:
 >  instead of getting 1.50 as I was expecting I get
 > 1.00, I never seem to be getting decimals. Whats the obivous thing Im
 > missing here?
This is a Python feature:

  If both arguments are integers, the division is performed
  as an integer division.

  Use "3.0/2" or "3/2.0" or "float(3)/2"  to get a floating point division.


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] Response.redirect problem **sometimes** on netscape

2000-12-13 Thread Dieter Maurer

Didier Georgieff writes:
 > 
 > 
 > 
 > In IE5 works fine, but NO REDIRECT on Netscape 4.51 (blank page and 
 > the post data still there), while the RESPONSE.redirect **works** on other 
 > occasions with N4.51.
I use Shane's "tcpwatch" (--> zope.org) to analyse such problems.



Dieter

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




[Zope] Re: PIL Problem

2000-12-13 Thread Max M

--- Luc Tonin <[EMAIL PROTECTED]> wrote:
> well
> i m still trying to insert some text in a gif image
> using PIL
> but what should i do??? using da PSDraw class??
> does anybody have an id ??
> thx by advance

Here is an example I got working under Windows.

PIL has very limited font/text support though.

I got this working pretty fast, as PIL is very well written, but I cannot
find a way to transfer my Windows truetype fonts to PIL's proprietary
format.

Bummer.

regard Max M

---

buttonList = {}
buttonList['02_home.gif']   = 'Ölwechselung'
buttonList['02_01_somewhere.gif']   = 'Klares Bekenntnis zur Umwelt'
buttonList['02_02_dude.gif']= 'Hey Dude'

import ImageDraw, ImageFont
import Image

# Set font
arial =
ImageFont.load('C:/root/pythonScripts/PILTest/phontz/Verdana_12_100.pil')

im = Image.open("C:/root/pythonScripts/PILTest/redButton.gif")

width, height = im.size
middle = width/2

for fileName, theText in buttonList.items():

aCopy = im.copy()

# render the text
draw = ImageDraw.Draw(aCopy)
draw.setfont(arial)
draw.setink(255)

textWidth, textHeight = draw.textsize(theText)
textMiddle = textWidth/2

fontPlacement = middle - textMiddle
print textWidth

draw.text((fontPlacement, -3), theText)
aCopy.save('C:/root/pythonScripts/PILTest/' + fileName)

---

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


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




Re: [Zope] Problems with adding tutorial

2000-12-13 Thread Bob Sidebotham

After much playing around I determined that the problem was Python 2.0.
I downgraded zope to 2.2.4 and still had the identical problem with
python 2.0. Then when I downgraded python to 1.5.2 the problem finally
went away.

Bob

--- Aleksander Salwa <[EMAIL PROTECTED]> wrote:

> Keep in mind that the latest STABLE version is Zope 2.2.4.
> Officially supported (by Zope) release of Python is still 1.5.2.


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

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




Re: [Zope] rss

2000-12-13 Thread J. Atwood

SiteSummary will actually grab headlines. Just not timed.

Cheers,
J

At 2:06 PM -0800 12/13/2000, Andy McKay wrote:
>Ok, ive seen lots of products and ways of creating RSS files, but I havent
>been able to spot one that reads other peoples (eg ZNN, Slashdot). Is there
>such a product?
>--
>   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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] rss

2000-12-13 Thread Kevin Teague

I'm setting up some rss feeds, and I've just used the Site Summary
product from here:
 
http://www.zope.org/Members/edmundd/SiteSummary

With Site Summary you can use the importRSS method to pull in a channel.
I use a modified version of this script running on a cron job to update
the rss channels:

http://www.zope.org/Members/phd/cron-zope/pack-db_fs

The script looks like this (it's still kind of hack-ish, but it works
:). My only problem now is to figure out how to have member preferences
handle a list of rss channels with the PTK.


#!/usr/bin/python

username="kteague"
password="**"
zope="http://www.evileggs.org/"

import sys, urllib, re

class NoGUIURLopener(urllib.FancyURLopener):
   def __init__(self, username, password, *args):
  apply(urllib.FancyURLopener.__init__, (self,) + args)

  self.username = username
  self.password = password
  self.asked = 0

   def prompt_user_passwd(self, host, realm):
  if self.asked:
 raise "Unauthorized"
  else:
 self.asked = 1
 return self.username, self.password


channel_id = ""
rss_url = ""

try:
f = open("channellist.txt")
except:
   print 'Could not open the channellist.txt file.'
lines = f.readlines()
f.close()

for line in lines:
if re.search('^\n$', line):
continue
m = re.search('(.*?)\s+(.*)', line)
try:
(channel_id, rss_url) = m.groups()
except:
print 'Can not properly parse line:\n%s' % (line)
continue
urllib._urlopener = NoGUIURLopener(username, password)
urllib.urlretrieve("%s/rss/%s/importRSS?url=%s" % (zope, channel_id,
rss_url))



==
And the 'channellist.txt' text file just has the Zope id's of the Site
Summary objects and the rss channel URLs, like so:


Advogato   http://www.advogato.com/rss/articles.xml
Linux.com   http://www.linux.com/mrn/front_page.rss


-- 
  Kevin Teague, Zopista
  http://www.stormix.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] rss

2000-12-13 Thread Andy McKay

So it does, thanks! I throught I read through Site Access and managed to
skip that. Yep a simple cron job and it will be updating nightly.

Cheers.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Kevin Teague" <[EMAIL PROTECTED]>
To: "Andy McKay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 3:20 PM
Subject: Re: [Zope] rss


> I'm setting up some rss feeds, and I've just used the Site Summary
> product from here:
>
> http://www.zope.org/Members/edmundd/SiteSummary
>
> With Site Summary you can use the importRSS method to pull in a channel.
> I use a modified version of this script running on a cron job to update
> the rss channels:
>
> http://www.zope.org/Members/phd/cron-zope/pack-db_fs
>
> The script looks like this (it's still kind of hack-ish, but it works
> :). My only problem now is to figure out how to have member preferences
> handle a list of rss channels with the PTK.
>
>
> #!/usr/bin/python
>
> username="kteague"
> password="**"
> zope="http://www.evileggs.org/"
>
> import sys, urllib, re
>
> class NoGUIURLopener(urllib.FancyURLopener):
>def __init__(self, username, password, *args):
>   apply(urllib.FancyURLopener.__init__, (self,) + args)
>
>   self.username = username
>   self.password = password
>   self.asked = 0
>
>def prompt_user_passwd(self, host, realm):
>   if self.asked:
>  raise "Unauthorized"
>   else:
>  self.asked = 1
>  return self.username, self.password
>
>
> channel_id = ""
> rss_url = ""
>
> try:
> f = open("channellist.txt")
> except:
>print 'Could not open the channellist.txt file.'
> lines = f.readlines()
> f.close()
>
> for line in lines:
> if re.search('^\n$', line):
> continue
> m = re.search('(.*?)\s+(.*)', line)
> try:
> (channel_id, rss_url) = m.groups()
> except:
> print 'Can not properly parse line:\n%s' % (line)
> continue
> urllib._urlopener = NoGUIURLopener(username, password)
> urllib.urlretrieve("%s/rss/%s/importRSS?url=%s" % (zope, channel_id,
> rss_url))
>
>
>
> ==
> And the 'channellist.txt' text file just has the Zope id's of the Site
> Summary objects and the rss channel URLs, like so:
>
>
> Advogato   http://www.advogato.com/rss/articles.xml
> Linux.com   http://www.linux.com/mrn/front_page.rss
>
>
> --
>   Kevin Teague, Zopista
>   http://www.stormix.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] Broken LoginManager - Can't get it to install

2000-12-13 Thread Bill Welch

The source for DynPersist is in a sub-directory of ZPatterns. You have to
go in and compile it.

On Wed, 13 Dec 2000, Mohan Baro wrote:

> I can seem to figure out what wrong here.
> 
> I have ZPatterns installed already 0.4.3b2
> 
> This is the latest LoginManager 0.8.8b1
> 
> LoginManager Import Traceback
> Traceback (innermost last):
>   File "/usr/share/zope/lib/python/OFS/Application.py", line 397, in
> import_products
> product=__import__(pname, global_dict, global_dict, silly)
>   File "/usr/share/zope/lib/python/Products/LoginManager/__init__.py", line
> 1, in ?
> import LoginManager, LoginMethods, UserSources
>   File "/usr/share/zope/lib/python/Products/LoginManager/LoginManager.py",
> line 7, in ?
> from Products.ZPatterns.PlugIns import PlugInGroup
>   File "/usr/share/zope/lib/python/Products/ZPatterns/__init__.py", line 1,
> in ?
> import Rack, Specialists, Customizers, AttributeProviders,
> SheetProviders
>   File "/usr/share/zope/lib/python/Products/ZPatterns/Rack.py", line 9, in ?
> from DataSkins import DataSkin
>   File "/usr/share/zope/lib/python/Products/ZPatterns/DataSkins.py", line 1,
> in ?
> from DynPersist import DynPersist
> ImportError: No module named DynPersist
> 
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Object adding strangeness

2000-12-13 Thread Geoffrey L. Wright


So I've created a simple little product to dynamically manage CSS.  It
consists of three ZClasses and the arrangement looks something like
this:
 
   STYLEn_containerClass
 \
  \--> STYLEn_styleClass
  \
   \--> STYLEn_stylePropertyClass
 
The STYLEn_containerClass can contain a variable number of styles
which can, in turn, contain a variable number of properties.

I've also hacked the add method for the STYLEn_containerClass so that
it creates a number of default styles.  So far, this has all worked
swimmingly, but I have run into one really strange issue that I can't
figure out for the life of me.  Basicly, the folder that contains the
STYLEn_containerClass somehow(?) manages to aquire the title of the
last instance of STYLEn_styleClass that gets created.  So in the
follow example, the title of the containing folder get renamed to
"Header style" from whatever it happened to be before.

Does anybody have an idea of why this might be happening?   TIA for 
any answers or leads.

My code is below:
 
 ---
 
Create the "STYLEn" container.
 


  
  
 
 
  Create header style
 
  
  
  
  





  
  
  


  
  
  


  
  
  


  
  
  


  
  
  

  




  Now we need to return something.  We do this via a redirect so that the URL is 
correct.

  Unfortunately, the way we do this depends on whether we live in a product or in a 
class.  If we live in a 
  product, we need to use DestinationURL to decide where to go. If we live in a class, 
DestinationURL won't 
  be available, so we use URL2.




  



  





 ---



-- 
Geoffrey L. Wright
Developer / Systems Administrator

(907) 563-2721 ex. 4900
http://www.integritysi.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] stupid file upload question

2000-12-13 Thread Joh Johannsen

OK, there is a How-To on that, which is helpful, by benno

But it says: "In you python external method you can now reference
REQUEST.form['attached_file'] as a normal file. You can
  perform things such as read() on the object. "

Now in my Python external method, I can reference things like:

REQUEST.form['attached_file'].filename

and that is fine.

But what is the syntax for actually reading the file?  From the above
quote I thought it was as simple as
x=REQUEST.form['attached_file'].read()  but that doesn't work...

Either that or some way to get at the name of the file on the server.
The above 'filename' is just giving me the name of the file on the
client side, I have no idea where it is on the server.

Thanks,

JJ


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 on running the ZOPE by using ZmySQLDA

2000-12-13 Thread Angietel



Files\WebSite\z2.py" 
-D--2000-12-13T08:34:28 PROBLEM(100) ZServer Computing default 
hostname--2000-12-13T08:34:31 INFO(0) ZServer Medusa (V1.16.4.2) 
started at Wed Dec 1316:34:31 
2000    Hostname: 
ANGIE    
Port:8080--2000-12-13T08:34:31 INFO(0) ZServer FTP server 
started at Wed Dec 1316:34:31 
2000    
Authorizer:None    Hostname: 
angie    Port: 
8021--2000-12-13T08:34:31 INFO(0) ZServer PCGI Server started at Wed 
Dec 1316:34:31 2000    Inet 
socket port: 8090--

2000-12-13T08:34:31 INFO(0) ZServer Monitor Server 
(V1.8) started on port8099C:\Program 
Files\WebSite>
 
 
The word that i have been highlighted is the error 
msg that i want to mentioned. In the SQL statement it does'nt show any error 
msg. And what you have been suggested to me:-
 
*//making a ZSQL Method that issues a really simple 
query, like:SELECT * FROM InsertYourTableNameHere try this 
simple test from your "Z MySQL Database Connection"object.  Just browse 
to that object in the Zope management interface, clickthe "Test" tab and 
then enter the SQL statement.  Then click the "SubmitQuery" button to 
test it.
 
When i clicked the "Submit Query" button the 
illegal operation error msg will come out.
 
In MySQL is no sense of the error msg.
This is a bit tricky problem that i 
dont understand.
 
 
TQ 


Re: [Zope] PIL problem

2000-12-13 Thread Jason Byron


--- Luc Tonin <[EMAIL PROTECTED]> wrote:
> thx for your help
> but i don t find the font files ( courR14.pil and
> courR14.bpm)
> !!!

Sorry for the late reply, I don't check this list
until after work.

If you have X windows and you have fonts in the bdf or
pcf format you can use the script that comes with PIL
called pilfont.py to create fonts.

Also, I took a few of my fonts, formatted them, zipped
em up, and put them in my zope.org member folder.

http://www.zope.org/Members/byron/fonts.tar.gz">http://www.zope.org/Members/byron/fonts.tar.gz

hope this helps. 

Jason

> 
> - Message d'origine -
> De : Jason Byron <[EMAIL PROTECTED]>
> À : Luc Tonin <[EMAIL PROTECTED]>
> Cc : <[EMAIL PROTECTED]>
> Envoyé : mercredi 13 décembre 2000 07:10
> Objet : Re: [Zope] PIL problem
> 
> 
> >
> > --- Luc Tonin <[EMAIL PROTECTED]> wrote:
> > > well
> > > i m still trying to insert some text in a gif
> image
> > > using PIL
> > > but what should i do??? using da PSDraw class??
> > > does anybody have an id ??
> > > thx by advance
> > >
> >
> > I recently got that working for me by doing a few
> > tricky things:
> >
> > created a directory in Extensions called "BDF" and
> put
> > the font files (courR14.pil an courR14.pbm) in
> there.
> > (make sure that dir is zope readable)
> >
> > then add ImageFont to your PIL init script. (kind
> of
> > like the file replacement in ZPhoto does)
> >
> > then in your external method and the import
> statement
> > for the fonts. (in mine I did "import
> PIL.ImageFont")
> >
> > and then I experimented around and got the
> following
> > code to setup the font stuff:
> >
> >
> > wd = os.environ['PYTHONHOME']
> > wd_ext = wd + '/Extensions'
> > wd_ext_bdf = wd_ext + '/BDF'
> > sys.path[:0] = [wd_ext] # prepend the font path
> > sys.path[:0] = [wd_ext_bdf]
> > font = PIL.ImageFont.load_path("courR14.pil")
> >
> >
> > I put this in the global part of the external
> method
> > and the rest of the methods could use fonts.
> >
> > (for some reason I couldn't get any other font to
> > work. courR14 is the default in the PIL library. 
> to
> > change
> > fonts you can simply save another font as the
> courR14
> > name)
> >
> > After that you can use fonts in your methods with:
> >
> > draw = PIL.ImageDraw.Draw(image)
> > draw.text((x,y),"text to print")
> >
> >
> >
> > Hope this helps.
> >
> > I will *hopefully* be releasing a zope product in
> the
> > near future that uses PIL fonts so you can use it
> as
> > an example.  Right now I'm ironing it out a
> little,
> > but keep an eye out for it.  I think I'm going to
> call
> > it "NetMap"
> >
> >
> > Jason
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Shopping - Thousands of Stores. Millions of
> Products.
> > http://shopping.yahoo.com/
> 


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

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




RE: [Zope] What version of Python Methods - no - Scripts for 2.2.4?

2000-12-13 Thread Ron Bickers

I got PythonScripts running on 2.2.4 after doing the following:

1) Install PythonScripts from CVS just like any other Product.

2) Add these lines to lib/python/AccessControl/__init__.py:

from SecurityInfo import ClassSecurityInfo, ModuleSecurityInfo
from SecurityInfo import ACCESS_PRIVATE
from SecurityInfo import ACCESS_PUBLIC
from SecurityInfo import ACCESS_NONE
from SecurityInfo import secureModule

3) Add the CVS version of SecurityInfo.py to lib/python/AccessControl/

It works in my limited testing, but I have no idea if something is badly
broken that just hasn't shown itself yet.

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Evan
> Simpson
> Sent: Wednesday, December 13, 2000 2:52 PM
> To: Ronald L. Roeber; [EMAIL PROTECTED]
> Subject: Re: [Zope] What version of Python Methods - no - Scripts for
> 2.2.4?
>
>
> From: Evan Simpson <[EMAIL PROTECTED]>
> > After a little experimentation, I was able to get it to run with Zope
> 2.0.0.
> > It required small changes to __init__.py and Guarded.py, which are
> available
> > through cvs.zope.org.
>
> P.P.S.
>
> That's "2.2.0", not "2.0.0", and as of three hours ago you would also need
> to backport (or stub out) OFS.Cache :-(
>
> Sorry,
>
> Evan @ digicool & 4-am
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>


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




Re: [Zope] SiteAccess and Roles

2000-12-13 Thread Michael Bernstein

The Doctor What wrote:
> 
> I have site access running, but I apparently don't fully grok roles.
> 
> I have a directory layout like so:
> 
> /ZopeRoot
>   /site1
>   /site2
>   /site3
>  /user_acl(2)
>   /user_acl(1)
> 
> My site access rule is at:
> http://linuxasm.gerf.org:9673/siteid/view_source
> All the site[123] directories are SiteRooted and work fine.
> 

I read your access rule, and it seems like you've got it set
up to ignore the gTLD, so that www.gerf.org and www.gerf.com
etc. get routed to the same object automatically. Is that
correct?

Michael.

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