[Zope] ZMysqlDA

2000-05-22 Thread Brenton Bills


Hi people, I am trying to get ZMysqlDA running on a 4.0 Release BSD
machine, I have compiled this fine before on Linux but no luck on bsd. I
am new to Bsd so if this is a bsd problem I appolagise in advance, but the
ZMysqlda documentation is not clear on what libs are required. 

Python 1.5.2 manually compiled and installed (not part from ports). 

cc -fpic  -I/usr/local/include/mysql -I/usr/include/mysql -O -pipe
-D_THREAD_SAFE -I/usr/local/include/python1.5
-I/usr/local/include/python1.5 -DHAVE_CONFIG_H -c ./MySQLmodule.c
./MySQLmodule.c: In function `pythonify_row':
./MySQLmodule.c:238: warning: assignment from incompatible pointer type
./MySQLmodule.c: In function `pythonify_res_fields':
./MySQLmodule.c:384: invalid lvalue in unary `&'
./MySQLmodule.c: In function `STH_fetchdict':
./MySQLmodule.c:1125: invalid lvalue in unary `&'
./MySQLmodule.c:1147: invalid lvalue in unary `&'
*** Error code 1

Brenton Bills.


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

2000-05-22 Thread John Morton

After a few experiments, I've observed a couple of things about deleting
folder-like objects:

1) You can delete them with the same practiced easy as any other object,
along with everything in it. No 'Are you sure you want to shoot yourself
in the foot' dialogs, or anything. (How hard to implement with
manage_beforeDelete?)

2) Deleting a folder effectively removes everything under it (well, you
can't navigate to them, AFAIK), but it doesn't invoke the
manage_beforeDelete methods of it's decendants. Any reason for this, or
should I proceed straight to the bug collector?

John.



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




[Zope] Zope + Apache + Mailman

2000-05-22 Thread pehr anderson

Dear Mailmen,

I've been studying this all weekend and finally, *finally* 
understood enough to get it to work.

I wanted to proxypass both sites into zope,
however I needed access to CGI scripts and images
to run mailman.  I had to find the appropriate
rewrite rule to allow this to work.

The zope Zserver serves pages on port 8080.
Apache has the ability to proxy this on port 80
either through "ProxyPass x y" which gives you very
little control or through "RewriteRule x y [proxy]"
which gives you tremendous control.

In zope I have two SiteAcess objects.
One at the root, says "http://morseall.org", "/"
and the other inside /osm says "http://osm.cx", "/"


This worked with the following configuration:
Redhat Linux 6.2
apache-1.3.12-2.i386.rpm
Zope-2.1.6-1.i386.rpm
Zope-zserver-2.1.6-1.i386.rpm


# added to /etc/httpd/conf/httpd.conf

ScriptAlias /mailman/   "/home/mailman/cgi-bin/"
Alias   /pipermail/ "/home/mailman/archives/public/"



ServerName osm.cx
RewriteEngine On
RewriteOptions 'inherit'
RewriteRule ^/icons(.*) - [last]
RewriteRule ^/mailman(.*)   - [last]
RewriteRule ^/pipermail(.*) - [last]
RewriteRule ^/(.*)$ http://localhost:8080/osm/$1 [proxy]
ProxyPassReverse /  http://localhost:8080/osm/
ProxyPass/p_http://localhost:8080/p_
ProxyPass/misc_ http://localhost:8080/misc_




ServerName morseall.org
RewriteEngine On
RewriteOptions 'inherit'
RewriteRule ^/icons(.*) - [last]
RewriteRule ^/mailman(.*)   - [last]
RewriteRule ^/pipermail(.*) - [last]
RewriteRule ^/(.*)$ http://localhost:8080/$1 [proxy]
ProxyPassReverse /  http://localhost:8080/


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

2000-05-22 Thread Chris Withers

John Morton wrote:
> 1) You can delete them with the same practiced easy as any other object,
> along with everything in it. No 'Are you sure you want to shoot yourself
> in the foot' dialogs, or anything. (How hard to implement with
> manage_beforeDelete?)

Remember that Zope has an 'Undo' button... ;-)
(and in fact, a whole history tab in the CVS version, I think...)

> 2) Deleting a folder effectively removes everything under it (well, you
> can't navigate to them, AFAIK), but it doesn't invoke the
> manage_beforeDelete methods of it's decendants. Any reason for this, or
> should I proceed straight to the bug collector?

I'm pretty sure they are deleted, but not calling manage_beforeDelete
seems stupid to me. I presume this is the reason that CatalogAware
objects that get deleted like this don't remove themselves from the
catalog (leaving a nasty mess behind them...)

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] FYI: Documentation

2000-05-22 Thread Chris Withers

Paul Everitt wrote:
> 1) Can somebody out there _please_ send in a graphic to replace the help
> button?

What's wrong with using the button that's there now? I don't see the
point of adding to the bandwidth burden by replacing it with a graphic
(some of us have to work through slow dialup sometimes... :( )

I'd prefer to see it as a manage-like tab, top-right, with a blue
question mark or 'Help' in it. 
That'd be all text and a coupla tiny bitmaps which are in use anyway :-)

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] ZMysqlDA

2000-05-22 Thread Andrew Kenneth Milton

+[ Brenton Bills ]-
| 
| Hi people, I am trying to get ZMysqlDA running on a 4.0 Release BSD
| machine, I have compiled this fine before on Linux but no luck on bsd. I
| am new to Bsd so if this is a bsd problem I appolagise in advance, but the
| ZMysqlda documentation is not clear on what libs are required. 
| 
| Python 1.5.2 manually compiled and installed (not part from ports). 

You need to edit the src/Setup to change the locations for
the mysql includes and libraries:

-I/usr/local/include/mysql
-L/usr/local/lib/mysql

so you get a line that looks like:-

MySQLmodule MySQLmodule.c -I/usr/local/mysql/include -I/usr/include/mysql -L/usr
/local/mysql/lib -L/usr/lib/mysql -lmysqlclient -lm

Works for me d8)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] ZMysqlDA

2000-05-22 Thread Phil Harris

Brenton,

What version of MySQL are you using?

Later versions have changed slightly and you need to edit MySQLmodule.c to
compensate.

I think if you remove the '&' in the lines mentioned in the error message it
should work ok, well it did for me.

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Brenton Bills" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 22, 2000 8:06 AM
Subject: [Zope] ZMysqlDA


>
> Hi people, I am trying to get ZMysqlDA running on a 4.0 Release BSD
> machine, I have compiled this fine before on Linux but no luck on bsd. I
> am new to Bsd so if this is a bsd problem I appolagise in advance, but the
> ZMysqlda documentation is not clear on what libs are required.
>
> Python 1.5.2 manually compiled and installed (not part from ports).
>
> cc -fpic  -I/usr/local/include/mysql -I/usr/include/mysql -O -pipe
> -D_THREAD_SAFE -I/usr/local/include/python1.5
> -I/usr/local/include/python1.5 -DHAVE_CONFIG_H -c ./MySQLmodule.c
> ./MySQLmodule.c: In function `pythonify_row':
> ./MySQLmodule.c:238: warning: assignment from incompatible pointer type
> ./MySQLmodule.c: In function `pythonify_res_fields':
> ./MySQLmodule.c:384: invalid lvalue in unary `&'
> ./MySQLmodule.c: In function `STH_fetchdict':
> ./MySQLmodule.c:1125: invalid lvalue in unary `&'
> ./MySQLmodule.c:1147: invalid lvalue in unary `&'
> *** Error code 1
>
> Brenton Bills.
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Netscape Image Problems

2000-05-22 Thread Bill Anderson

[EMAIL PROTECTED] wrote:
> 
> I just noticed something strange..it is only doing it when you are inside
> a Portal (ptk)...very strange..


Are the URLs to the images relative or absolute?

I am wondering if you are seeing a combination of aquisition and
relative image URLs. ISTR something along thes elines a long time ago.
I use absolute urls for pretty much all images, but the reason was for
caching.

Might help.

Bill

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




Re: [Zope] Deleting folder-like objects.

2000-05-22 Thread Bill Anderson

Chris Withers wrote:
> 
> John Morton wrote:
> > 1) You can delete them with the same practiced easy as any other object,
> > along with everything in it. No 'Are you sure you want to shoot yourself
> > in the foot' dialogs, or anything. (How hard to implement with
> > manage_beforeDelete?)
> 
> Remember that Zope has an 'Undo' button... ;-)
> (and in fact, a whole history tab in the CVS version, I think...)

I don't think the History tab is for folders. It gets
nasty-complicated. Really fast.
 
> > 2) Deleting a folder effectively removes everything under it (well, you
> > can't navigate to them, AFAIK), but it doesn't invoke the
> > manage_beforeDelete methods of it's decendants. Any reason for this, or
> > should I proceed straight to the bug collector?
> 
> I'm pretty sure they are deleted, but not calling manage_beforeDelete
> seems stupid to me. I presume this is the reason that CatalogAware
> objects that get deleted like this don't remove themselves from the
> catalog (leaving a nasty mess behind them...)

Yeah, that can be annoying.

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

2000-05-22 Thread Chris Withers

Bill Anderson wrote:
> > > 2) Deleting a folder effectively removes everything under it (well, you

[snip]

> > catalog (leaving a nasty mess behind them...)
> 
> Yeah, that can be annoying.

Is there is any reason for it?

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] Zope log rotation

2000-05-22 Thread Duncan Booth

> Dear All:
> 
> Quick question about Zope admin.
> Can zope automatically rotate its access log? Thanks.

Edit z2.py. Change the line:

lg = logger.file_logger(LOG_PATH)

to:

lg = logger.rotating_file_logger(LOG_PATH, freq='daily', 
maxsize=400)

You can use 'daily', 'weekly' or 'monthly' for the frequency of 
rotation.

-- 
Duncan Booth [EMAIL PROTECTED]
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
http://dales.rmplc.co.uk/Duncan

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] SQLSession users - who's using what DB?

2000-05-22 Thread Anthony Baxter


A short survey for SQLSession users out there:

  What database are you using for SQLSession?

  If you're using Gadfly, are you using the base64oneline encoding,
  or have you patched your gadfly install?

I plan to stop supporting anything but the base64 encoding method 
in the next release (0.2.9). 

Also - how many people would be upset if the default table schema
was changed? The default schema uses names that conflict with some
databases' keywords.

Anthony

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




Re: [Zope] Zope Pgsql 7.0/SQL Schema HeLp!

2000-05-22 Thread Richard Moon

Here is a ZSQL Method (called insert_author) which inserts into a 
PostgreSQL table which has a serial column called author_id.

Arguments

surname
search_name
initials
known_name
user_id
notes

Query Template
--
insert into author
(surname,search_name,initials,
known_name,user_id,notes)
values(
'',
'',
'',
'',
'',
'')

select currval('author_author_id_seq')

Note that we don't insert anything into the serial column author_id since 
PostgreSQL puts that in for you.

Here is the schema for that table

CREATE TABLE author ( author_id serial, surname text, search_name text, 
initials text, known_name text, user_id int4, notes text

And here is a snippet from a dtml method which performs the insert and 
retrieves the value of author_id for the row just inserted.


   

Author_id is 

This assumes all the arguments to insert_author (that is surname, user_id 
etc) have already been set up from a form or in some other way.

HTH

Richard


At 23:22 20/05/00 -0400, you wrote:
>This is going to be a long winded questions.
>
>Ok I have been hacking around with Zope and Pgsql for awhile now.
>I am trying to learn both at the same time, not any easy task, I don't
>know SQL that well. I learn by doing ,and this is really fun, kinda like
>a
>digital puzzle of sorts. So any way I set up a database in pgsql to hold
>contact information. This was no small task for me, like I said, I am
>new to SQL.
>I did discover a neat way to use CREATE VIEW foo AS SELECT that is not
>in the book though. Anyway the PRIMARY KEY for the table of names is a
>SERIAL type, all other tables such as phone numbers and addresses use
>REFERENCES to this KEY. The database works quite well, I think I have it
>normalize as much as need be (bare with me I am still learning). Now on
>to Zope
>
>I have Zope all set, and I can run all your standard SELECT, INSERT,
>UPDATE stuff.
>But I have one hitch,  I can't seem to figure out how to make it so an
>end user
>could add a name and email address without knowing about the PKEY
>number. This is no problem for a DBA but I want to make it easy for
>anyone to INSERT and UPDATE records. Did I make a bad design choice in
>use unique numbers to glue all the tables together. Is this an interface
>problem. Am I missing something. I need some help. Can someone point me
>in the right direction please?
>
>Richard
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


Richard Moon
[EMAIL PROTECTED]


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




Re: [Zope] SQLSession users - who's using what DB?

2000-05-22 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article <[EMAIL PROTECTED]>, Anthony Baxter
<[EMAIL PROTECTED]> writes
>
>A short survey for SQLSession users out there:
>
>  What database are you using for SQLSession?

Interbase.

>Also - how many people would be upset if the default table schema
>was changed? The default schema uses names that conflict with some
>databases' keywords.

Good idea!

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

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOShgGbTRdIWzaLpMEQIPnwCeOi2h4b5M+kGyx+fH6sVbVx9zp6QAoI4V
mNRzcbU7p+6NymdcAt0QawB+
=w74T
-END PGP SIGNATURE-

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




[Zope] ZClass acting up?

2000-05-22 Thread Erik Enge

Hi,

I have discovered this extremely irritating "feature" with ZClasses.

Sorry for this long and rather ugly explanation, but I don't know what
the problem is, so it has to be like this:

Add test_product product in Control Panel - Product Management
In test_product:
Add a test_folder zclass with object manager as its base class
In test_folder:
Add test_project zclass with test_folder as its base class

(be sure to enter all factories and press "change")

Now, enter your Zope tree (http://localhost/, for example) and do:

Add a test_folder
In test_folder:
Add a test_project
In test_project:
Add a test_project

The point here being to demonstrate that you can add
recursively test_projects. Which is nice, I love it.. semantics
looking nice and all :-).

Then, go back to the test_product, and in test_project add a Z Class
thats called test_projectteam, make object manager the base class.

And finally, enter the test_folder you created earlier and add a
test_project. Enter this project... now what do you see? Thats right,
your not able to add test_projects recursively any longer, but you can add
project_teams (which doesn't really make me all that happy).

Why is this? I want to be able to structure projects into sub projects
and be able to divide the project teams working on the different
projects. Does anyone know why this happens? And possibly how I can
achieve what I want?

-- 
 Erik Enge

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] how do you iterate over tiny tables?

2000-05-22 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I have a folder full of Tiny Tables.  I would like to go over each
table, and iterate thru their contents.


  
 
  


doesn't do anything.  Clues?

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

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOShmmLTRdIWzaLpMEQK1bgCfZzGV36/mDJUv0cMs+l0aLXIx2eMAoKwF
fFOcpW6t4quJ2qisBnvYU/n4
=hdRX
-END PGP SIGNATURE-

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




Re: [Zope] how do you iterate over tiny tables?

2000-05-22 Thread Geir Bækholt

on Monday, May 22, 2000 Graham Chiu wrote :
[snip]
GC> I have a folder full of Tiny Tables.  I would like to go over each
GC> table, and iterate thru their contents.

GC> 
GC>   
GC>  
GC>   
GC> 

GC> doesn't do anything.  Clues?
[snip]

perhaps (untested)  would work
??


--
Geir Bækholt
web-developer/designer
[EMAIL PROTECTED]
http://www.funcom.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] Deleting folder-like objects.

2000-05-22 Thread Bill Anderson

Chris Withers wrote:
> 
> Bill Anderson wrote:
> > > > 2) Deleting a folder effectively removes everything under it (well, you
> 
> [snip]
> 
> > > catalog (leaving a nasty mess behind them...)
> >
> > Yeah, that can be annoying.
> 
> Is there is any reason for it?
> 
> Chris

None I can think of off hand...

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] ZMySQLDA and dtml-in (bug?)

2000-05-22 Thread Morten W. Petersen

When I use an ZSQL method to fetch data, the manage test tab gives a
result of 14 items. When the same method is used in a dtml-in tag, with
batches of size 10, it only shows the first 10 items, with no "Show next x
missions". It previously showed "Show next 4 missions", but after altering
10 of the columns, only the 10 first objects get shown, with no "Show next
x missions". The ZSQL method always showed 14 objects before and after
alteration.

Basically, it's not faulty dtml scripting, the dtml-in tag only shows the
first 10 items, with no continual, after an alteration of 10 columns in
the SQL table.

This is Zope 2.1.6 on top of RedHat 6.2

-Morten

-
How to reply to email:
  http://home.sol.no/~vidaandr/news/OBSquoting.html (norsk)
  http://home.sol.no/~vidaandr/news/FAQquoting.html (english)

Who is the bigger fool? The fool or the fool who follows him?


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] SQLSession users - who's using what DB?

2000-05-22 Thread Bill Anderson

Anthony Baxter wrote:
> 
> A short survey for SQLSession users out there:
> 
>   What database are you using for SQLSession?

Getting ready, will be using postgres it appears

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Win98 and WEBDAV - you ought to see it if you can

2000-05-22 Thread Wolfgang Strobl

On 22 May 2000, 6:41  Paul Browning wrote:

> Question: If WEBDAV works so well under Win98 does it
> also work just as well under Win2K? Perhaps someone
> who will admit to using Win2K can confirm this? It might
> even motivate me to upgrade from NT .

I'm using Win2000 at work. Opening a webdav folder works, so 
does renaming or moving objects around. Copying from a local 
folder to a remote zope works too. But the reverse direction results 
in a "Error Copying File or Folder: An error occured while copying 
the file. The requested header was not found" sometimes. Copying 
a different file got me "The current operation cannot be completed 
because an unexpected error has occured".

In short, it's too buggy for doing real work.

--
  o  ( [EMAIL PROTECTED] (+49 2241) 14-2394
 /\*   GMD mbH   #include 
   _`\ `_<===  Schloss Birlinghoven, 
__(_)/_(_)___.-._  53754 Sankt Augustin, Germany 

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




[Zope] ZCatalog & SQL Content?

2000-05-22 Thread Oliver Wrede


I was trying to figure out, how to use ZCatalog to index text in databases.

I access articles in the following way:

 http://mysite/23/article


The "23" is used as an Record ID for the ZSQL Query to get the content of
the article from the database. This is done with the SiteAccess product.

How can I use ZCatalog to index all articles?


Oliver




.. Oliver Wrede
.. [EMAIL PROTECTED]

.. Academy of Media Arts, Cologne
.. Peter-Welter-Platz 2 . 50676 Koeln, Germany
.. http://www.khm.de
.. ICQ# 6580315
.. PGP 6.0 Fingerprint:
.. 922C FFA2 9A07 5B8E CB2A  10A2 C370 6A62 2232 196C


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

2000-05-22 Thread Pierre Rougier

>
> > My URL references to Apache
> > example:
> > http://margo.pla.fr/intra/machin.html
> >
> > and I want to use httpd.conf to transform it (only for html and htm
> > files)
> > in
> >
> > http://margo.pla.fr/intra/?machin.html (which is my ZServer)
> >
> > Does someone know the rewrite I sould use regular expression are a
> > mistery for me
>
> does "intra" represent that it should be represented by zserver? if so,
>
> RewriteRule ^/intra/(.*)htm  /intra/?$1htm
> RewriteRule ^/intra/(.*)html /intra/?$1html
>
>

Well, thanks mindlace, it helps, in fact, now, I use the following line:
RewriteRule^(^([^/]*/)*)([^/]*\.html)$  http://newhost:8080$1?$3
(this line should be usefull for those who want to redirect any *.html URL
to your ZServer)

which change the URL like I want. The problem is that it makes a redirect,
and all my relative addresses in the page are changed too (for instance, my
.gif are served by zope too, and I don't want to!)

To be clearer,  what my product do is:

I address Apache, with for instance:
http://margo.ina.fr/intra/index.html

then, Apache change the URL to:
http://margo.ina.fr:8080/intra/?index.html  (8080 is my ZServer port)

my zope product construct a new page with informations from the "intra"
folder, go and search the file ../intra/index.html on the disk, insert it
to the builded page (by reading the file) and serve it.

The problem is that by doing that, as in the HTML pages, paths are
relatives, the redirection change all the relative address to the port 8080
(because the final served URL is on this port), and I want my Images to be
served by apache

(I hope I am clear, but it is hard to explain in an email).
A solution would be to write absolute URL for my images, but I am not
allowed to do it.

so, I try... to use Apache not to redirect, but to go and search the
result of http://margo.ina.fr:8080/intra/?index.html, in a way which would
be transparent to the browser(the printed URL would keep the Apache
one), and I have to say that untill now, I don't manage to do it...

Well. thanks for your attention

Pierre


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




Re: [Zope] how do you iterate over tiny tables?

2000-05-22 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article <[EMAIL PROTECTED]>, Geir BXkholt
<[EMAIL PROTECTED]> writes
>on Monday, May 22, 2000 Graham Chiu wrote :
>[snip]
>GC> I have a folder full of Tiny Tables.  I would like to go over each
>GC> table, and iterate thru their contents.
>
>GC> 
>GC>   
>GC>  
>GC>   
>GC> 
>
>GC> doesn't do anything.  Clues?
>[snip]
>
>perhaps (untested)  would work
>??
>

Nope, but this does for some reason


   

  



I would like to print out the title attribute of the tiny table now, but

  

chokes on title with an attribute error.


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

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOSiNxbTRdIWzaLpMEQKTHwCdFRttEtEvI1ygh4edW2w5uv4gfeYAnRdx
NrC161zJKnJBLSrWZQWAEe7w
=DuhO
-END PGP SIGNATURE-

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




[Zope] Re: Zope log rotation

2000-05-22 Thread Frank Tegtmeyer


> I use logrotate on Linux for this.  Unfortunately I have to use the
> before and after config options to stop zserver before and restart it
> after -- otherwise zserver just keeps appending to the old log.

If you log to a pipe you can use any mechanism you like without bothering 
Zserver. I use multilog from the daemontools package of Daniel J. 
Bernstein (http://cr.yp.to/daemontools.html).

Regards, Frank

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




Re: [Zope] how do you iterate over tiny tables?

2000-05-22 Thread Andrew Kenneth Milton

+[ Graham Chiu ]-
|
| 
| I have a folder full of Tiny Tables.  I would like to go over each
| table, and iterate thru their contents.
| 
| 
|   
|  
|   
| 
| 
| doesn't do anything.  Clues?

I don't think you need the []'s








This works for me. 

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] how do you iterate over tiny tables?

2000-05-22 Thread Chris Withers

Graham Chiu wrote:
> 
>
> 
>   
> 

Is this code in a DTML document or method?

> I would like to print out the title attribute of the tiny table now, but
> 
>   
> 
> chokes on title with an attribute error.

What's wrong with just ?

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] Apache mod_rewrite module...

2000-05-22 Thread Peter Sabaini


you might want to use apaches proxy module in conjunction with
mod_rewrite.

from the docs of mod_rewrite
(http://www.apache.org/docs/mod/mod_rewrite.html): 

"""
proxy|P' (force proxy)
This flag forces the substitution part to be internally
forced as a proxy request and immediately (i.e., rewriting rule
processing stops here) put through the proxy module. [...]
"""

i have something like:

   RewriteRule /(.*) http://stromapp.kleinezeitung.at:8080/$1 [p]


you should make sure you got mod_proxy as it is not compiled in by
default.

have a lot of fun in the voodoo world of mod_rewrite :)

peter.

On Mon, 22 May 2000, Pierre Rougier wrote:

:>
:> > My URL references to Apache
:> > example:
:> > http://margo.pla.fr/intra/machin.html
:> >
:> > and I want to use httpd.conf to transform it (only for html and htm
:> > files)
:> > in
:> >
:> > http://margo.pla.fr/intra/?machin.html (which is my ZServer)
:> >
:> > Does someone know the rewrite I sould use regular expression are a
:> > mistery for me
:>
:> does "intra" represent that it should be represented by zserver? if so,
:>
:> RewriteRule ^/intra/(.*)htm  /intra/?$1htm
:> RewriteRule ^/intra/(.*)html /intra/?$1html
:>
:>
:
:Well, thanks mindlace, it helps, in fact, now, I use the following line:
:RewriteRule^(^([^/]*/)*)([^/]*\.html)$  http://newhost:8080$1?$3
:(this line should be usefull for those who want to redirect any *.html URL
:to your ZServer)
:
:which change the URL like I want. The problem is that it makes a redirect,
:and all my relative addresses in the page are changed too (for instance, my
:.gif are served by zope too, and I don't want to!)
:
:To be clearer,  what my product do is:
:
:I address Apache, with for instance:
:http://margo.ina.fr/intra/index.html
:
:then, Apache change the URL to:
:http://margo.ina.fr:8080/intra/?index.html  (8080 is my ZServer port)
:
:my zope product construct a new page with informations from the "intra"
:folder, go and search the file ../intra/index.html on the disk, insert it
:to the builded page (by reading the file) and serve it.
:
:The problem is that by doing that, as in the HTML pages, paths are
:relatives, the redirection change all the relative address to the port 8080
:(because the final served URL is on this port), and I want my Images to be
:served by apache
:
:(I hope I am clear, but it is hard to explain in an email).
:A solution would be to write absolute URL for my images, but I am not
:allowed to do it.
:
:so, I try... to use Apache not to redirect, but to go and search the
:result of http://margo.ina.fr:8080/intra/?index.html, in a way which would
:be transparent to the browser(the printed URL would keep the Apache
:one), and I have to say that untill now, I don't manage to do it...
:
:Well. thanks for your attention
:
:Pierre
:
:
:___
:Zope maillist  -  [EMAIL PROTECTED]
:http://lists.zope.org/mailman/listinfo/zope
:**   No cross posts or HTML encoding!  **
:(Related lists - 
: http://lists.zope.org/mailman/listinfo/zope-announce
: http://lists.zope.org/mailman/listinfo/zope-dev )
:

-- 

_
peter sabaini, mailto: [EMAIL PROTECTED]
-


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




Re: [Zope] ZClass acting up?

2000-05-22 Thread Kevin Dangoor

- Original Message -
From: "Erik Enge" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 22, 2000 7:36 AM
Subject: [Zope] ZClass acting up?


> Hi,
>
> I have discovered this extremely irritating "feature" with ZClasses.
>
> Sorry for this long and rather ugly explanation, but I don't know what
> the problem is, so it has to be like this:
>
> Add test_product product in Control Panel - Product Management
> In test_product:
> Add a test_folder zclass with object manager as its base class
> In test_folder:
> Add test_project zclass with test_folder as its base class
>
> (be sure to enter all factories and press "change")
>
> Now, enter your Zope tree (http://localhost/, for example) and do:
>
> Add a test_folder
> In test_folder:
> Add a test_project
> In test_project:
> Add a test_project
>
> The point here being to demonstrate that you can add
> recursively test_projects. Which is nice, I love it.. semantics
> looking nice and all :-).
>
> Then, go back to the test_product, and in test_project add a Z Class
> thats called test_projectteam, make object manager the base class.
>
> And finally, enter the test_folder you created earlier and add a
> test_project. Enter this project... now what do you see? Thats right,
> your not able to add test_projects recursively any longer, but you can add
> project_teams (which doesn't really make me all that happy).

This seems like odd behavior to me. Did you check your Subobjects tab to
make sure that the appropriate subobjects are still selected?

(Even so, it doesn't seem like adding a ZClass should change what you can
add there..)

Kevin


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

2000-05-22 Thread Erik Enge

"Kevin Dangoor" <[EMAIL PROTECTED]> writes:

> This seems like odd behavior to me. Did you check your Subobjects tab to
> make sure that the appropriate subobjects are still selected?

There is no way to select a Z Class that is a child of another Z
Class in the subobject list.  Should I be able to do that? Seems to
that this was never possible.  All I can select is test_product, but
that isn't what I want.  Got a clue?  Is it a bug or functionality
that just isn't supposed to be there?

Did you try it at your installation? With the same result? 

(I run Zope 2.1.6 on Linux if anyone wondered :-)

-- 
 Erik Enge


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




Re: [Zope] Broken ZWiki

2000-05-22 Thread Jason Cunliffe


- Original Message - 
> At 15:16 18/05/2000 +0100, Tom Smith wrote:
> >when I install ZWiki Product, the FrontPage, HelpPage etc are all
> >brokendoes it rely on another class being present?
> 
> Tom - Did you get this sorted? I have the same problem. - Neil

...same problem here :-(
-Jason

Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Generate edito form from dtmlDocument : property type

2000-05-22 Thread Jason Spisak

Sin Hang Kin writes:

I wrote a small how-to on form wizards.

http://www.zope.org/Members/jspisak/wizard_keys

> Hello,
> 
> I have the method form_dtmlDocument which generate the data entry form from
> an existing dtmldocument, How can I determine the type of the properties?
> Moreover, if the property is expected as list, how can I convert it into
> multiple input tag?
> 
> CODE : form_dtmlDocument
> 
> 
>  
> 
> 
> : 
>"
> value="" size="50">
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Rgs,
> 
> Kent Sin
> -
> kentsin.weblogs.com
> kentsin.imeme.net
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 

All my best,

Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

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

2000-05-22 Thread mindlace

Graham Chiu wrote:
> 
> Can it be changed so that it remembers both my userid and password, or
> just my password?  I usually remember who I am!

This is certainly true.  Unfortunately, Microsoft has made it so that
anyone with a modicum of javascript skills can read *all* your cookies
(if you use IE on Windows):

http://slashdot.org/article.pl?sid=00/05/11/173257&mode=nested

Now, there may not be hugely deletrious effects resulting from this, but
until cookies are handled in a sane manner, it's probably inappropriate
for us to be putting the password there.

If you're using IE 5 or Mozilla (NS 6) you can always tell it to
remember what you've entered into the password field.

Thanks,

~ethan fremen @ digicool & imeme

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Win98 and WEBDAV - you ought to see it if you can

2000-05-22 Thread Loren Stafford

When I try to "Add a Web Folder" on Win98 I get a 404 error on the resource
_vti_bin both on my own web sites and on www.zope.org. Any idea why or what
is _vti_bin?

-- Loren

- Original Message -
From: Paul Browning <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: May 21, 2000 10:41 PM
Subject: [Zope] Win98 and WEBDAV - you ought to see it if you can


>
> Apologies if this is old news to many. If like me you'd
> played with Web Folders under NT against a Zope server and been
> encouraged but realised than the implementation (at the
> Microsoft end) still had a little way to go .
>
>  if you have access to a Win98 machine point it at
> a Zope server of your choice. I was setting up (why do
> I feel the need to explain ...) a PC at home for my kids
> over the weekend. Win98 was bundled with it. I spotted
> the Web Folders icon on the desktop so I thought I'd
> give a whirl.
>
> It's impressive. Complete integration with the desktop
> and unlike the NT implementation you can create and
> rename folders (I was having to resort to ftp to
> do this), and no stuttering during file transfers. Couldn't
> fault it (though I expect various Linux desktops have been
> in this state for some time).
>
> Question: If WEBDAV works so well under Win98 does it
> also work just as well under Win2K? Perhaps someone
> who will admit to using Win2K can confirm this? It might
> even motivate me to upgrade from NT .
>
> Regards.
>
> Paul
>
> --
>  The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
>  E-mail: [EMAIL PROTECTED]  URL: http://www.bris.ac.uk/
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


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

2000-05-22 Thread Morten W. Petersen

> Did you try it at your installation? With the same result? 
> 

Prøvde det, og det funka. Ser ut til at det er problemer med Debian igjen,
*host,host* ;).

Seriøst, funker helt fint her.

-Morten (=)


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

2000-05-22 Thread Kevin Dangoor

- Original Message -
From: "Erik Enge" <[EMAIL PROTECTED]>
To: "Kevin Dangoor" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, May 22, 2000 12:08 PM
Subject: Re: [Zope] ZClass acting up?


> "Kevin Dangoor" <[EMAIL PROTECTED]> writes:
>
> > This seems like odd behavior to me. Did you check your Subobjects tab to
> > make sure that the appropriate subobjects are still selected?
>
> There is no way to select a Z Class that is a child of another Z
> Class in the subobject list.  Should I be able to do that? Seems to
> that this was never possible.  All I can select is test_product, but
> that isn't what I want.  Got a clue?  Is it a bug or functionality
> that just isn't supposed to be there?

You're correct, there is no way to select a ZClass that is the child of
another in the subobject list. (It is assumed to be available).

I misread your original note. I didn't realize that test_project not only
had test_folder as a base class, but is a class created underneath
test_folder. I've never tried to do that, and it may not be a case that was
considered when they built ZClasses...

Kevin


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

2000-05-22 Thread Jonathan Park

I need to upload a batch of files into the zope database, what would be the
best way
thanks :)
-jon
Have a great day!!!


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

2000-05-22 Thread Chris Withers

Neil Burnett wrote:
> I have downloaded and imported it, restarted Zope and created a new 
> ZWikiWeb object, but all the ZDocuments report that they are broken. 
> My Zope is 2.1.6 and has no other products installed. (I use NT)
   ^
Here's your problem

I could say RTFM but I won't... ;-)

You need to have ZWiki 0.6 or later installed as well as ZWikiWeb:
http://www.zope.org/Members/chrisw/ZWikiWeb/install

cheers,

Chris

PS: ZWiki and ZWikiWeb are two totally seperate products... Simon
Michael deserves all the credit for ZWiki, I just wrapped it up a bit...

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Win98 and WEBDAV - you ought to see it if you can

2000-05-22 Thread Rik Hoekstra



>When I try to "Add a Web Folder" on Win98 I get a 404 error on the resource
>_vti_bin both on my own web sites and on www.zope.org. Any idea why or what
>is _vti_bin?
>


Yes, it is (one of the) the dreaded Frontpage extension(s). Why you would
get it and someone else wouldn't ... I don't know. Perhaps you have MS
products that use FP extensions (Frontpage, Interdev, whatever) installed?

Rik


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




[Zope] Zope tutorial

2000-05-22 Thread Chris Herrnberger

Accessing the tutorial gives me a keyboard error and url not found error.
Cookies are turned on as indicated in the list archive as a possible source for
errors. The examples are all installed with the product and appear in the
management screen. No idea what Im doing wrong. Any insights would be
appreciated. My apologies for such nubie questions in advance.

Best

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] FYI: Latest gem appears in CVS

2000-05-22 Thread Jason Spisak

Paul Everitt wrote:

> > Howdy folks.  As mentioned previously, a gem is ready to appear in CVS:
> > mountable databases.
>

Awe darn.  And I was just going to add to my worthless
MultipleSimultaneouStorage Wiki.  Chant for the Gladiator... Jim, Jim, Jim

Exstaticly, 

Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

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

2000-05-22 Thread Simon Coles

Hi,

New Information Paradigms Ltd (NIP) is proud to announce Free Zope Hosting as
one of the three new Zope hosting options it is now providing. These
options are briefly described below, please see 
http://www.nipltd.net/ for full details.

Free Zope Hosting
-
This hosting option provides an opportunity to explore Zope and evaluate
it in a reliable way. We also hope that people within the Zope community
can publicly host useful Zope applications without any financial burden.


Professional Zope Hosting
-
If you have a commercial Zope application and need somewhere secure and
reliable to host it, then this is the option for you. It is based around
an instance of Zope and a relational database for each customer with
secure access allowing a high degree of customisation.


Enterprise Zope Hosting
---
This option provides a totally custom combination of hardware, software
and consulting that you will need if you intend to use Zope to provide
an enterprise wide solution.


For more information see http://www.nipltd.net/, or email us at 
[EMAIL PROTECTED]



Simon
- My opinions are my own, NIP's opinions are theirs --
Simon J. Coles Email: [EMAIL PROTECTED]
New Information Paradigms  Work Phone: +44 1344 753703
http://www.nipltd.com/ Work Fax:   +44 1344 753742
=== Life is too precious to take seriously ===

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

2000-05-22 Thread Morten W. Petersen

> Prøvde det, og det funka. Ser ut til at det er problemer med Debian igjen,
> *host,host* ;).
> 
> Seriøst, funker helt fint her.
> 
> -Morten (=)
> 

My apologies, seems I forgot to speak in english:

Tried it, and it worked. Looks like a Debian specific problem again,
*cough,cough* ;).

Seriously, worked fine here.

-Morten (=)


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

2000-05-22 Thread Rik Hoekstra





>I need to upload a batch of files into the zope database, what would be the
>best way
>thanks :)



What about ftp? Zope comes with a built-in ftp server. Point your favorite
ftp client to your server. Don't forget to set the right port - see
/z2.py for this. Enter your username/password and you're set.


>Have a great day!!!


Same to you !

Rik


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




RE: [Zope] Netscape Image Problems (LoginManager?)

2000-05-22 Thread john

Well I have determined that it has nothing to do with PTK or Login Manager,
well I think
anyway...

If you hit reload it breaks the images on the root level, if you put your
cursor in the Location,
or URL field and hit enter it reloads fine.

I truly don't understand this problem and it only does it with images, in
Netscape, is this an issue
that everyone is just accepting or is there a fix for it.

j


At 08:51 AM 5/22/00 -0500, you wrote:
>
>I'm not using PTK, but I am using LoginManager. I wonder if it or ZPatterns
>are causing this phenomena.
>
>I use absolute URLs for images, so that's not an issue.
>
>Could LoginManager be denying access to the images on a refresh?
>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
>> [EMAIL PROTECTED]
>> Sent: Monday, May 22, 2000 1:04 AM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [Zope] Netscape Image Problems
>>
>>
>> I just noticed something strange..it is only doing it when
>> you are inside
>> a Portal (ptk)...very strange..
>>
>> j
>>
>>
>> At 12:45 AM 5/22/00 -0500, you wrote:
>> >
>> >I'm experiencing the same thing with Navigator 4.08 on NT4 against Zope
>> >2.1.6 from Debian "potato". Disabling Navigator's cache fixes
>> the problem.
>> >That's not a satisfactory solution, though.
>> >
>> >
>> >On Sun, 21 May 2000 [EMAIL PROTECTED] wrote:
>> >
>> >> I have tried to track down a solution to this problem for a
>> couple of days.
>> >>
>> >> I have Zope 2.1.6 (binary release, python 1.5.2, win32-x86) installed.
>> >>
>> >> Everything is working great, but when I use Netscape 3, 4.X ,
>> every time
>> >> I hit the reload button or come back to the page at a later
>> date all of my
>> >> images won't display. It just shows the classic broken image
>> icon that is
>> >> default for Netscape.
>> >>
>> >> I know that it isn't a Zope issue because the zope.org site works fine!
>> >>
>> >> This is obviously not acceptable to any viewer, could someone
>> please give
>> >> me a work around or a solution to this problem.
>> >>
>> >> Thank you in advance!
>> >>
>> >> j
>> >>
>> >> [EMAIL PROTECTED]
>> >>
>> >>
>> >> ___
>> >> Zope maillist  -  [EMAIL PROTECTED]
>> >> http://lists.zope.org/mailman/listinfo/zope
>> >> **   No cross posts or HTML encoding!  **
>> >> (Related lists -
>> >>  http://lists.zope.org/mailman/listinfo/zope-announce
>> >>  http://lists.zope.org/mailman/listinfo/zope-dev )
>> >>
>> >>
>> >
>>
>>
>> ___
>> Zope maillist  -  [EMAIL PROTECTED]
>> http://lists.zope.org/mailman/listinfo/zope
>> **   No cross posts or HTML encoding!  **
>> (Related lists -
>>  http://lists.zope.org/mailman/listinfo/zope-announce
>>  http://lists.zope.org/mailman/listinfo/zope-dev )
>>
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] RE: Generate edito form from dtmlDocument : property type

2000-05-22 Thread Jason Spisak

Dr. Ross Lazarus writes:

Have you guys seen MetaPublisher?!

http://hive.beehive.de/Beehive/www.beehive.de/Zope/MetaPublisher/

A very strong offering in this direction.

> I think the general idea of automating html generation for data entry
> web forms is a very
> good one, but IMHO it's heroic to even think about doing this sort of
> stuff in dtml!! (This
> discussion probably should be moved to zope-dev?)
> 
> I've got something which generates useful DTML and ZSQL code
> automagically from ZClass BASIC propertysheet contents and so can be
> used to do the grunt work for making zclass add and edit methods. It
> generates ZSQL code which is only tested for the sybaseda but would be
> relatively easy to tweak for other DA's
> 
> It uses a single python external method - have a look at
> http://www.zope.org/Members/rossl/ZClassExtender for an example of
> what's possible...feel free to extend it?!!
> 
> Sin Hang Kin wrote:
> 
> > I have the method form_dtmlDocument which generate the data entry form from
> > an existing dtmldocument, How can I determine the type of the properties?
> > Moreover, if the property is expected as list, how can I convert it into
> > multiple input tag?
> 
> 
> -- 
> 
> Dr Ross Lazarus
> Associate Professor and Sub-Dean for Information Technology
> Faculty of Medicine, Room 126A, A27, University of Sydney,
> Camperdown, NSW 2006, Australia
> Tel: (+61 2) 93514429   Mobile: +61414872482  
> Fax: (+61 2) 93516646   Email: [EMAIL PROTECTED]
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 


Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

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




Re: [Zope] Broken ZWiki

2000-05-22 Thread Evan Simpson

- Original Message -
From: Jason Cunliffe <[EMAIL PROTECTED]>
> - Original Message -
> > At 15:16 18/05/2000 +0100, Tom Smith wrote:
> > >when I install ZWiki Product, the FrontPage, HelpPage etc are all
> > >brokendoes it rely on another class being present?
> >
> > Tom - Did you get this sorted? I have the same problem. - Neil
>
> ...same problem here :-(
> -Jason

Are you folks talking about the ZWiki Product (written in python) or the
ZWikiWeb Product (imported from a zexp file)?  If the latter, it does
require the former.  Otherwise, I have no idea.

Cheers,

Evan @ digicool & 4-am


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




Re: [Zope] Zclass inheritence

2000-05-22 Thread Chris McDonough

OK, I've found that this may be a bug.  You can't subclass ZClasses
across products.  Sorry.  I have no "esimated time to resolution" for
this either.  For now, you should be able to create a subclass of
STX_Document inside the product to which it belongs and work from there.

John Morton wrote:

> ZClass based products already present are webDirectory (my own creation)
> and STX_Document. I create a product and add a vanilla ZClass to it, then
> create another product and add a ZClass. In that dialog I put Catalog
> Aware across, then DTML method, then I drop DTML method. The Base class
> list contains the same selection of bases - no Zclasses among them.
> 
> Same deal under 2.1.4. I think debuging mode is operating on the both of
> them, for what it's worth.
> 
> Which bit of code should I start looking through, first? :-)

-- 
Chris McDonough
Digital Creations
Publishers of Zope - http://www.zope.org

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




Re: [Zope] ZClass acting up?

2000-05-22 Thread Erik Enge

"Morten W. Petersen" <[EMAIL PROTECTED]> writes:


> Prøvde det, og det funka. Ser ut til at det er problemer med Debian igjen,
> *host,host* ;).
> 
Jeg bruker Red Hat 6.2 akkurat nå.

> Seriøst, funker helt fint her.

Hm. Og du fulgte samme prosedyre? Da må jeg nok ringe deg :)

-- 
 Erik Enge

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

2000-05-22 Thread Erik Enge

"Morten W. Petersen" <[EMAIL PROTECTED]> writes:

> My apologies, seems I forgot to speak in english:

So did I.. *smuck!*

> Tried it, and it worked. Looks like a Debian specific problem again,
> *cough,cough* ;).

Yeah, you think? I use Red Hat at the moment.

> Seriously, worked fine here.

And you followed the procedure as I said? Sure?

-- 
 Erik Enge

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

2000-05-22 Thread Erik Enge

"Kevin Dangoor" <[EMAIL PROTECTED]> writes:

> You're correct, there is no way to select a ZClass that is the child of
> another in the subobject list. (It is assumed to be available).

Yeah, but what you should probably do is to make the top ZClass one of
the base classes (but do not add it along with the Object Manager -
then you loose the recursiveness as well... don't know why) of the
ZClass you want to be recursive; as I did.

> I misread your original note. I didn't realize that test_project not only
> had test_folder as a base class, but is a class created underneath
> test_folder. I've never tried to do that, and it may not be a case that was
> considered when they built ZClasses...

I think it should be the natural case of the DOM? Could anyone clarify
this, please?

-- 
 Erik Enge

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Netscape Image Problems (LoginManager?)

2000-05-22 Thread Chris Withers

[EMAIL PROTECTED] wrote:
> 
> Well I have determined that it has nothing to do with PTK or Login Manager,
> well I think
> anyway...

I would agree as I've experienced this exact same problem with Netscape
3.04 and my Squishdot site at http://www.bay-c.co.uk

cheers,

Chris

PS: I'd love to know what's causing this...

PPS: Is anyone who's experiencing this using SiteAccess?

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Netscape Image Problems (LoginManager?)

2000-05-22 Thread john

O.K

If you just load the document in a Netscape Browseryou get the
imagethen
when you hit reload you get a Zope error message that says:

Zope Error

   Zope has encountered an error while publishing this resource. 

   Error Type: OverflowError
   Error Value: float too large to convert

traceback:

error on line 186 of image.py

186:   mod_since=int(DateTime(header).timeTime())

I have tried loading a fresh copy of Zope and I still get the same error!

pressing on to try to find answers!!

j


>[EMAIL PROTECTED] wrote:
>> 
>> Well I have determined that it has nothing to do with PTK or Login Manager,
>> well I think
>> anyway...
>
>I would agree as I've experienced this exact same problem with Netscape
>3.04 and my Squishdot site at http://www.bay-c.co.uk
>
>cheers,
>
>Chris
>
>PS: I'd love to know what's causing this...
>
>PPS: Is anyone who's experiencing this using SiteAccess?
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   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] Netscape Image Problems (LoginManager?)

2000-05-22 Thread Chris Withers

Jon Delheimer wrote:
> 
> Checking the Z2.log file shows that Zope is returning a 500 status code
> (Internal Server Error) when the broken images appear.

That's not good :(

That means something is causing the requests to go astray.

Can you see what the requested object is compared with the URL you would
expect?

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] Broken ZWiki

2000-05-22 Thread Chris Withers

Jason Cunliffe wrote:
> when I install ZWiki Product, the FrontPage, HelpPage etc are all
> brokendoes it rely on another class being present?

> ZWikiWeb

Either see Evan's post or read:

http://www.zope.org/Members/chrisw/ZWikiWeb/install

...particularly the bit about ZWikiWeb requiring ZWiki 0.6 to be
installed ;-)

I have to stress this again, ZWikiWeb is merely a wrapper for ZWiki.
ZWiki is the real product and I'd like to thank Simon for giving us such
an amazing product.

cheers,

Chris

PS: Now, if I could just rename a Wiki page through the Wiki interface
and have all links to that page updated... ;-)

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Netscape Image Problems (LoginManager?)

2000-05-22 Thread Shane Hathaway

John,

Add the following lines just before line 186 of image.py and tell us
what comes out on the console (not your browser, but the
console--assuming the console is visible).

  print header
  print DateTime(header)
  print DateTime(header).timeTime()

Shane

[EMAIL PROTECTED] wrote:
> 
> O.K
> 
> If you just load the document in a Netscape Browseryou get the
> imagethen
> when you hit reload you get a Zope error message that says:
> 
> Zope Error
> 
>Zope has encountered an error while publishing this resource.
> 
>Error Type: OverflowError
>Error Value: float too large to convert
> 
> traceback:
> 
> error on line 186 of image.py
> 
> 186:   mod_since=int(DateTime(header).timeTime())
> 
> I have tried loading a fresh copy of Zope and I still get the same error!
> 
> pressing on to try to find answers!!
> 
> j
> 
> >[EMAIL PROTECTED] wrote:
> >>
> >> Well I have determined that it has nothing to do with PTK or Login Manager,
> >> well I think
> >> anyway...
> >
> >I would agree as I've experienced this exact same problem with Netscape
> >3.04 and my Squishdot site at http://www.bay-c.co.uk
> >
> >cheers,
> >
> >Chris
> >
> >PS: I'd love to know what's causing this...
> >
> >PPS: Is anyone who's experiencing this using SiteAccess?
> >
> >___
> >Zope maillist  -  [EMAIL PROTECTED]
> >http://lists.zope.org/mailman/listinfo/zope
> >**   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] Zope.org tracker

2000-05-22 Thread mindlace

Zopistas!

There is now a zope.org tracker at http://www.zope.org/Tracker for bugs
and feature requests for Zope.org.  If there's anything that's been
driving you nuts about the zope.org website, or something you'd just
like to see, please feel free to add it to the Tracker!

Thanks,

ethan mindlace fremen
Zopista Community Liason

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




Re: [Zope] Apache mod_rewrite module...

2000-05-22 Thread mindlace

Pierre Rougier wrote:
> 
> The problem is that by doing that, as in the HTML pages, paths are
> relatives, the redirection change all the relative address to the port 8080
> (because the final served URL is on this port), and I want my Images to be
> served by apache

What I think you need to do is use SiteAccess so that it strips out the
port.  You can use an access rule like so:

  


Then, zope will generate all its links with a base that excludes the
port, so Apache will always get the request and apply its rewrite
rules.  You have to do this, because zope always adds a base url tag to
pages, so relative URL's think they go to zope.

Hope that helps,

--
ethan mindlace fremen
Zopista Community Liason

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




Re: [Zope] Apache mod_rewrite module...

2000-05-22 Thread mindlace

mindlace wrote:

> What I think you need to do is use SiteAccess so that it strips out the
> port.  You can use an access rule like so:
> 
>   
> 

You may have to change the string.split if the subdomain is important.

~ethan

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




Re: [Zope] Netscape Image Problems (LoginManager?)

2000-05-22 Thread john

Shane,

Nope the console is not visible, couldn't even log in.

j


At 02:23 PM 5/22/00 -0400, you wrote:
>John,
>
>Add the following lines just before line 186 of image.py and tell us
>what comes out on the console (not your browser, but the
>console--assuming the console is visible).
>
>  print header
>  print DateTime(header)
>  print DateTime(header).timeTime()
>
>Shane
>
>[EMAIL PROTECTED] wrote:
>> 
>> O.K
>> 
>> If you just load the document in a Netscape Browseryou get the
>> imagethen
>> when you hit reload you get a Zope error message that says:
>> 
>> Zope Error
>> 
>>Zope has encountered an error while publishing this resource.
>> 
>>Error Type: OverflowError
>>Error Value: float too large to convert
>> 
>> traceback:
>> 
>> error on line 186 of image.py
>> 
>> 186:   mod_since=int(DateTime(header).timeTime())
>> 
>> I have tried loading a fresh copy of Zope and I still get the same error!
>> 
>> pressing on to try to find answers!!
>> 
>> j
>> 
>> >[EMAIL PROTECTED] wrote:
>> >>
>> >> Well I have determined that it has nothing to do with PTK or Login 
>Manager,
>> >> well I think
>> >> anyway...
>> >
>> >I would agree as I've experienced this exact same problem with Netscape
>> >3.04 and my Squishdot site at http://www.bay-c.co.uk
>> >
>> >cheers,
>> >
>> >Chris
>> >
>> >PS: I'd love to know what's causing this...
>> >
>> >PPS: Is anyone who's experiencing this using SiteAccess?
>> >
>> >___
>> >Zope maillist  -  [EMAIL PROTECTED]
>> >http://lists.zope.org/mailman/listinfo/zope
>> >**   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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 Pgsql 7.0/SQL Schema HeLp!

2000-05-22 Thread ozric

--snip--
I got help from one of our DBA's today here is what I was missing.  This
in not in Bruce's Book.

INSERT INTO address (per_id,street_num,city,state,zip) 
SELECT per_id,'$3','$4','$5','$6' 
FROM person
WHERE last = '$1' 
AND first = '$2'; 

$1-6 will be supplied by user input from Zope,  I just wanted to isolate
the per_id from person during an Insert so that end users would not need
to
know it was there.  I know I might have a problem with getting more then
one
return for just first and last,  I might add more WHERE statements in
there. I am
just happy to get moving on with my little project.

Thanks for the help
Richad

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Netscape Image Problems (LoginManager?)

2000-05-22 Thread Steve Alexander

[EMAIL PROTECTED] wrote:
> 
> Well I have determined that it has nothing to do with PTK or Login Manager,
> well I think
> anyway...
> 
> If you hit reload it breaks the images on the root level, if you put your
> cursor in the Location,
> or URL field and hit enter it reloads fine.
> 
> I truly don't understand this problem and it only does it with images, in
> Netscape, is this an issue
> that everyone is just accepting or is there a fix for it.

Are you running Zope in single thread mode?

If I recall correctly, Netscape fires off a bunch of threads to
simultaneously download the images on a page. It could be that Netscape
is tying up the single thread, and getting impatient with its other
requests.

--
Steve Alexander
Software Engineer
Cat-Box limited

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

2000-05-22 Thread Mabe, Brad

Is there a way for zope to call an external program (exe, batch file, etc.)
and have it execute on the server?  I have several home grown utilities on
my server that I would like to access/execute via the browser.

-=Brad=-


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

2000-05-22 Thread Chris McDonough

Brad, look into external methods.  There is a howto on the zope.org
website at http://www.zope.org/Documentation/How-To/ExternalMethods

You'll need to know some Python, probably most importantly read about
the os module's "popen" method at
http://www.python.org/doc/current/lib/os-newstreams.html

"Mabe, Brad" wrote:
> 
> Is there a way for zope to call an external program (exe, batch file, etc.)
> and have it execute on the server?  I have several home grown utilities on
> my server that I would like to access/execute via the browser.
> 
> -=Brad=-
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 
Chris McDonough
Digital Creations
Publishers of Zope - http://www.zope.org

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




[Zope] DTML Document size limit?

2000-05-22 Thread Andrew Diller

I can't get a DTML Document to be bigger than about 105k.

Is there a size limit to a DTML Document, and if so, how big?

105k isn't that large.

-andy diller



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Netscape Image Problems (LoginManager?)

2000-05-22 Thread Jon Delheimer


Shane,

I made the changes you suggested to Image.py.

Here are the results:

Thursday, 11-May-00 16:21:32 GMT
1900/05/11 16:21:31 GMT
-2197697908.0
Sunday, 14-May-00 04:03:14 GMT
1900/05/14 04:03:14 GMT
-2197483006.0
Thursday, 11-May-00 15:53:50 GMT
1900/05/11 15:53:50 GMT
-2197699570.0
Thursday, 11-May-00 15:53:50 GMT
1900/05/11 15:53:50 GMT
-2197699570.0
Thursday, 11-May-00 15:53:50 GMT
1900/05/11 15:53:50 GMT
-2197699570.0
Thursday, 11-May-00 15:53:50 GMT
1900/05/11 15:53:50 GMT
-2197699570.0
Thursday, 11-May-00 15:53:50 GMT
1900/05/11 15:53:50 GMT
-2197699570.0
Thursday, 11-May-00 15:53:50 GMT
1900/05/11 15:53:50 GMT
-2197699570.0

Jon

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Shane Hathaway
> Sent: Monday, May 22, 2000 1:24 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Zope] Netscape Image Problems (LoginManager?)
>
>
> John,
>
> Add the following lines just before line 186 of image.py and tell us
> what comes out on the console (not your browser, but the
> console--assuming the console is visible).
>
>   print header
>   print DateTime(header)
>   print DateTime(header).timeTime()
>
> Shane
>
> [EMAIL PROTECTED] wrote:
> >
> > O.K
> >
> > If you just load the document in a Netscape Browseryou get the
> > imagethen
> > when you hit reload you get a Zope error message that says:
> >
> > Zope Error
> >
> >Zope has encountered an error while publishing this resource.
> >
> >Error Type: OverflowError
> >Error Value: float too large to convert
> >
> > traceback:
> >
> > error on line 186 of image.py
> >
> > 186:   mod_since=int(DateTime(header).timeTime())
> >
> > I have tried loading a fresh copy of Zope and I still get the
> same error!
> >
> > pressing on to try to find answers!!
> >
> > j
> >
> > >[EMAIL PROTECTED] wrote:
> > >>
> > >> Well I have determined that it has nothing to do with PTK or
> Login Manager,
> > >> well I think
> > >> anyway...
> > >
> > >I would agree as I've experienced this exact same problem with Netscape
> > >3.04 and my Squishdot site at http://www.bay-c.co.uk
> > >
> > >cheers,
> > >
> > >Chris
> > >
> > >PS: I'd love to know what's causing this...
> > >
> > >PPS: Is anyone who's experiencing this using SiteAccess?
> > >
> > >___
> > >Zope maillist  -  [EMAIL PROTECTED]
> > >http://lists.zope.org/mailman/listinfo/zope
> > >**   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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] how do you iterate over tiny tables?

2000-05-22 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article <[EMAIL PROTECTED]>, Chris Withers
<[EMAIL PROTECTED]> writes
>Graham Chiu wrote:
>> 
>>
>> 
>>   
>> 
>
>Is this code in a DTML document or method?
>
>> I would like to print out the title attribute of the tiny table now, but
>> 
>>   
>> 
>> chokes on title with an attribute error.
>
>What's wrong with just ?
>

Nothing.  Just shows I shouldn't be doing this Zope at 1 am :-(

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

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOSjviLTRdIWzaLpMEQKiPwCghmIzqzzHDE0PefkxLvXDBUN2CM4An1/b
C8sS3SChTJVPvtgHEd0gF4OL
=Ne8G
-END PGP SIGNATURE-

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




Re: [Zope] Zope.org membership

2000-05-22 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article <[EMAIL PROTECTED]>, mindlace <[EMAIL PROTECTED]>
writes
>Graham Chiu wrote:
>> 
>> Can it be changed so that it remembers both my userid and password, or
>> just my password?  I usually remember who I am!
>
>This is certainly true.  Unfortunately, Microsoft has made it so that
>anyone with a modicum of javascript skills can read *all* your cookies
>(if you use IE on Windows):
>
>http://slashdot.org/article.pl?sid=00/05/11/173257&mode=nested

I went there, clicked on the buttons, and got DNS errors.

>
>Now, there may not be hugely deletrious effects resulting from this, but
>until cookies are handled in a sane manner, it's probably inappropriate
>for us to be putting the password there.

Well, you only have to save one half of a pair.  I would prefer you save
the password.  The username I can remember :-)

>
>If you're using IE 5 or Mozilla (NS 6) you can always tell it to
>remember what you've entered into the password field.
>

Doesn't offer to save it for me on IE5. If it did, I wouldn't be asking.


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

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOSjvJ7TRdIWzaLpMEQLrpQCfZlQdZL7324hKZyuf9qIURHPvpUEAn00B
HZkzbNpdbEWRpfNRXms34cVw
=WSqE
-END PGP SIGNATURE-

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




RE: [Zope] Executing an external program

2000-05-22 Thread Eric L. Walstad

Hi Brad,

I'm working on this now, too.  Here's what I've got so far:

--Start Python Module--

import sys, os, string

def rn():
"""
docstring
"""
f = os.popen("/usr/local/Zope/Extensions/a.out")
lines = f.readlines()
status = f.close()
if status:
"There was an error"
return string.join( lines )

--End Python Module--

--Start C Code--
#include 

int main(){
cout << "13.93";
return 0;
}
--End C Code--

Note that it works from the Python command line, but not from a Zope
external method.  I'm still trying to figure out why it is failing from
within Zope (anybody have an idea?).  It might help you as a starting point,
however.  a.out is a simple C program that just sends a string to the
standard output (cout << "13.93";).

If you get something that works, please let me know.  I'll do the same.

Eric.

// -Original Message-
// From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mabe,
// Brad
// Sent: Monday, May 22, 2000 12:45 PM
// To: '[EMAIL PROTECTED]'
// Subject: [Zope] Executing an external program
//
//
// Is there a way for zope to call an external program (exe, batch
// file, etc.)
// and have it execute on the server?  I have several home grown
// utilities on
// my server that I would like to access/execute via the browser.
//
// -=Brad=-
//
//
// ___
// Zope maillist  -  [EMAIL PROTECTED]
// http://lists.zope.org/mailman/listinfo/zope
// **   No cross posts or HTML encoding!  **
// (Related lists -
//  http://lists.zope.org/mailman/listinfo/zope-announce
//  http://lists.zope.org/mailman/listinfo/zope-dev )
//


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




[Zope] dtml-in Tag problem

2000-05-22 Thread Tom Scheidt










Related Stories




 







gives me an error that says: "list index out of range"

The related_stories property contains:

King Kong website^www.kong.com
Empire State Building Website^www.empirestate.com

It worked at first but when I made any changes to other properties it gave
me that error message.
Any ideas?


Tom Scheidt   |   www.falsemirror.com   |   [EMAIL PROTECTED]

---


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




Re: [Zope] Executing an external program

2000-05-22 Thread Jonothan Farr

> Note that it works from the Python command line, but not from a Zope
> external method.  I'm still trying to figure out why it is failing from
> within Zope (anybody have an idea?).  


How does it 'not work' from an external method?
--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998



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




Re: [Zope] DTML Document size limit?

2000-05-22 Thread J. Atwood

I have built them to over 200K...

J

> From: [EMAIL PROTECTED] (Andrew Diller)
> Date: Mon, 22 May 2000 16:09:16 -0400
> To: [EMAIL PROTECTED]
> Subject: [Zope] DTML Document size limit?
> 
> I can't get a DTML Document to be bigger than about 105k.
> 
> Is there a size limit to a DTML Document, and if so, how big?
> 
> 105k isn't that large.
> 
> -andy diller
> 
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> 


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




Re: [Zope] DTML Document size limit?

2000-05-22 Thread Shane Hathaway

"J. Atwood" wrote:
> 
> I have built them to over 200K...
> 
> J
> 
> > From: [EMAIL PROTECTED] (Andrew Diller)
> > Date: Mon, 22 May 2000 16:09:16 -0400
> > To: [EMAIL PROTECTED]
> > Subject: [Zope] DTML Document size limit?
> >
> > I can't get a DTML Document to be bigger than about 105k.
> >
> > Is there a size limit to a DTML Document, and if so, how big?
> >
> > 105k isn't that large.

Windows has a built-in limit on the size of the text that can fit in a
text box.  The limit changes from machine to machine for no apparent
reason.  I bet that's what the problem is.  Uploading the DTML directly
or via FTP may solve the problem for you, but the heart of the matter
is Windows.

Shane

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

2000-05-22 Thread Dieter Maurer

Eric L. Walstad writes:
 > I am trying to invoke a C++ program from an external method.  Platform is
 > Linux.  The C++ program returns HTML.  Note that the Python function is
 > working properly from the Python command line; That is,
 > ExecCGI.xCGI("./websim") outputs all the expected html.  I have placed the
 > C++ program in the same folder as the ExecCGI module.  The C++ program works
 > from apache:  here's an example of the program's output, which is what I'm
 > trying to get into Zope:
 > 
 > http://63.203.42.146/cgi-bin/websim
 > 
 > 
 > ExecCGI module:
 > import sys, os, string
 > 
 > def xCGI( cmdLine ):
 > """
 > Run an external command and return its standard output as a string.
 > """
 > f = os.popen( cmdLine )
 > lines = f.readlines()
 > status = f.close()
 > if status:
 > raise "CGI returned error: %d" % status[1]
 > return string.join( lines )
 > 
You have two problems here!

First, your program returns a non-zero exit status.
Second: "f.close()" returns a simple integer, not a sequence
that may be indexed.
Remove the "[1]" from status and you should see
the nonzero exit status.

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] uploading a batch of files

2000-05-22 Thread Dieter Maurer

Jonathan Park writes:
 > I need to upload a batch of files into the zope database, what would be the
 > best way
FTP, mput?
More difficult: a Python script generating appropriate HTTP Post requests

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] LocalFS Question

2000-05-22 Thread Jim Sanford

Does anyone out there know how I can prevent LocalFS from translating CR/LF
pairs in a text file to LFs when serving up the file?

Or will I need to "massage" it in Zope before sending it?

In this case the files are Windows/DOS batch files.

They will not run with the CR/LFs replaced with LFs.


Jim Sanford


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

2000-05-22 Thread Jørgen Skogstad

Kindest sir, 

I have a small question I hope someone could share some wisdom
with. I am not that familiar with the various objects available
within the Zope framework yet.

.. I have made a ZCatalog which works seamlessly for text only
searches etc. However; I need to search on a date basis on the
generated object in the ZCatalog.

For now my "date" entry/column is [string] coded.. not "date"
as would be apropriate? How can I use date .. and then make
a search to get the last 5 entries in a table?

http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching

.. shows some possible ways to do this; but I can't seem to get
them to work properly;

 Items modified in the last 14 days


  New item:
  


.. does anyone have any information on how they have used this
and gotten it to work? .. and might have an example or two? ;) 

What exactly does the various elements in the above example do?
.. like "Catalog(bobobase_modification_time=_.DateTime(date)-14,
  bobobase_modification_time_usage='range:min')" ??

.. mm .. any input? ;) 

Thanks in advance.. 

Kindest,
Jørgen Skogstad


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

2000-05-22 Thread Jim Hebert

At the risk of posting something embarrassingly broken, here's what Works
For Us: ;-)

(My mailer propably will wrap some of these lines. Your paths will be
different. Yadda Yadda.)

RewriteEngine on
RewriteRule ^/static/(.*)   /home/httpd/html/$1 [l]
#RewriteRule ^/images/(.*)   /home/httpd/images/$1 [l]
#RewriteRule ^/icons/(.*)   /home/httpd/icons/$1 [l]
RewriteRule ^/pipermail/(.*) /usr/local/mailman/archives/public/$1 [l]
RewriteRule ^/cgi-bin/(.*)  /home/httpd/cgi-bin/$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
RewriteRule ^/mailman/(.*)  /usr/local/mailman/cgi-bin/$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
RewriteCond %{HTTP:Authorization}  ^(.*)
RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope/$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]

I have no idea if this covers some corner case better or worse. =) 

I believe this comes from some example I found via zope.org but could be
wrong.

Best,
jim

-- 
Jim Hebert   http://www.cosource.com/
[EMAIL PROTECTED]  The cooperative market for open source software

"Well actually I was considering opening a market in flying pigs. Mostly
because it would be more practical" -- Alan Cox




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




Re: [Zope] dtml-in Tag problem

2000-05-22 Thread Jim Sanford

A traceback is always helpful and would have been useful.

Is it possible that there is a 3rd, empty item, or an item with no ^,  in
"related_stories"?

An empty item when split would return only 1 subitem and
your code is assuming you will always have two.

A test for the ^ in the item before splitting would prevent this.

Try this:
...


 


...

Jim Sanford







- Original Message -
From: "Tom Scheidt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 22, 2000 3:58 PM
Subject: [Zope] dtml-in Tag problem











Related Stories




 







gives me an error that says: "list index out of range"

The related_stories property contains:

King Kong website^www.kong.com
Empire State Building Website^www.empirestate.com

It worked at first but when I made any changes to other properties it gave
me that error message.
Any ideas?


Tom Scheidt   |   www.falsemirror.com   |   [EMAIL PROTECTED]

---


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




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




Re: [Zope] LocalFS Question

2000-05-22 Thread Jonothan Farr

> Does anyone out there know how I can prevent LocalFS from translating CR/LF
> pairs in a text file to LFs when serving up the file?
>
> Or will I need to "massage" it in Zope before sending it?
>
> In this case the files are Windows/DOS batch files.


It sounds like the files have unix endlines on the server and are being served
as binary files. If you set the mime type to text/plain they will get converted
to dos endlines when served to a windows machine. You can use the 'type map'
property to map the .bat extension to text/plain.

--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] RE: Generate edito form from dtmlDocument : property type

2000-05-22 Thread Dr. Ross Lazarus

Yes, it's definitely a very interesting product and goes a long way
toward what I was thinking about. It's a step toward what could be a
killer app for zope I think - most web developers would kill for an open
source through the web RAD tool.

I still think it's worth peeking at what I've done because it generates
ZSQL code as well as the DTML skeleton for a typical application. It
would be easy to integrate I imagine with metapublisher. In my
experience, the ZODB is great for development and testing, but there
comes a point with big apps where you think seriously about RDBMS
storage. 

Jason Spisak wrote:
> 
> Dr. Ross Lazarus writes:
> 
> Have you guys seen MetaPublisher?!
> 
> http://hive.beehive.de/Beehive/www.beehive.de/Zope/MetaPublisher/
> 
> A very strong offering in this direction.
> 
> > I think the general idea of automating html generation for data entry
> > web forms is a very
> > good one, but IMHO it's heroic to even think about doing this sort of
> > stuff in dtml!! (This
> > discussion probably should be moved to zope-dev?)
> >
> > I've got something which generates useful DTML and ZSQL code
> > automagically from ZClass BASIC propertysheet contents and so can be
> > used to do the grunt work for making zclass add and edit methods. It
> > generates ZSQL code which is only tested for the sybaseda but would be
> > relatively easy to tweak for other DA's
> >
> > It uses a single python external method - have a look at
> > http://www.zope.org/Members/rossl/ZClassExtender for an example of
> > what's possible...feel free to extend it?!!

-- 

Dr Ross Lazarus
Associate Professor and Sub-Dean for Information Technology
Faculty of Medicine, Room 126A, A27, University of Sydney,
Camperdown, NSW 2006, Australia
Tel: (+61 2) 93514429   Mobile: +61414872482  
Fax: (+61 2) 93516646   Email: [EMAIL PROTECTED]

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




Re: [Zope] Q; Date / ZCatalog / Search

2000-05-22 Thread J. Atwood

I too have not been able to get this to work... anyone to help... please?

J

> From: Jørgen Skogstad <[EMAIL PROTECTED]>
> Date: Tue, 23 May 2000 00:25:22 +0200
> To: <[EMAIL PROTECTED]>
> Subject: [Zope] Q; Date / ZCatalog / Search
> 
> Kindest sir, 
> 
> I have a small question I hope someone could share some wisdom
> with. I am not that familiar with the various objects available
> within the Zope framework yet.
> 
> .. I have made a ZCatalog which works seamlessly for text only
> searches etc. However; I need to search on a date basis on the
> generated object in the ZCatalog.
> 
> For now my "date" entry/column is [string] coded.. not "date"
> as would be apropriate? How can I use date .. and then make
> a search to get the last 5 entries in a table?
> 
> http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching
> 
> .. shows some possible ways to do this; but I can't seem to get
> them to work properly;
> 
>  Items modified in the last 14 days
> 
>  bobobase_modification_time_usage='range:min')">
> New item:
> 
> 
> 
> .. does anyone have any information on how they have used this
> and gotten it to work? .. and might have an example or two? ;)
> 
> What exactly does the various elements in the above example do?
> .. like "Catalog(bobobase_modification_time=_.DateTime(date)-14,
> bobobase_modification_time_usage='range:min')" ??
> 
> .. mm .. any input? ;)
> 
> Thanks in advance..
> 
> Kindest,
> Jørgen Skogstad
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] uploading a batch of files

2000-05-22 Thread R. David Murray

On Mon, 22 May 2000, Dieter Maurer wrote:
> FTP, mput?
> More difficult: a Python script generating appropriate HTTP Post requests

An equally difficult alternative to b:  a temporary python external
method that creates file objects and reads the content from the
file system.

Perhaps the load_site (or whatever it's name is) product would help
with this?  I've never looked at it.

--RDM


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

2000-05-22 Thread Jim Sanford

This could be implemented in javascript.

After using a form to get a list of files to upload, use
javascript to launch a new window that would be used to
programatically upload the files one at a time.
When each upload finishes the reply from the server would include
javascript code to notify the "opener" window to
rewrite the upload window with the needed
information for the next file and submit it. 

This would continue until all files have been uploaded.

Jim Sanford
- Original Message - 
From: "R. David Murray" <[EMAIL PROTECTED]>
To: "Jonathan Park" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, May 22, 2000 5:43 PM
Subject: Re: [Zope] uploading a batch of files


On Mon, 22 May 2000, Dieter Maurer wrote:
> FTP, mput?
> More difficult: a Python script generating appropriate HTTP Post requests

An equally difficult alternative to b:  a temporary python external
method that creates file objects and reads the content from the
file system.

Perhaps the load_site (or whatever it's name is) product would help
with this?  I've never looked at it.

--RDM


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] RE: Generate edito form from dtmlDocument : property type

2000-05-22 Thread Jason Spisak

Dr. Ross Lazarus writes:

> Yes, it's definitely a very interesting product and goes a long way
> toward what I was thinking about. It's a step toward what could be a
> killer app for zope I think - most web developers would kill for an open
> source through the web RAD tool.
> 
> I still think it's worth peeking at what I've done because it generates
> ZSQL code as well as the DTML skeleton for a typical application. It
> would be easy to integrate I imagine with metapublisher. In my
> experience, the ZODB is great for development and testing, but there
> comes a point with big apps where you think seriously about RDBMS
> storage. 
> 

Are you saying that because of my recent postings tothe dev list? ;)

> Jason Spisak wrote:
> > 
> > Dr. Ross Lazarus writes:
> > 
> > Have you guys seen MetaPublisher?!
> > 
> > http://hive.beehive.de/Beehive/www.beehive.de/Zope/MetaPublisher/
> > 
> > A very strong offering in this direction.
> > 
> > > I think the general idea of automating html generation for data entry
> > > web forms is a very
> > > good one, but IMHO it's heroic to even think about doing this sort of
> > > stuff in dtml!! (This
> > > discussion probably should be moved to zope-dev?)
> > >
> > > I've got something which generates useful DTML and ZSQL code
> > > automagically from ZClass BASIC propertysheet contents and so can be
> > > used to do the grunt work for making zclass add and edit methods. It
> > > generates ZSQL code which is only tested for the sybaseda but would be
> > > relatively easy to tweak for other DA's
> > >
> > > It uses a single python external method - have a look at
> > > http://www.zope.org/Members/rossl/ZClassExtender for an example of
> > > what's possible...feel free to extend it?!!
> 
> -- 
> 
> Dr Ross Lazarus
> Associate Professor and Sub-Dean for Information Technology
> Faculty of Medicine, Room 126A, A27, University of Sydney,
> Camperdown, NSW 2006, Australia
> Tel: (+61 2) 93514429   Mobile: +61414872482  
> Fax: (+61 2) 93516646   Email: [EMAIL PROTECTED]

All my best,

Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

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




Re: [Zope] how do you iterate over tiny tables?

2000-05-22 Thread Andrew Kenneth Milton

+[ Graham Chiu ]-
|
| >
| >
| >
| >
| >
| >
| >
| >This works for me. 
| 
| This code is in the index_html of the same folder containing the
| tinytables.  It doesn't work for me unless I specify the folder as in
| 
| thisfolder.objectValues()
| 
| whereas all the examples I've seen don't need this. Using 2.1.4.

My index_html is a dtml-method, not a dtml-document. Using 2.1.4.

I find myself rarely using dtml-documents because they don't acquire
like methods.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] uploading a batch of files

2000-05-22 Thread Jonothan Farr

There's an external method that loads a batch of files from the local machine
into the zope database. I've got a copy if you're interested, since I can't seem
to find it on the site anymore.
--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998

- Original Message -
From: R. David Murray <[EMAIL PROTECTED]>
To: Jonathan Park <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, May 22, 2000 3:43 PM
Subject: Re: [Zope] uploading a batch of files


> On Mon, 22 May 2000, Dieter Maurer wrote:
> > FTP, mput?
> > More difficult: a Python script generating appropriate HTTP Post requests
>
> An equally difficult alternative to b:  a temporary python external
> method that creates file objects and reads the content from the
> file system.
>
> Perhaps the load_site (or whatever it's name is) product would help
> with this?  I've never looked at it.
>
> --RDM
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Q; Date / ZCatalog / Search

2000-05-22 Thread Loren Stafford

For an events database, I catalog properties "startdate" and "enddate" of
type "date" as field indexes; then I search it in two steps:

First create a temporary list of events that meet the date criteria







Then, if that list is non-empty, I format as many entries from it as I
need -- in this case 2.




 
  
  
  - 
  
  
  
  
  

 
No events to announce.
  

 
   more >>
  



Hope that helps.

-- Loren

- Original Message -
From: "J. Atwood" <[EMAIL PROTECTED]>
To: "Jørgen Skogstad" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: May 22, 2000 03:36 PM
Subject: Re: [Zope] Q; Date / ZCatalog / Search


> I too have not been able to get this to work... anyone to help... please?
>
> J
>
> > From: Jørgen Skogstad <[EMAIL PROTECTED]>
> > Date: Tue, 23 May 2000 00:25:22 +0200
> > To: <[EMAIL PROTECTED]>
> > Subject: [Zope] Q; Date / ZCatalog / Search
> >
> > Kindest sir,
> >
> > I have a small question I hope someone could share some wisdom
> > with. I am not that familiar with the various objects available
> > within the Zope framework yet.
> >
> > .. I have made a ZCatalog which works seamlessly for text only
> > searches etc. However; I need to search on a date basis on the
> > generated object in the ZCatalog.
> >
> > For now my "date" entry/column is [string] coded.. not "date"
> > as would be apropriate? How can I use date .. and then make
> > a search to get the last 5 entries in a table?
> >
> > http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching
> >
> > .. shows some possible ways to do this; but I can't seem to get
> > them to work properly;
> >
> >  Items modified in the last 14 days
> > 
> >  > bobobase_modification_time_usage='range:min')">
> > New item:
> > 
> > 
> >
> > .. does anyone have any information on how they have used this
> > and gotten it to work? .. and might have an example or two? ;)
> >
> > What exactly does the various elements in the above example do?
> > .. like "Catalog(bobobase_modification_time=_.DateTime(date)-14,
> > bobobase_modification_time_usage='range:min')" ??
> >
> > .. mm .. any input? ;)
> >
> > Thanks in advance..
> >
> > Kindest,
> > Jørgen Skogstad
> >
> >


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

2000-05-22 Thread Hugo Ramos

Yellow,


Portuguese Zope Portal
Finally open


The first portuguese Zope portal is finally online but still alpha.
ZopersORG is online... but why so soon, you may ask?? because everybody was
flooding our mailbox asking for it to be online!! So we've decided to go
online with a limited number of services and develop the rest while
everybody is visiting the site!

Whe need all portuguese Zopers to send us some feedback with comments and
sugestions!! Visit us!

You'll find the site at http://www.zopers.org

bye

---
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org



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




[Zope] Re[2]: [Zope] Deleting folder-like objects.

2000-05-22 Thread John Morton

On Mon, 22 May 2000 04:54:26 -0600 you wrote:

[Deleteing folderlike objects doesn't invoke manage_beforeDelete for it's children]
 > > >
 > > > Yeah, that can be annoying.
 > > 
 > > Is there is any reason for it?
 > > 
 > 
 > None I can think of off hand...

Right. I'm going to consider it a bug and submit it to the collector as
soon as I can research a potential patch. 

John


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

2000-05-22 Thread mindlace

Graham Chiu wrote:
 
> I went there, clicked on the buttons, and got DNS errors.

This link should show you all the cookies you have at www.zope.org:

http://www.securityspace.com%2fexploit%2fexploit_1b.html%3fdomain==.www.zope.org/#exploit_1
 
> Well, you only have to save one half of a pair.  I would prefer you save
> the password.  The username I can remember :-)

Your username is publicly accessable from zope.org.  With your password,
if there's any way I can inferr your username- let's say the webmaster
grabbed the information while you were posting a comment on
zopeisevil.org- they can now do whatever you could do.

More to the point, with redirection and javascript, they can even make
you do it.  For zope.org membership as it is today, all they could do is
besmirch your good name in the community. In the future, as the things a
zope member can do expands, it could mess up more.

I will, however, look into other possibilities, like maybe your password
could be filled in server side, if some appropriate check can be made.

If you like, drop this issue in the Tracker, http://www.zope.org/Tracker
, so that you'll be updated when its status changes.

> >If you're using IE 5 or Mozilla (NS 6) you can always tell it to
> >remember what you've entered into the password field.
> 
> Doesn't offer to save it for me on IE5. If it did, I wouldn't be asking.

Hmm.  It harasses me about it all the time.  Perhaps I'm using IE 5.5
(can't remember, I'm back in linux.)

~ethan

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




Re: [Zope] ZClass acting up?

2000-05-22 Thread Tres Seaver

Erik Enge <[EMAIL PROTECTED]> asked:
> 
> I have discovered this extremely irritating "feature" with ZClasses.
> 
> Sorry for this long and rather ugly explanation, but I don't know
> what the problem is, so it has to be like this:
> 
> Add test_product product in Control Panel - Product Management
> In test_product:
> Add a test_folder zclass with object manager as its base
>  class
> In test_folder:
> Add test_project zclass with test_folder as its base
> class
> 
> (be sure to enter all factories and press "change")
> 
> Now, enter your Zope tree (http://localhost/, for example) and do:
> 
> Add a test_folder
> In test_folder:
> Add a test_project
> In test_project:
> Add a test_project
> 
> The point here being to demonstrate that you can add
> recursively test_projects. Which is nice, I love it..
> semantics looking nice and all :-).
> 
> Then, go back to the test_product, and in test_project add a Z Class
> thats called test_projectteam, make object manager the base class.
> 
> And finally, enter the test_folder you created earlier and add a
> test_project. Enter this project... now what do you see? Thats right,
> your not able to add test_projects recursively any longer, but you
> can add project_teams (which doesn't really make me all that happy).
> 
> Why is this? I want to be able to structure projects into sub
> projects and be able to divide the project teams working on the
> different projects. Does anyone know why this happens? And possibly
> how I can achieve what I want?


"Kevin Dangoor" <[EMAIL PROTECTED]> replied:
> 
> - Original Message -
> From: "Erik Enge" <[EMAIL PROTECTED]>
> 
> > "Kevin Dangoor" <[EMAIL PROTECTED]> writes:
> >
> > > This seems like odd behavior to me. Did you check your Subobjects
> > > tab to make sure that the appropriate subobjects are still
> > > selected?
> >
> > There is no way to select a Z Class that is a child of another Z
> > Class in the subobject list.  Should I be able to do that? Seems to
> > that this was never possible.  All I can select is test_product, but
> > that isn't what I want.  Got a clue?  Is it a bug or functionality
> > that just isn't supposed to be there?
> 
> You're correct, there is no way to select a ZClass that is the child
> of another in the subobject list. (It is assumed to be available).
> 
> I misread your original note. I didn't realize that test_project not
> only had test_folder as a base class, but is a class created
> underneath test_folder. I've never tried to do that, and it may not
> be a case that was considered when they built ZClasses...

Actually, it *is* possible still to add the test_project objects;
the problem is that the management interface is confused about the
list of possible options.  To prove this to yourself, follow Eric's
recipe above, and then invoke the add form directly through the URL,
e.g.:

  http://my.site/a_test_folder/a_test_project/manage_addProduct/test_product/test_folder/test_project_addForm>

If you fill out the ID and press 'Add', le voilà!

The management interface is using some unhappy heuristics in its
attempt to determine the legal set of addable classes:

 * In the initial case, the only possible item is test_project, so
   it hard-wires the "Add" button to it (and doesn't show a list!)

 * In the second case, the "nested class rule" kicks in before the
   MI gets up to the top of the product, and so the nested "project
   team" class is the only one found;  again, the MI wires up the
   "Add" button directly, with no list.

 * If you had more nested classes, you would see a list of them
   (but still not the project class itself).  Likewise, if you add
   other meta-types to the "Subobject" tab of the class, they will
   appear in the list as well.

This problem is a ZClass bug and should be reported to the Collector:

  http://classic.zope.org:8080/Collector

(Actually it looks like a duplicate of #811).

Tres.
-- 
===
Tres Seaver   Digital Creations[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] Updating one data.fs from another

2000-05-22 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I do development on my site on my notebook, and then rather than
overwriting my production data.fs, I then manually make the changes to
the production data.fs by create/cut/paste from my development data.fs
which is all very painful.

I tried ftp'ing into my development site, but some things like
TinyTables are 0 bytes in size and can't be accessed.

My browser also doesn't support cut/paste of whole documents from one
data.fs to another, just the data whereas it supports this within a
data.fs.

Is there some other way to propagate changes from a development site to
a production site?

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

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOSlQv7TRdIWzaLpMEQKLPQCfWcsRKQkXIP5nwaRuetiqpJ/PQ/oAoJf+
q0bL2DJvxMEceE8fCtupQPuq
=kroL
-END PGP SIGNATURE-

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




Re: [Zope] Zope.org membership

2000-05-22 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article <[EMAIL PROTECTED]>, mindlace <[EMAIL PROTECTED]>
writes
>This link should show you all the cookies you have at www.zope.org:
>
>http://www.securityspace.com%2fexploit%2fexploit_1b.html%3fdomain==.www.zope.org
>/#exploit_1
> 

Interesting.  I run a Javascript free site anyway :-)

>
>I will, however, look into other possibilities, like maybe your password
>could be filled in server side, if some appropriate check can be made.

That's what I do.  I store the userid and a sessionid in the user's
cookie cache as a permanent (optional) cookie, and if they both match
with what I have saved server side, then I display the userid and
password which has also been stored server side.

Obviously this is also vulnerable :-(

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

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOSlKLbTRdIWzaLpMEQKsAQCcCDyUGBbH4iSP95kWtTW+JX5CrtkAoP3d
3QBPS4irbCnFOl442OgJgboG
=EJJM
-END PGP SIGNATURE-

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




[Zope] does this app exist?

2000-05-22 Thread paul beard

We're considering using zope to handle some internal groupware-type
functions, with WorldPilot as the base. What we need is the true Outlook
killer: scheduling. Any word on this as a feature to WorldPilot or hints
on how hard this would be implement? 

By scheduling, I mean the notion of creating an event, inviting others to
it via email or WorldPilot, and booking resources like meeting rooms
against it. 



--
Paul Beard / 206 728 4282 x138
Fizzylab / 2025 First Ave, Suite 1150
Seattle WA 98121


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

2000-05-22 Thread calvin33



My script :
 

 
How to change "C" with another variable "V" which is an object 
like imae or file ?


[Zope] SQLSession Problem

2000-05-22 Thread wai

Hi All,

I'm using zope 2.1.6 with apache server on NT platform. and I had a problem
with SQLSession.

I tried to put in the '_force_new_session' flag whenever I called a
session, so I can have a fresh SessionID. But I always got a error return
with a message "TypeError".

So I wonder if this is the correct way to call the session component :



Please help.

Cheers

Wai


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




Re: [Zope] how do you iterate over tiny tables?

2000-05-22 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article <[EMAIL PROTECTED]>, Andrew
Kenneth Milton <[EMAIL PROTECTED]> writes
>
>
>
>
>
>
>
>This works for me. 

This code is in the index_html of the same folder containing the
tinytables.  It doesn't work for me unless I specify the folder as in

thisfolder.objectValues()

whereas all the examples I've seen don't need this. Using 2.1.4.

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

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOSjxF7TRdIWzaLpMEQIllQCeNBhRdPYs6+pO1uAX8Derq5mAzR4An0xQ
C5V5fjETLwc/MNy4k6ijIfbC
=xN4l
-END PGP SIGNATURE-

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