[Zope-dev] zIRCon is now IRCGate

2000-12-12 Thread Carlos Neves

Since Ty Sarna pointed out that there is another thingy out there labeled as
Zircon, I have changed the products name to the original project ID, IRCGate.

Yes, I know, I should have checked. (oops, I did it again ;) )

Thank you, Ty Sarna, and my apologies to anyone who already got zIRCon.

 -- 
"Kill processes, not people."
- Larry Cohen

Carlos Neves
[EMAIL PROTECTED]

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




Re: [Zope-dev] Pending bugs in collector - how do I send this patch?

2000-12-12 Thread Martijn Pieters

On Mon, Dec 11, 2000 at 03:16:51PM -0500, Brad Clements wrote:
 I have found a bug in ZSQL methods that is describe by this collector 
 item:
 
 http://classic.zope.org:8080/Collector/718/view
 
 This item was posted over a year ago! The bug is still in the program, so 
 I'm guessing that DC folks are too busy to get to this.

Hi Brad,

That looks like a damn good catch! The best thing you can do is create a
new Collector entry and just say that this is a fix to collector item 718.
This way your fix will not be overlooked so easily.

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

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




[Zope-dev] Converters.py field2date() and :ignore_empty

2000-12-12 Thread Brad Clements

If I have ignore_empty set in a variable name of type date, field2date() 
fails if the returned value is truly empty.

I think field2date() should return None rather than trying to call DateTime 
with an empty string.

I keep making this patch to each Zope release, but would like to talk 
about a more permanant and "correct" solution. What do others think?



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

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




[Zope-dev] ZPatterns: persistant objects hold DataSkin-Items - KeyError: _v_dm_

2000-12-12 Thread Ulrich Eck

hi out there,

i use zpatterns/specialists for a Network-Documentation Tool.

I'm writing a Product which controls the relations between specialists
and manages multible actions (edit/new/delete) for ZPatterns DataSkinObjects
(DSO).

I have a Product-Instance of ZTWM (ZTransactionWorkflowManager) in my
application root which is a Folder by itself and holds as folder-objects its
'Transactions' (in this case a Transaction starts at the first edit-action
and lasts
til the last submit of a form with valid entries - e.g finish transaction.)

It behaves like a Wizard (PTK) with next/back/cancel/finish buttons and
reads
out the DataSkinPropertysheet for creating the edit/new forms on the fly.

One can also define relations between the specialists an they are used to
edit
Foreign Keys.

small painting here:

\application-root
--\Person(specialist for persons)
--\Komponent (specialist for komponents)
--\ZTWM(my TransactionWorkflowMangager - Folder)
 \1(first transaction -Folder)
---\1 (first transaction object - Folder)
| ds_object (attribute which references the DSO)
| more info on the current Transaction object
---\2 (second Transaction object)
| ds_object (attribute which references the DSO)
| more info on the current Transaction object
\2 (second Transaction)
...

so far about how it should work  ..

For each TransactionObject (TO) I save the Object I retrieved with
"specialist.getItem(id) == DataSkinObject(DSO)"
as attribute "ds_object" to the TransactionObject.

After I restarted Zope and want to replay/finish a transaction,

i get an KeyError, Value _v_dm_

the prefix _v_ stands for not pickeable (afaik)
dm for datamanager ?!?

ok .. i put a TO in the Transaction, get the actual DSO,
call the transactionmanagers editor function and a form with correct values
is displayed,
 i can  edit this form and call the DSO manage_changeProperties method from
the
transactionmanager.

when i don't finish a transaction and restart zope i still have my
transactions with proper
values saved in my TransactionManager - except the property "ds_object" wich
was assigned
to the DSO at TO-creation

when i try to set/get an attribute i get the KeyError of  "_v_dm " ...

I can deal arround that if i reget the DSO from the specialist in every
function which deals with DSO's.

is there a better way to

a) tell my TransactionManager that my attribute "ds_object" is not pickeable
(e.g. call it  _v_ds_object)
 and how to know if zope is restarted ?!?!?
or
b) store this object persistantly in my TO without showing it in the
folder-structure but behave like a DSO
 set/get attributes through Skinscripts

hope that i described clearly enough where my problem is ...

thanks for your reply

Ulrich Eck
net-labs


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




[Zope-dev] Python 2 (Zope Unicode) support for 2.2.4

2000-12-12 Thread Steve Alexander

Hi Folks,

I've modified Toby Dickenson's patch to let Zope work with Python 2 so
that it patches against Zope 2.2.4.

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


Toby's page about using unicode and Python 2 with Zope is here:

  http://www.zope.org/Members/htrd/wstring

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

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




[Zope-dev] [ZPatterns] DataSkin object ownership

2000-12-12 Thread BS

Do DataSkins have ownership? I want to give multiple users the ability to
add objects to a rack and only allow the 'owner' to view/edit the object.
When a user adds a DataSkin to a rack does he get ownership of the object?
I can't seem to get the ownership information for these objects. Is there a
way to do this?

BTW - I'm talking about virtual object that totally live in MySQL.

Thanks,
-Ben


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




Re: [Zope-dev] [ZPatterns] DataSkin object ownership

2000-12-12 Thread Phillip J. Eby

At 08:04 PM 12/12/00 -0500, BS wrote:
Do DataSkins have ownership? I want to give multiple users the ability to
add objects to a rack and only allow the 'owner' to view/edit the object.
When a user adds a DataSkin to a rack does he get ownership of the object?
I can't seem to get the ownership information for these objects. Is there a
way to do this?

DataSkins stored in Racks do not participate in the Zope ownership
mechanism, nor the creation of the 'Owner' role.  This is because they are
not being stored via the normal ObjectManager protocols.  If you want this
behavior, you'll need to use Folders w/Customizer support, which let you
use most of DataSkins' dynamic features with "almost ordinary" Zope objects.

BTW - I'm talking about virtual object that totally live in MySQL.

Folders w/Customizer Support require the DataSkins' primary storage to be
in the ZODB.



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




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

dtml- call "manage_addFolder (NewFolderName)"
 
dtml-with "_.getitem(NewFolderName)"
   dtml- call "manage_addProperty (ID,...)"
   dtml- call "manage_addDocument (ID,...)"
/dtml-with


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 
   dtml-with "_.getitem('NewFolder')" 
   dtml-var "_.getitem('NewFolder',0)"

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

But if I do an additional 
   dtml-in objectItems
id: dtml-var sequence-key,
type: dtml-var meta_type
   /dtml-in
to list the objects of the actual namespace (placed *after* the above
dtml-with.., 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 inusing 
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(Brokenproduct 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] 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:

dtml-with "manage_addFolder ('Test1')"
  dtml-let test1Object="_.getitem(Test1')"
dtml-with "test1Object.manage_addFolder ('Test2')"
/dtml-with
  /dtml-let
/dtml-with

This creates Test2 in Test1.

Ivan



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

 dtml- call "manage_addFolder (NewFolderName)"

 dtml-with "_.getitem(NewFolderName)"
dtml- call "manage_addProperty (ID,...)"
dtml- call "manage_addDocument (ID,...)"
 /dtml-with

 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 inusing 
  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(Brokenproduct 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 = dtml-sqlvar username
type=string"
   c) an SQL method "check_user" with parameters "username" and "password",
which does a "select username from usertable where username = dtml-sqlvar
username type=string and password = dtml-sqlvar password type=string"
   d) an SQL method "get_roles" with a paramter "username" that does "select
groupname from group_members where username = dtml-sqlvar username
type=string" (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:

dtml-in "HDB_check_user(username=username)"
  dtml-if "_['sequence-item'].username == username"
dtml-return "_.int('1')"
  /dtml-if
/dtml-in

dtml-return "_.int('0')"

   b) xuserAuthenticate should read:

dtml-in "HDB_check_password(username=username,password=password)"
  dtml-if "_['sequence-item'].username == username"
dtml-return "_.int('1')"
  /dtml-if
/dtml-in

dtml-return "_.int('0')"

   c) xuserRoles should read

dtml-call "REQUEST.set('ret', '')"
dtml-in "HDB_get_roles(username=username)"
  dtml-call "REQUEST.set('ret', ret+' '+groupname)"
/dtml-in

dtml-return ret


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  

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:

dtml-var standard_html_header

dtml- call "manage_addFolder('my_folder2')"
dtml-with "_.getitem('my_folder2')"
   dtml-call "manage_addDocument('hhh')"
   dtml-call "manage_addProperty(id='bestand', value='3', type='int')"
/dtml-with

dtml-var standard_html_footer

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
whenI 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 inusing 
  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(Brokenproduct 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 understandthe exact moment the error 
occurs:

If you 
correctly havetheZODBCDA 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).
thengo 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
  whenI 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 inusing 
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(Brokenproduct 
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 )




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] 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 understandthe exact moment the error 
occurs:

If you 
correctly havetheZODBCDA 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).
thengo 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
  whenI 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 inusing 
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(Brokenproduct 
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,
 
  input type="checkbox" name="current_college_student"
dtml-if" member.current_college_student" 
  checked
/dtml-if
 value="member.current_college_student"
  bCurrent College Student/b
  
  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 'dtml-unless
 current_college_student .. /dtml-unless. Or you could add a hidden form
 field *before* the checkbox which defines a default, empty value, like so:
 
   input type="hidden" name="current_college_student:default" value=""
 
 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 dtml-if 
"member.__"checked/dtml-if within the inpupt type=boolean... 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 dtml-var
"object.subobject.bobobase_modification_time".
However, if you try to do the same thing with a LocalFS object, i.e.
dtml-var "localfs_object.localfs_subobject.bobobase_modification_time",
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 )




[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:
[...]
 dtml-var "localfs_object.localfs_subobject.bobobase_modification_time",
 you get the error NameError: localfs_subobject

dtml-var "localFSinstance['directory']['subdir']['file'] 


[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] append() and spaces

2000-12-12 Thread Dieter Maurer

Sven Hohage writes:
  
  ('car?bought=1amount=%s')%(Amount)
   yields
  spaces between the values -[1, 3, 4]
You may use:
   ('car?bought=1amount=%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] 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] 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.
  dtml-var "localfs_object.localfs_subobject.bobobase_modification_time",
  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
   dtml-with "localfs_object['localfs_subobject']"
 dtml-var bobobase_modification_time
   /dtml-with

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.

dtml-if "condition"
dtml-call "REQUEST.set('SiteRootBASE','some-value')"
/dtml-if

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

dtml-if "condition"
dtml-call "REQUEST.set('SiteRootBASE','some-value')"
/dtml-if

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