Re: [Zope] Problem on connect to MySQL

2000-12-12 Thread Petter Enholm

Hi,

The connection string is written like this;

database@host user password

hence you should give the following connection string:

customerDb localhost pass52696

You do not need to specify the host name when running Zope and SQL-server on
the same machine.
Also note that you should not use brackets (  [ ]  )  when specifying the
host name, if you intend to do so.

Best regards

Petter Enholm
Snapper as

- Original Message -
From: Angietel
To: [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 4:37 AM
Subject: [Zope] Problem on connect to MySQL


When i type in the Connection String , it will prompt out the error
message - "illegal operation" and in my python it will exactly like this:-

Files\WebSite\z2.py" -D
--
2000-12-12T03:15:10 PROBLEM(100) ZServer Computing default hostname
--
2000-12-12T03:15:11 INFO(0) ZServer Medusa (V1.16.4.2) started at Tue Dec 12
11:
15:11 2000
Hostname: ANGIE
Port:8080

--
2000-12-12T03:15:11 INFO(0) ZServer FTP server started at Tue Dec 12
11:15:11 20
00
Authorizer:None
Hostname: angie
Port: 8021
--
2000-12-12T03:15:11 INFO(0) ZServer PCGI Server started at Tue Dec 12
11:15:11 2
000
Inet socket port: 8090
--
2000-12-12T03:15:11 INFO(0) ZServer Monitor Server (V1.8) started on port
8099

C:\Program Files\WebSite>  #// This is error msg

and i would like to confirm to u whether the Connection String is write like
this:-
customerDb[@localhost]Password pass52696


In mySQL i set up the user password like this:-
INSERT INTO user
VALUES('localhost','password',PASSWORD=Password('pass52696'),'Y','Y','Y',Y',
'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
and my Database name is CustomerDb

P/s let me know where is my mistake! Thank You!


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

2000-12-12 Thread tom smith

It's great that zope runs on MacOSX Public Beta, but the only thing keeping
me using my PC (well VirtualPC actually) at the moment is the lack of a
Database & Database adapter on MacOSX for Zope.

I can compile mySQL but not the mySQL adapter.

Has anyone done this? Anyone have binaries (I'm a unix newbie?) or advice?

thanks

tom




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




RE: [Zope] Relocating installed zope -- was LoginManager broken?

2000-12-12 Thread Oliver Bleutgen

>>Btw. can anybody tell me if and how it's possible to relocate
>>an installed Zope?

> Hmm... perhaps I am not understanding what exactly you mean, but a thought
> might be to use tar (on a UNIX system at least) to preserve your setup.
> Assuming you are using ZServer, Try shutting down Zope with ./stop, then
> do
 
Sorry if I wasn't clear. I wanted to make a functional copy of an existing
zope installation. I wanted to "clone" a zope in order to be able
to do an installation of some more "dangerous" products/patches and
later on just change my apache/proxy pass to point to the new zope.
I know the techniques w.r.t. shell commands etc. 

But very wired things happened with the new zope 
(old paths showed up in tracebacks etc.), although I had changed 
all installation paths...


cheer


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




Re: [Zope] LoginManager broken?

2000-12-12 Thread Phil Harris

Phil,

Something that bit me when using the howto you referenced.

When creating the methods, as soon as the authenticate method is created the
LoginManager starts using it, but since the other methods don't yet exist it
starts generating errors with the result that you are locked out of the
LoginManager and any folders secured by it.

My solution was to create all the methods needed but with bogus names, such
as by sticking an x as the first character of each.

This way you can test each in isolation and when satisfied that they are
correct, rename them all in one fell swoop.

Ipso facto, presto magico you have a working LoginManager.

I've tried this procedure on 2.2.x with various versions of
LoginManager/ZPatterns and it's worked every time.  The latest Zope I've
used it with is 2.2.4.

hth

Phil
[EMAIL PROTECTED]


- Original Message -
From: "Mayers, Philip J" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 11, 2000 8:34 PM
Subject: RE: [Zope] LoginManager broken?


> Thanks, I'll take a look.
>
> Re: LoginManager - After a fast turnaround (confirming my ample faith in
> Open Source software) Magnus Heino pointed me in the right direction - the
> dtml methods and SQL objects need to be inside the UserSource folder,
*not*
> the LoginManager folder as the Howto implies (or maybe I just can't
> read...). Can someone confirm that the SQL methods need to be inside the
> UserSource folder? (which is mildly annoying, but there we go...)
>
> I'm still having some problems getting multiple roles working, but it's
> behaving itself for now. Now all I have to do is solve my LIMIT problem...
>
> Regards,
> Phil
>
> +--+
> | Phil Mayers, Network Support |
> | Centre for Computing Services|
> | Imperial College |
> +--+
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 11 December 2000 20:18
> To: Mayers, Philip J
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: [Zope] LoginManager broken?
>
>
> You might look at http://www.zope.org/Members/dlpierson/sqlLogin for a
> different approach that works for me in early testing.  Note that it
> needs additional work before being turned loose on a live site.
>
> Dan Pierson
>
> "Mayers, Philip J" <[EMAIL PROTECTED]> writes:
>
> > Does it even *work*? Even a little bit? Because other than repeating the
> > same process 12 damn times, so far I'm not convinced. Maybe I'll look in
> the
> > source code to see if there's actually anything in the files (other than
a
> > HOWTO.txt, which is empty, which BTW is more annoying than there not
being
> > one).
> >
> > The "LoginManager with SQL database" on the Zope site seems to end up
with
> > me having a folder I can't access through the management interface
(unless
> > you count "management" as "this is the index_html" document) Wow,
thanks!
> > Now I have to delete it and start all over again...
> >
> > In all seriousness - there *must* be one person who has gotten an
> SQL-backed
> > LoginManger working with 2.2.4 - surely?
> >
> > Thanks for all the great work (little bugs aside...) - Zope is a
wonderful
> > product! Now if only it could serve XML as well as Cocoon...
> >
> > Regards,
> > Phil
> >
> > +--+
> > | Phil Mayers, Network Support |
> > | Centre for Computing Services|
> > | Imperial College |
> > +--+
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )


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




[Zope] HTML formatting from a text field

2000-12-12 Thread Ausum

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".

Does anyone know how to do it? I've tried to find out the technology
behind that page, but guess I didn't get too far.


Thanks in advance,


Ausum

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




Re: [Zope] Relocating installed zope -- was LoginManager broken?

2000-12-12 Thread Phil Harris

Oliver,

I haven't been following this thread, but here's how I do it.

It's quite simple.

1.Copy the folder with Zope in.
2.edit z2.py to change all references to the old folder to the new
folder.
3.edit the start script in the same way.

That should be it.

hth
Phil

- Original Message -
From: "Oliver Bleutgen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 12, 2000 9:16 AM
Subject: RE: [Zope] Relocating installed zope -- was LoginManager broken?


> >>Btw. can anybody tell me if and how it's possible to relocate
> >>an installed Zope?
>
> > Hmm... perhaps I am not understanding what exactly you mean, but a
thought
> > might be to use tar (on a UNIX system at least) to preserve your setup.
> > Assuming you are using ZServer, Try shutting down Zope with ./stop, then
> > do
>
> Sorry if I wasn't clear. I wanted to make a functional copy of an existing
> zope installation. I wanted to "clone" a zope in order to be able
> to do an installation of some more "dangerous" products/patches and
> later on just change my apache/proxy pass to point to the new zope.
> I know the techniques w.r.t. shell commands etc.
>
> But very wired things happened with the new zope
> (old paths showed up in tracebacks etc.), although I had changed
> all installation paths...
>
>
> cheer
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] namespace-problem

2000-12-12 Thread Alexander DePauli

Hi everybody,

what I want to do is fairly simple, but I've got a namespace problem:

- via a form I want to add a new folder, add some properties to the new
folder, then add a DTML document within the new folder.
- whatever I try, the properties as well as the new document are added
to the parent folder of the new folder instead of to the new folder.

Here some experiments (don't look at the syntax):


 

   
   



This looks fine to me, but ZOPE insists on creating the new document in 
   /OldFolder 
instead of 
   /OldFolder/NewFolder

Some more stuff for wondering:

If I do a 

   

to get an actual value for testing purposes, ZOPE returns the *correct*
value of 'NewFolder'

But if I do an additional 
   
id: ,
type: 
   
to list the objects of the actual namespace (placed *after* the above
, the output consists of the objects of the
/OldFolder-namespace, but not that of the
/OldFolder/NewFolder.

...I'm sure this is a rookie-problem and can be solved by turning a
switch or two (perhaps in my brain), but I'm stuck.

Do you/anybody has any clue?

Thanks in advance - Alexander
~
http://www.herrenausstatter.de - Der Online-Herrenausstatter
Kostenlose Serviceline: 0800 -999 66 33
Versandkostenfreie Lieferung - 30 Tage Rückgaberecht
~
Verwaltungsadresse:
DePauli.com Aktiengesellschaft
Stahlgruberring 3 - 81829 München
Telefon: 089 / 530 75 170 - Telefax 089 / 514 50 666

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




[Zope] Help documents broken

2000-12-12 Thread Olaf Zanger

Hi there,

i have quite some products imported, they also work properly, but the
help document is broken.

which Product do i need to install to make them run?

thanks in before 

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] Relocating installed zope -- was LoginManager broken?

2000-12-12 Thread Oliver Bleutgen

> Oliver,

> I haven't been following this thread, but here's how I do it.

> It's quite simple.

> 1.Copy the folder with Zope in.
> 2.edit z2.py to change all references to the old folder to the new
> folder.
> 3.edit the start script in the same way.

> That should be it.

Thanks Phil,
but that didn't do it for me at that time. IIRC I forgot one path
at first, but corrected that later. Anyway, when grepping
around I found out that the full path to the old install
was contained in every .pyc file and python hadn't bothered
to recreate them when I started the new zope.
But even when I deleted all *.pyc I couldn't get loginmanager
going at all (zope/loginmanager/zpopyda all pretended to work, 
but postgres never saw any sql-query and all logins failed).

All in all it was very wired and made me think that this 
"cloning" might be tricky and ask for a "standart procedure".


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] Problem on connect to MySQL

2000-12-12 Thread Petter Enholm

Correction - Too early in the morning, sorry for the inconvenience 

> In mySQL i set up the user password like this:-
> INSERT INTO user
>
VALUES('localhost','password',PASSWORD=Password('pass52696'),'Y','Y','Y',Y',
> 'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
> and my Database name is CustomerDb
>

You have named the user password, hence your connection string should be:

CustomerDb password pass52696

Just for the record, I'm sure you figured this out by yourself.

Best regards

Petter Enholm

- Original Message -
From: "Petter Enholm" <[EMAIL PROTECTED]>
To: "Angietel" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, December 12, 2000 9:23 AM
Subject: Re: [Zope] Problem on connect to MySQL


> Hi,
>
> The connection string is written like this;
>
> database@host user password
>
> hence you should give the following connection string:
>
> customerDb localhost pass52696
>
> You do not need to specify the host name when running Zope and SQL-server
on
> the same machine.
> Also note that you should not use brackets (  [ ]  )  when specifying the
> host name, if you intend to do so.
>
> Best regards
>
> Petter Enholm
> Snapper as
>



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

2000-12-12 Thread Emmon Simbo



Hi 

I have a few 
customers who are using Zope and have shown an interest in using 
the 
OpenLink ODBC Drivers. Unfortunately, I am not familiar with Zope and wondered 
if there was a How-To that I can use to show me how to use Zope with ODBC. I 
have downloaded the ZmxODBCDA module but when I select this from the Products 
menu, it shows up as ZmxODBCDA(Broken product ZmxODBCA). If I click on the 
link, I get
 
  File 
"D:\APPS\ZopeWeb\lib\python\OFS\Application.py", line 397, in 
import_products    product=__import__(pname, global_dict, 
global_dict, silly)  File 
"D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\__init__.py", line 91, in 
?    import DA  File 
"D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\DA.py", line 92, in 
?    from db import DB, manage_ODBCDataSources  File 
"D:\PROGRA~1\Zope22\lib\python\Products\ZmxODBCDA\db.py", line 87, in 
?ImportError: No module named mx.ODBC
 
Any ideas what's 
wrong here and secondly how I can go about making an ODBC 
connection.
 
Thanks for you help 
in advance
 
Best Regards,
 
Emmon SimboConsultantOpenLink 
SoftwareTel: +44 (0) 20 8681 7701Web: http://www.openlinksw.comXML & E-Business Infrastructure Technology Provider 
 

BEGIN:VCARD
VERSION:2.1
N:Simbo;Emmon
FN:Emmon Simbo
ORG:OpenLink Software
TITLE:Professional Services Consultant
TEL;WORK;VOICE:0208 681 7701
TEL;WORK;VOICE:0468 573 573
TEL;WORK;FAX:02086817702
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Amy Johnson House=0D=0A22-26 Dingwall Rd;Croydon;Surrey;CR0 9XF;United Kin=
gdom
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Amy Johnson House=0D=0A22-26 Dingwall Rd=0D=0ACroydon, Surrey CR0 9XF=0D=0AU=
nited Kingdom
ADR;HOME:;;United Kingdom
LABEL;HOME:United Kingdom
URL:http://www.openlink.co.uk
URL:http://www.openlinksw.co.uk
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20001106T182603Z
END:VCARD



Re: [Zope] Incrementing a form field

2000-12-12 Thread César A. K. Grossmann

Andy McKay wrote:
> 
> You could use FSCounter to do your counting:
> http://www.zope.org/Members/andym/wiki/FSCounter.
> 
> There is a How-To on using unique_ids:
> http://www.zope.org/Members/andym/FSCounter/unique_ids

Thanks, but I think that FSCounter cannot be used this time. The problem
is, I have several people working with the application, and all of them
have different ranges of numbers to type (e. g., while someone is
processing the records 1-200, someone is processing the records 201-400,
and another one is processing the records 1501-1800).

> In your code try explicilty using an int:
> 
> >   

I'm trying this. I have a little problem at a moment: my agent shows a
JavaScript I have in the page, instead of the page itself (it is an
intermitent error).

OK, it worked.

[]s
-- 
 +-+-+
 | César A. K. Grossmann   | Capacitação Solidária   |
 | [EMAIL PROTECTED]| http://www.uol.com.br/umminuto/ |
 | http://members.xoom.com/ckant/  | Clique e doe - é de graça   |
 +-+-+
   http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html
  A ética do iG: http://antispambr.abranetrj.org.br/not-20001023.html

The husband who doesn't tell his wife everything probably reasons that
what she doesn't know won't hurt him.
-- Leo J. Burke

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

Brian Lloyd wrote:
> 
> Hello all,
> 
>   As promised, Zope 2.3.0 alpha 1 is now available. You can
>   download it from Zope.org:
> 
>   http://www.zope.org/Products/Zope/2.3.0a1/

Cool :-)

Any chance of a binary release for us lame users who want to try it out
on our WinNT Workstations? ;-)

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

2000-12-12 Thread Chris Withers

"Stefan H. Holek" wrote:
> 
> 
> May I humbly point you to the ReplaceSupport product I had cataloged
> today...
> 
> http://www.zope.org/Members/shh/ReplaceSupport/

Looks good :-)

How about doing a proposal/project on dev.zope.org to see whether it
could become an 'official' part of the Zope core?

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

2000-12-12 Thread Ivan Cornell

One (ugly!) way of doing it:


  


  


This creates Test2 in Test1.

Ivan


>
> Here some experiments (don't look at the syntax):
>
> 
>
> 
>
>
> 
>
> This looks fine to me, but ZOPE insists on creating the new document in
>/OldFolder
> instead of
>/OldFolder/NewFolder
>


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




RE: [Zope] ODBC Connection

2000-12-12 Thread Paolo Quaglia



Try to 
use the ZODBCDA 
http://www.zope.org/Products/DA/ZODBCDA
 
 
It 
works very well!
 
Paolo 
Quaglia
 

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Emmon SimboSent: 
  Tuesday, December 12, 2000 11:26 AMTo: 
  [EMAIL PROTECTED]Subject: [Zope] ODBC Connection
  Hi 
  
  I have a few 
  customers who are using Zope and have shown an interest in using 
  the 
  OpenLink ODBC Drivers. Unfortunately, I am not familiar with Zope and wondered 
  if there was a How-To that I can use to show me how to use Zope with ODBC. I 
  have downloaded the ZmxODBCDA module but when I select this from the Products 
  menu, it shows up as ZmxODBCDA(Broken product ZmxODBCA). If I click on 
  the link, I get
   
    File 
  "D:\APPS\ZopeWeb\lib\python\OFS\Application.py", line 397, in 
  import_products    product=__import__(pname, global_dict, 
  global_dict, silly)  File 
  "D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\__init__.py", line 91, in 
  ?    import DA  File 
  "D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\DA.py", line 92, in 
  ?    from db import DB, manage_ODBCDataSources  
  File "D:\PROGRA~1\Zope22\lib\python\Products\ZmxODBCDA\db.py", line 87, in 
  ?ImportError: No module named mx.ODBC
   
  Any ideas what's 
  wrong here and secondly how I can go about making an ODBC 
  connection.
   
  Thanks for you 
  help in advance
   
  Best Regards,
   
  Emmon SimboConsultantOpenLink 
  SoftwareTel: +44 (0) 20 8681 7701Web: http://www.openlinksw.comXML & E-Business Infrastructure Technology Provider 
  
   


RE: [Zope] LoginManager broken?

2000-12-12 Thread Mayers, Philip J

Ye gods...

Ok, steps I had to take to get LoginManager working

1) Create a folder, call it "test"
2) In that folder, add a LoginManager with a GenericUserSource, with *just*
"Basic Auth Login" selected. Leave the rest as defaults.
3) In the newly-created ACL-users folder, you'll find "forbiddenPage",
"loginForm" and "logoutForm" - you can delete loginForm.
   Give logoutForm and forbiddenPage the "Manager" proxy role
4) In the UserSource folder/object underneath acl_users, add
   a) A connection to the SQL database you'll be using
   b) an SQL method "check_user" with a parameter "username", which does a
"select username from usertable where username = "
   c) an SQL method "check_user" with parameters "username" and "password",
which does a "select username from usertable where username =  and password = "
   d) an SQL method "get_roles" with a paramter "username" that does "select
groupname from group_members where username = " (or whatever is appropriate for your database)

5) Add the DTML methods WITH A DIFFERENT NAME - DON'T add
userAuthenticate,userExists,userRoles - add (say)
xuserAuthenticate,xuserExists,xuserRoles
   a) xuserExists should read:


  

  




   b) xuserAuthenticate should read:


  

  




   c) xuserRoles should read



  





6) Give the "Manager" proxy role to the DTML methods, so they can access the
SQL methods you just created
7) Turn off acquisition of the permissions on the test folder, and be sure
to add read permissions to any local roles you're using
8) Make a copy of the test folder now, before it all goes wrong...
9) Batch rename the DTML method (e.g. s/x(.*)/$1/g in perl-speak) - if
you're lucky, it will work.

I have to say, I'm not hugely impressed...

Regards,
Phil

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

-Original Message-
From: Mayers, Philip J [mailto:[EMAIL PROTECTED]]
Sent: 11 December 2000 20:34
To: '[EMAIL PROTECTED]'
Subject: RE: [Zope] LoginManager broken?


Thanks, I'll take a look.

Re: LoginManager - After a fast turnaround (confirming my ample faith in
Open Source software) Magnus Heino pointed me in the right direction - the
dtml methods and SQL objects need to be inside the UserSource folder, *not*
the LoginManager folder as the Howto implies (or maybe I just can't
read...). Can someone confirm that the SQL methods need to be inside the
UserSource folder? (which is mildly annoying, but there we go...)

I'm still having some problems getting multiple roles working, but it's
behaving itself for now. Now all I have to do is solve my LIMIT problem...

Regards,
Phil

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

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 11 December 2000 20:18
To: Mayers, Philip J
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Zope] LoginManager broken?


You might look at http://www.zope.org/Members/dlpierson/sqlLogin for a
different approach that works for me in early testing.  Note that it
needs additional work before being turned loose on a live site.

Dan Pierson

"Mayers, Philip J" <[EMAIL PROTECTED]> writes:

> Does it even *work*? Even a little bit? Because other than repeating the
> same process 12 damn times, so far I'm not convinced. Maybe I'll look in
the
> source code to see if there's actually anything in the files (other than a
> HOWTO.txt, which is empty, which BTW is more annoying than there not being
> one).
> 
> The "LoginManager with SQL database" on the Zope site seems to end up with
> me having a folder I can't access through the management interface (unless
> you count "management" as "this is the index_html" document) Wow, thanks!
> Now I have to delete it and start all over again...
> 
> In all seriousness - there *must* be one person who has gotten an
SQL-backed
> LoginManger working with 2.2.4 - surely?
> 
> Thanks for all the great work (little bugs aside...) - Zope is a wonderful
> product! Now if only it could serve XML as well as Cocoon...
> 
> Regards,
> Phil
> 
> +--+
> | Phil Mayers, Network Support |
> | Centre for Computing Services|
> | Imperial College |
> +--+  
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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/mail

Re: [Zope] ODBC Connection

2000-12-12 Thread Philipp Auersperg

the ZmxODBC DA uses the Zope-independent product mxODBC, that provides a generic 
Python DB API compliant ODBC interface to Python.

ZmxODBC installs mxODBC into lib/python/Shared/mx. The problem is that this path is 
not in the default PythonPath.

Solution:
move the mx directory from lib/python/Shared into a directory that's member of 
PythonPath (for example lib/python).

phil
*** REPLY SEPARATOR ***

On 12.12.2000 at 10:25 Emmon Simbo wrote:
Hi 

I have a few customers who are using Zope and have shown an interest in using the 
OpenLink ODBC Drivers. Unfortunately, I am not familiar with Zope and wondered if 
there was a How-To that I can use to show me how to use Zope with ODBC. I have 
downloaded the ZmxODBCDA module but when I select this from the Products menu, it 
shows up as ZmxODBCDA(Broken product ZmxODBCA). If I click on the link, I get
 

  File "D:\APPS\ZopeWeb\lib\python\OFS\Application.py", line 397, in import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\__init__.py", line 91, in ?
import DA
  File "D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\DA.py", line 92, in ?
from db import DB, manage_ODBCDataSources
  File "D:\PROGRA~1\Zope22\lib\python\Products\ZmxODBCDA\db.py", line 87, in ?
ImportError: No module named mx.ODBC


 
Any ideas what's wrong here and secondly how I can go about making an ODBC connection.
 
Thanks for you help in advance
 
Best Regards,

Emmon Simbo
Consultant
OpenLink Software
Tel: +44 (0) 20 8681 7701
Web: http://www.openlinksw.com
XML & E-Business Infrastructure Technology Provider 


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




Re: [Zope] namespace-problem

2000-12-12 Thread Maik Röder

Hi !

Alexander DePauli wrote:
> 
> Hi everybody,
> 
> what I want to do is fairly simple, but I've got a namespace problem:
> 
> - via a form I want to add a new folder, add some properties to the new
> folder, then add a DTML document within the new folder.
> - whatever I try, the properties as well as the new document are added
> to the parent folder of the new folder instead of to the new folder.

This works for me:





   
   




Best regards,

Maik Röder

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

2000-12-12 Thread Paolo Quaglia



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 QuagliaInformation Technology 
CoordinatorSitek S.p.A.[EMAIL PROTECTED] 
 


RE: [Zope] ODBC Connection

2000-12-12 Thread Emmon Simbo

Thanks Philipp.

That solved the problem.

Is there actually a How-To on what to do as when I go to add a new
Datasource, I get the error

Error Type: NameError
Error Value: SQLDataSources

Thanks again for you answer

Emmon

-Original Message-
From: Philipp Auersperg [mailto:[EMAIL PROTECTED]]
Sent: 12 December 2000 11:51
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Zope] ODBC Connection


the ZmxODBC DA uses the Zope-independent product mxODBC, that provides a
generic
Python DB API compliant ODBC interface to Python.

ZmxODBC installs mxODBC into lib/python/Shared/mx. The problem is that this
path is not in the default PythonPath.

Solution:
move the mx directory from lib/python/Shared into a directory that's member
of PythonPath (for example lib/python).

phil
*** REPLY SEPARATOR ***

On 12.12.2000 at 10:25 Emmon Simbo wrote:
Hi

I have a few customers who are using Zope and have shown an interest in
using the OpenLink ODBC Drivers. Unfortunately, I am not familiar with Zope
and wondered if there was a How-To that I can use to show me how to use Zope
with ODBC. I have downloaded the ZmxODBCDA module but when I select this
from the Products menu, it shows up as ZmxODBCDA(Broken product ZmxODBCA).
If I click on the link, I get


  File "D:\APPS\ZopeWeb\lib\python\OFS\Application.py", line 397, in
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\__init__.py", line 91,
in ?
import DA
  File "D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\DA.py", line 92, in ?
from db import DB, manage_ODBCDataSources
  File "D:\PROGRA~1\Zope22\lib\python\Products\ZmxODBCDA\db.py", line 87, in
?
ImportError: No module named mx.ODBC



Any ideas what's wrong here and secondly how I can go about making an ODBC
connection.

Thanks for you help in advance

Best Regards,

Emmon Simbo
Consultant
OpenLink Software
Tel: +44 (0) 20 8681 7701
Web: http://www.openlinksw.com
XML & E-Business Infrastructure Technology Provider



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




RE: [Zope] ODBC Connection

2000-12-12 Thread Emmon Simbo



Hi 
Paolo
 
I 
already have that. The problem was that it wasn't in the lib/python path. Moving 
it there fixed the problem. Now I get an error
 
Error Type: NameErrorError 
Value: SQLDataSources
when I try to add a new 
datasource.
 
Emmon
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Paolo QuagliaSent: 12 
December 2000 11:12To: [EMAIL PROTECTED]Subject: RE: [Zope] 
ODBC Connection
Try to 
use the ZODBCDA 
http://www.zope.org/Products/DA/ZODBCDA
 
 
It 
works very well!
 
Paolo 
Quaglia
 

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Emmon SimboSent: 
  Tuesday, December 12, 2000 11:26 AMTo: 
  [EMAIL PROTECTED]Subject: [Zope] ODBC Connection
  Hi 
  
  I have a few 
  customers who are using Zope and have shown an interest in using 
  the 
  OpenLink ODBC Drivers. Unfortunately, I am not familiar with Zope and wondered 
  if there was a How-To that I can use to show me how to use Zope with ODBC. I 
  have downloaded the ZmxODBCDA module but when I select this from the Products 
  menu, it shows up as ZmxODBCDA(Broken product ZmxODBCA). If I click on 
  the link, I get
   
    File 
  "D:\APPS\ZopeWeb\lib\python\OFS\Application.py", line 397, in 
  import_products    product=__import__(pname, global_dict, 
  global_dict, silly)  File 
  "D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\__init__.py", line 91, in 
  ?    import DA  File 
  "D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\DA.py", line 92, in 
  ?    from db import DB, manage_ODBCDataSources  
  File "D:\PROGRA~1\Zope22\lib\python\Products\ZmxODBCDA\db.py", line 87, in 
  ?ImportError: No module named mx.ODBC
   
  Any ideas what's 
  wrong here and secondly how I can go about making an ODBC 
  connection.
   
  Thanks for you 
  help in advance
   
  Best Regards,
   
  Emmon SimboConsultantOpenLink 
  SoftwareTel: +44 (0) 20 8681 7701Web: http://www.openlinksw.comXML & E-Business Infrastructure Technology Provider 
  
   


RE: [Zope] ODBC Connection

2000-12-12 Thread Paolo Quaglia



Hi 
Emmon
I 
don't well understand the exact moment the error 
occurs:
 
If you 
correctly have the ZODBCDA entry in the product list, you should have 
a new entry in the available objects list.
Now 
you have to create a new datasource with the win32 ODBC manager (in control 
panel).
then go to a folder and add a new ZODBC Database 
connection and chose the created ODBC Datasorce
 
for me 
this work well ... 
Let me 
know
 
Paolo 
Quaglia

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Emmon SimboSent: 
  Tuesday, December 12, 2000 1:19 PMTo: Paolo Quaglia; 
  [EMAIL PROTECTED]Subject: RE: [Zope] ODBC 
  Connection
  Hi 
  Paolo
   
  I 
  already have that. The problem was that it wasn't in the lib/python path. 
  Moving it there fixed the problem. Now I get an error
   
  Error Type: 
  NameErrorError Value: 
  SQLDataSources
  when I try to add a new 
  datasource.
   
  Emmon
  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Paolo QuagliaSent: 
  12 December 2000 11:12To: [EMAIL PROTECTED]Subject: RE: 
  [Zope] ODBC Connection
  Try 
  to use the ZODBCDA 
  http://www.zope.org/Products/DA/ZODBCDA
   
   
  It 
  works very well!
   
  Paolo Quaglia
   
  
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Emmon SimboSent: 
Tuesday, December 12, 2000 11:26 AMTo: 
[EMAIL PROTECTED]Subject: [Zope] ODBC Connection
Hi 

I have a few 
customers who are using Zope and have shown an interest in using 
the 
OpenLink ODBC Drivers. Unfortunately, I am not familiar with Zope and 
wondered if there was a How-To that I can use to show me how to use Zope 
with ODBC. I have downloaded the ZmxODBCDA module but when I select this 
from the Products menu, it shows up as ZmxODBCDA(Broken product 
ZmxODBCA). If I click on the link, I get
 
  File 
"D:\APPS\ZopeWeb\lib\python\OFS\Application.py", line 397, in 
import_products    product=__import__(pname, global_dict, 
global_dict, silly)  File 
"D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\__init__.py", line 91, in 
?    import DA  File 
"D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\DA.py", line 92, in 
?    from db import DB, manage_ODBCDataSources  
File "D:\PROGRA~1\Zope22\lib\python\Products\ZmxODBCDA\db.py", line 87, in 
?ImportError: No module named mx.ODBC
 
Any ideas what's 
wrong here and secondly how I can go about making an ODBC 
connection.
 
Thanks for you 
help in advance
 
Best Regards,
 
Emmon 
SimboConsultantOpenLink SoftwareTel: +44 (0) 20 8681 
7701Web: http://www.openlinksw.comXML & E-Business Infrastructure Technology 
Provider 
 


Re: [Zope] LoginManager broken?

2000-12-12 Thread Dan L. Pierson

"Phil Harris" <[EMAIL PROTECTED]> writes:

> Phil,
> 
> Something that bit me when using the howto you referenced.
> 
> When creating the methods, as soon as the authenticate method is created the
> LoginManager starts using it, but since the other methods don't yet exist it
> starts generating errors with the result that you are locked out of the
> LoginManager and any folders secured by it.

Yeah, that bit me too.  I think that the alternate approach in my
writeup below avoids it by not telling the UserSource anything until
everything else is set up.  The main problem with it is that it
doesn't currently take advantage of the cacheing features in
BasicUserSource.  I think that I need a trivial Python subclass of
LoginUser that supports cache management, but I need to understand the
lifetimes of virtual ZClasses in Racks a bit better first...

> My solution was to create all the methods needed but with bogus names, such
> as by sticking an x as the first character of each.
> 
> This way you can test each in isolation and when satisfied that they are
> correct, rename them all in one fell swoop.

Cute.  I'll remember this trick.

> Ipso facto, presto magico you have a working LoginManager.
> 
> I've tried this procedure on 2.2.x with various versions of
> LoginManager/ZPatterns and it's worked every time.  The latest Zope I've
> used it with is 2.2.4.
> 
> hth
> 
> Phil
> [EMAIL PROTECTED]
> 
> 
> - Original Message -
> From: "Mayers, Philip J" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 11, 2000 8:34 PM
> Subject: RE: [Zope] LoginManager broken?
> 
> 
> > Thanks, I'll take a look.
> >
> > Re: LoginManager - After a fast turnaround (confirming my ample faith in
> > Open Source software) Magnus Heino pointed me in the right direction - the
> > dtml methods and SQL objects need to be inside the UserSource folder,
> *not*
> > the LoginManager folder as the Howto implies (or maybe I just can't
> > read...). Can someone confirm that the SQL methods need to be inside the
> > UserSource folder? (which is mildly annoying, but there we go...)
> >
> > I'm still having some problems getting multiple roles working, but it's
> > behaving itself for now. Now all I have to do is solve my LIMIT problem...
> >
> > Regards,
> > Phil
> >
> > +--+
> > | Phil Mayers, Network Support |
> > | Centre for Computing Services|
> > | Imperial College |
> > +--+
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 11 December 2000 20:18
> > To: Mayers, Philip J
> > Cc: '[EMAIL PROTECTED]'
> > Subject: Re: [Zope] LoginManager broken?
> >
> >
> > You might look at http://www.zope.org/Members/dlpierson/sqlLogin for a
> > different approach that works for me in early testing.  Note that it
> > needs additional work before being turned loose on a live site.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Does Zope 2.3 Alpha run on Python 2.0?

2000-12-12 Thread Brad Clements

I need to refresh my port to NetWare, and want to knock off both Python 
2.0 and Zope 2.3 in one go. Anyone know if it works on 2.0?



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] Incrementing a form field

2000-12-12 Thread administrator

If you are working with MySQL or some other database system,
then your database should deliver a valid id.
For a description have a look in the HowToDos and search for:
Creating a new record with subrecords in MySQL

Best regards
  Arno
> Hi!
>
> I have a form that is used to insert some records to a database, and one
> of the fields is a sequence number. I want to increment this number when
> the form is used, unless is the first time it is loaded.
>
> The form (idea copied from the SmartForms HOWTO) have the name
> "Register", and is something like this:
>
> 
>
> 
>   Record inserted.
> 
>
> 
>   
> 
>   
> 
>
> 
> A Field 
> A Number 
> 
> 
>
> 
>
> It work for the first load, but when I press the OK button, I get an
> error message:



[Zope] PIL problem

2000-12-12 Thread Luc Tonin

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

Luc TONIN
--
Développeur Web
--

Multithématiques
http://www.multithematiques.com
Chaines thématiques sur câble et satellite
Canal Jimmy, Cinecinemas, Cineclassics, Planete, Forum, Season, Wishline,
Centre Jean Monet  03 82 24 00 42
Longlaville  +333 82 24 00  42
54400 Longwy



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

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

2000-12-12 Thread Oleg Broytmann

Hi!

   With the recent patch I have problems connecting directly to ZServer
(port 8080) - Zope reported error 500 and restarted itself.
   Connecting through Apache+mod_pcgi2 works. I reverted the patch
(restored HTTPServer.py from backup) and can connect to ZServer again.
   Something wrong with te patch!

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] Last day of Month

2000-12-12 Thread Michel Pelletier



On Tue, 12 Dec 2000, 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:
> 
> Hope that helps.

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.

-Michel


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




Re: [Zope] ANNOUNCE: Zope 2.3.0 alpha 1 released...

2000-12-12 Thread Michel Pelletier



On Tue, 12 Dec 2000, Chris Withers wrote:

> Brian Lloyd wrote:
> > 
> > Hello all,
> > 
> >   As promised, Zope 2.3.0 alpha 1 is now available. You can
> >   download it from Zope.org:
> > 
> >   http://www.zope.org/Products/Zope/2.3.0a1/
> 
> Cool :-)
> 
> Any chance of a binary release for us lame users who want to try it out
> on our WinNT Workstations? ;-)

We don't make binaries for alpha releases.

That being said, perhaps you can be the first person to get it to work
using the various free ports of gcc to windows.

-Michel



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




RE: [Zope] How about a Zope 2.3a1, ZBook 2.3a1, and Python 2.3a1

2000-12-12 Thread Brian Lloyd

> Just a thought.  About a month ago this would have sounded far 
> fetched, but now that Guido is in the house, when might we expect 
> the Zope Python version to change from 1.5.2 to 2.x?  Imho for 
> the book the Python version for Zope should at least be 2.xa1
> 
>  It seems to me that by the time the book is finalized your team 
> could deliver a basic core Zope 2.x Python 2.x release.  My 
> understanding is that its not that big of an issue.  I'm sure it 
> would just make the marketing team giddy.

It's probably a little more an issue than you think. Zope is a 
pretty large codebase and if nothing else, introducing unicode 
can affect a great many things. Its the sort of thing that needs 
to be done with a lot of thinking up front. Some work is being 
done on that, (esp. by Toby Dickenson) but 2.3 won't be the 
release where Python 2.0 is officially supported / required.


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




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




Re: [Zope] Does Zope 2.3 Alpha run on Python 2.0?

2000-12-12 Thread Andy McKay

Unfortunately that's not in the plan for 2.3, DC are planning it soon, just
no official word. Apparently there arent any real showstoppers if you want
to give it a try...
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Brad Clements" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 12, 2000 7:30 AM
Subject: [Zope] Does Zope 2.3 Alpha run on Python 2.0?


I need to refresh my port to NetWare, and want to knock off both Python
2.0 and Zope 2.3 in one go. Anyone know if it works on 2.0?



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 )



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




RE: [Zope] ODBC Connection

2000-12-12 Thread Emmon Simbo



Hi
 
Thx 
for the quick reply. 
 
I already have several Datasources in my 
ODBC control Panel, is there something that I need to do to ensure that it picks 
up a Datasource from this list. All I have done install both Zope and the 
ZODBCDA module, go to the management screen and tried adding a new Z mxODBC 
connection. Is there something I'm missing here
 
 
Thanks
 
Emmon
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Paolo QuagliaSent: 12 
December 2000 13:15To: [EMAIL PROTECTED]Subject: RE: [Zope] 
ODBC Connection
Hi 
Emmon
I 
don't well understand the exact moment the error 
occurs:
 
If you 
correctly have the ZODBCDA entry in the product list, you should have 
a new entry in the available objects list.
Now 
you have to create a new datasource with the win32 ODBC manager (in control 
panel).
then go to a folder and add a new ZODBC Database 
connection and chose the created ODBC Datasorce
 
for me 
this work well ... 
Let me 
know
 
Paolo 
Quaglia

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Emmon SimboSent: 
  Tuesday, December 12, 2000 1:19 PMTo: Paolo Quaglia; 
  [EMAIL PROTECTED]Subject: RE: [Zope] ODBC 
  Connection
  Hi 
  Paolo
   
  I 
  already have that. The problem was that it wasn't in the lib/python path. 
  Moving it there fixed the problem. Now I get an error
   
  Error Type: 
  NameErrorError Value: 
  SQLDataSources
  when I try to add a new 
  datasource.
   
  Emmon
  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Paolo QuagliaSent: 
  12 December 2000 11:12To: [EMAIL PROTECTED]Subject: RE: 
  [Zope] ODBC Connection
  Try 
  to use the ZODBCDA 
  http://www.zope.org/Products/DA/ZODBCDA
   
   
  It 
  works very well!
   
  Paolo Quaglia
   
  
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Emmon SimboSent: 
Tuesday, December 12, 2000 11:26 AMTo: 
[EMAIL PROTECTED]Subject: [Zope] ODBC Connection
Hi 

I have a few 
customers who are using Zope and have shown an interest in using 
the 
OpenLink ODBC Drivers. Unfortunately, I am not familiar with Zope and 
wondered if there was a How-To that I can use to show me how to use Zope 
with ODBC. I have downloaded the ZmxODBCDA module but when I select this 
from the Products menu, it shows up as ZmxODBCDA(Broken product 
ZmxODBCA). If I click on the link, I get
 
  File 
"D:\APPS\ZopeWeb\lib\python\OFS\Application.py", line 397, in 
import_products    product=__import__(pname, global_dict, 
global_dict, silly)  File 
"D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\__init__.py", line 91, in 
?    import DA  File 
"D:\APPS\ZopeWeb\lib\python\Products\ZmxODBCDA\DA.py", line 92, in 
?    from db import DB, manage_ODBCDataSources  
File "D:\PROGRA~1\Zope22\lib\python\Products\ZmxODBCDA\db.py", line 87, in 
?ImportError: No module named mx.ODBC
 
Any ideas what's 
wrong here and secondly how I can go about making an ODBC 
connection.
 
Thanks for you 
help in advance
 
Best Regards,
 
Emmon 
SimboConsultantOpenLink SoftwareTel: +44 (0) 20 8681 
7701Web: http://www.openlinksw.comXML & E-Business Infrastructure Technology 
Provider 
 


[Zope] Re: boolean help

2000-12-12 Thread Robin . Lamb

On Sun, 10 December 2000, Martijn Pieters wrote:

> 
> > I am new at programming and have been unable to code a boolean button
> > into my Zope Portal registgration form that can recall the previous
> > selection such that it can be de-selected.  Basically, I want to enable
> > a user on my site to sign-up, flip a boolean on, log out, then later log
> > back in and unflip that boolean.  It's the "unflip" that catches me.  I
> > have been able to make the boolean reflect the fact that it is selected
> > when the user logs back on, back I can't make it unselectable.  Here's
> > the code I've got now that doesn't allow for de-selecting,
> >
> >  >
> > checked
> >   
> >value="member.current_college_student">
> > Current College Student
> > 
> > I guess I need to tell the database that if no value is entered, it
> > should delete "member.current_college_student" from its records.  
> 
> I am not sure what your problem is here. 
> 
> Are you talking about the fact that if the checkbox isn't checked, that
> the browser doesn't send *any* information about the field
> 'current_college_student'?
> 
> If so, you can check for it's absense with the DTML construct ' current_college_student> .. . Or you could add a hidden form
> field *before* the checkbox which defines a default, empty value, like so:
> 
>   
> 
> You can of course put any other value in there. The browser will always
> pass this back to Zope, and then you can test for the value of
> current_college_student.
> 
> Hope this helps!!


That doesn't quite do it.  Someone joins the network and is taken to a mandatory form 
where they fill in eight pages of information about themself.  They submit the 
information.  Everything's cool up to this point.  

A year later, they graduate from school and become a farmer.  They still want to be a 
member of the network.  They log back in, re-access their form information, deselect 
the checkbox for "student" and select the "professional" checkbox.  I can't get my 
zportal ZODB to recognize the deselection.  You'll notice in the code above that when 
the box is checked and submitted, the value "member._" is submitted to the 
database.  To display a checked box when the page is re-loaded, I use checked within the  tag.  

Now, I want to tell the database that if a form page is re-submitted and a boolean box 
that was checked is no longer checked, it's previous value should be deleted from that 
user's record.  

Can anybody shed any light on the matter?  

Robin Lamb

811 Oak St.
San Francisco, CA
94117
-USA-
phone: 415.241.0441
--
[EMAIL PROTECTED] is brought to you by 
the Stanford Alumni Association and Critical Path.

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




Re: [Zope] LocalFS question

2000-12-12 Thread Andy McKay

They are real objects, just in a different sense. The easiest way to figure
it out is too look at the dtml that comes in the LocalFS source. For example
to get a listing of LocalFS folder instead of:

objectIds() try fileItems()

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Leichtman, David J" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 11, 2000 2:54 PM
Subject: [Zope] LocalFS question



How do you access an individual object in a LocalFS? By that, I mean:

If I wanted the last_mod time of any Zope object, I could say .
However, if you try to do the same thing with a LocalFS object, i.e.
,
you get the error NameError: localfs_subobject
This leads me to believe that LocalFS subobjects are not really objects. But
then how does the Zope management interface deal with them, and how can I?

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

2000-12-12 Thread Jonothan Farr

See the how-to:
http://www.zope.org/Members/jfarr/Products/LocalFS/HowTo/DTML_with_LocalFS
--jfarr

- Original Message -
From: "Leichtman, David J" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 11, 2000 2:54 PM
Subject: [Zope] LocalFS question


>
> How do you access an individual object in a LocalFS? By that, I mean:
>
> If I wanted the last_mod time of any Zope object, I could say  "object.subobject.bobobase_modification_time">.
> However, if you try to do the same thing with a LocalFS object, i.e.
> ,
> you get the error NameError: localfs_subobject
> This leads me to believe that LocalFS subobjects are not really objects. But
> then how does the Zope management interface deal with them, and how can I?
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] HTTPServer.py patch

2000-12-12 Thread Evan Simpson

From: Oleg Broytmann <[EMAIL PROTECTED]>
>With the recent patch I have problems connecting directly to ZServer
> (port 8080) - Zope reported error 500 and restarted itself.
>Connecting through Apache+mod_pcgi2 works. I reverted the patch
> (restored HTTPServer.py from backup) and can connect to ZServer again.
>Something wrong with te patch!

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?

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] Does Zope 2.3 Alpha run on Python 2.0?

2000-12-12 Thread jimbo

>> Just a thought.  About a month ago this would have sounded far 
>> fetched, but now that Guido is in the house, when might we expect 
>> the Zope Python version to change from 1.5.2 to 2.x?  Imho for 
>> the book the Python version for Zope should at least be 2.xa1> 
>>  It seems to me that by the time the book is finalized your team 
>> could deliver a basic core Zope 2.x Python 2.x release.  My 
>> understanding is that its not that big of an issue.  I'm sure it 
>> would just make the marketing team giddy.


>It's probably a little more an issue than you think. Zope is a 

 I would like to get a clarifaction on this.  It seems best to provide support for 
Python 2.x and provide a patch for 1.5.2 if need be.

>pretty large codebase and if nothing else, introducing unicode 

Seem to me a 2.3 designation gives you some leeway to provide 2 versions
release perhaps 2 versions of Zope 2.3. One that incorporates work
already done by members in the community.
See links below for Python 2.x support and Zope 2.2.4.

http://www.zope.org/Members/stevea/unicode_for_224.patch.gz
http://www.zope.org/Members/htrd/wstring

Don't be like a certain company that stopped dos at 6.0.
Or did they?  The point is probably at some point in the future
Zope will become the Windows of Python.  Leaving us with
 Windows3000, Linux3000, and Python3000(W/Zope interface:-)
Go Guido, Go Guido, it's your birthday!  Long live the command line interface!

>can affect a great many things. Its the sort of thing that needs 
>to be done with a lot of thinking up front. Some work is being 
>done on that, (esp. by Toby Dickenson) but 2.3 won't be the 
>release where Python 2.0 is officially supported / required.
>Brian Lloyd[EMAIL PROTECTED]
>Software Engineer  540.371.6909  
>Digital Creations  http://www.digicool.com 
http://lists.zope.org/pipermail/zope/2000-December/036990.html

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




Re: [Zope] LocalFS question

2000-12-12 Thread Aleksander Salwa

On Mon, 11 Dec 2000, Leichtman, David J wrote:
> How do you access an individual object in a LocalFS? By that, I mean:
[...]
> ,
> you get the error NameError: localfs_subobject

http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] append() and spaces

2000-12-12 Thread Dieter Maurer

Sven Hohage writes:
 > 
 > ('car?bought=1&amount=%s')%(Amount)
 >  yields
 > spaces between the values ->[1, 3, 4]
You may use:
   ('car?bought=1&amount=%s')%(_.string.join(Amount,''))


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] updating the catalog - successfully!

2000-12-12 Thread Dieter Maurer

josh on writes:
 > ... catalog reindexing problem ...
 > 
 > 
 > ... did not work ...

 > The good news is that I have seemingly found a way to update my catalog by
 > making a method of my zclass called update_dtml which I call when change the
 > data of an instance. the method contains only one thing (of course):
 > 
 > 
 > 
 > I call it from the dtml that manipulates the data of the instance (from a
 > file in the same directory as the instances):
 > 
 > 
 > 
 > 
 > ... does work ... Why?

I guess:
   
   
   
will work, too.

In the case, that does not work, you call "reindex_object"
for the object for which the DTML code was called (probably a folder).
This is not the same as the object changed
"_[userid]". Otherwise, you would have been able to
omit this "_[userid]".

In the working case, you call "reindex_object" for each
of your class instances. This includes obviously the
one that has been changed.


Dieter

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




Re: [Zope] HTML formatting from a text field

2000-12-12 Thread Dieter Maurer

Ausum writes:
 > 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".
 > 
 > Does anyone know how to do it? I've tried to find out the technology
 > behind that page, but guess I didn't get too far.
Did you look at the ZWiki product (--> zope.org)?



Dieter

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




Re: [Zope] Zope (after) install problems

2000-12-12 Thread Dieter Maurer

Kai Hofmann writes:
 > I installed Zope 2.2.2 with Python 1.6 (incl. threads) under Solaris 2.6 
 > (Sparc) without problems at first.
 > 
 > When I access the Webserver at Port 4081 I got the welcome message :)
 > But when clicking on "QuickStart" or "management screen" I got only errors:
 > 
 > Error Type: ParserError
 > Error Value: arglist: internal error; nch != i 
This seems strange.

Maybe Python 1.6 and Zope 2.2.2 do not fit well together.



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] Help documents brokenboundary="------------4F1A12744651A5FFB3D22FAE"

2000-12-12 Thread Dieter Maurer

Olaf Zanger writes:
 > Dies ist eine mehrteilige Nachricht im MIME-Format.
 > --4F1A12744651A5FFB3D22FAE
 > Content-Type: text/plain; charset=us-ascii
 > Content-Transfer-Encoding: 7bit
Please do not post MIME messages!

 > i have quite some products imported, they also work properly, but the
 > help document is broken.
The products must register help during their initialization

def initialize(context):

context.registerHelp()
context.registerHelpTitle('Zope Help')

and they must have a "help" subfolder.


Look at "Products/ZCatalog" for an example.


Dieter

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




Re: [Zope] API and namespace

2000-12-12 Thread Dieter Maurer

Alexander DePauli writes:
 > ... problem creating folder with subfolder ...
 > <--! add a new folder -->
 >  (id=REQUEST['new_folderID'], title=REQUEST['new_folderID'])">
 > [..]
 > 
 >  ...tried  new_folderID)"> as well...
I would expect, you get a KeyError. Right?

tries to access the object
   with the name "new_folderID".
   But the new folder was created with a name
   "REQUEST['new_folderID']".

Try: 


Dieter

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




Re: [Zope] LocalFS question

2000-12-12 Thread Dieter Maurer

Leichtman, David J writes:
 > However, if you try to do the same thing with a LocalFS object, i.e.
 > ,
 > you get the error NameError: localfs_subobject
 > This leads me to believe that LocalFS subobjects are not really objects. But
 > then how does the Zope management interface deal with them, and how can I?
They are real objects but they behave differently from the standard
Zope objects.

You can use
   
 
   

At least the "Local File System" object does not expose
its children via "getattr" (which is required for the
usual "." operator to work) but only via "[...]".

This probably is a bug.


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: [Zope-dev] Gadfly and Zope 2.2.4

2000-12-12 Thread Dieter Maurer

Josh Zeidner writes:
 >   I tried to add a Gadfly Database connection to my Zope installation 
 > without changing any of the parameters and got an error message saying: "The 
 > parameter, connection, was omitted from the request." .  What, if anything, 
 > am I doing wrong?
You did not "Select a data source".
You must click at one of the entries in this selection box.


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] New version of book uploaded

2000-12-12 Thread The Doctor What

Is there a way to DL the whole book for offline reading?  It doesn't
wget or curl very well (due to zope playing aquisition games)...

An example is one page links to an image:
http://www.zope.org/Members/michel/ZB/SimpleExamples.html/Figures/5-7.png

Works in zopenot on Linux's ext2

Ciao!

-- 
Cthulhu for President!
(If you're tired of choosing the lesser of two evils.)

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 )




Re: [Zope] LocalFS question

2000-12-12 Thread Jonothan Farr

> At least the "Local File System" object does not expose
> its children via "getattr" (which is required for the
> usual "." operator to work) but only via "[...]".
>
> This probably is a bug.


No this is by design, as explained in the how-to. Most operating systems allow
period (.) characters in filenames, so how would the dtml expression
"LocalFS.some.dir.some.file.plus.extension" be translated to a file system path?

--jfarr



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

[EMAIL PROTECTED] wrote:

> Hi everyone, 
> 
>  I am using Apache+Zserver+SSL (see How-to from TJ. Mannos), and it works 
>  fine. The thing is that I have to set manually a SiteRoot Object in a 
>  ssl Folder to make all this work and I would like to do it dynamically! 
>  So, when I create my SiteRoot object and enter 
>  "https://www.fightclub.com" as base, the page also displays a comment 
>  saying: 
>  "If Base is not set, the SiteRoot will first attempt to acquire 
>  SiteRootBASE and then search the REQUEST for it. The same holds for Path 
>  and SiteRootPATH." 
> 
>  So I was thinking that maybe I could set SiteRootBASE dynamically and 
>  make it work the same. Unfortunately, I made some attempts and it does 
>  not seem to work. 
> 
>  Does anybody have any idea of how to make it work? 

I do this in the access rule.





~ethan




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




[Zope] ZWiki hierarchy seems to be broken

2000-12-12 Thread Timothy Grant

Hi,

I just put up a ZWiki for some internal development projects we are running.
Everything went beautifully smoothly. I created it using the hierarchy2
property.

However, I seem to have done something somewhere that is preventing the
hierarchy headers from showing up on many of the pages. It shows on the
first page, and it still shows on all the help pages, but it has disappeared
from the pages that I have been adding (They were there for a while).

How do I put the hierarchy headers back?

Thanks


-- 
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:  14 days  4:02 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 )




Re: [Zope] HTML formatting from a text field

2000-12-12 Thread Ausum

Yes I did, but I guess it doesn't work for 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.

Has anyone tried to parse HTML code to Zope, from a WYSIWYG-style java
applet text field?


Ausum



Dieter Maurer wrote:
> 
> Ausum writes:
>  > 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".
>  >
>  > Does anyone know how to do it? I've tried to find out the technology
>  > behind that page, but guess I didn't get too far.
> Did you look at the ZWiki product (--> zope.org)?
> 
> Dieter
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

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




Re: [Zope] PIL problem

2000-12-12 Thread Jason Byron


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

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

I am sorry, it can seem stupid, but what do you mean by "access" rule?
Thanx, jeremie



-Original Message-
From: emf <[EMAIL PROTECTED]>
Sent: 12/12/00 04:38 PM
To:  [EMAIL PROTECTED]
Cc:  [EMAIL PROTECTED]
Subject: Re: [Zope] SiteAccess, SSL + SiteRootBASE

[EMAIL PROTECTED] wrote:

> Hi everyone, 
> 
>  I am using Apache+Zserver+SSL (see How-to from TJ. Mannos), and it works 
>  fine. The thing is that I have to set manually a SiteRoot Object in a 
>  ssl Folder to make all this work and I would like to do it dynamically! 
>  So, when I create my SiteRoot object and enter 
>  "https://www.fightclub.com" as base, the page also displays a comment 
>  saying: 
>  "If Base is not set, the SiteRoot will first attempt to acquire 
>  SiteRootBASE and then search the REQUEST for it. The same holds for Path 
>  and SiteRootPATH." 
> 
>  So I was thinking that maybe I could set SiteRootBASE dynamically and 
>  make it work the same. Unfortunately, I made some attempts and it does 
>  not seem to work. 
> 
>  Does anybody have any idea of how to make it work? 

I do this in the access rule.





~ethan




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





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