Re: [Zope-dev] Added rename to ZOPE FTP server

2001-01-22 Thread Chris Withers

Tom Vijlbrief wrote:
 
 Hi,
 
 I've added the rename capability to the Zope FTP-server,
 so I could use the KDE FTP client (this is a known Zope bug).

Cool :-)

Thank you very much

Have you put them into the collector?
http://classic.zope.org:8080/Collector/

cheers,

Chris

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




Re: [Zope-dev] How would I keep _v_* attributes from getting thrown away?

2001-01-22 Thread Dieter Maurer

John D. Heintz writes:
  I am using ZODB along with CORBA to expose peristent objects.  Some of 
  my objects have per-connection/session state.
  ...
  My initial idea is to have a _v_position attribute ...
Using "_v_" attributes for session state is a very bad idea.
They are thread(!) local and not session local.
This means, if a following request of your user (in the same session)
happens to get assigned a different thread, it will read
and update a different position. Chaos is garanteed (though you
will see it only, if your site is loaded).

Use a session product (- zope.org) for session data.


Dieter

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




Re: [Zope-dev] ZCatalog scalability

2001-01-22 Thread Dieter Maurer

Steve Alexander writes:
  Michael Bernstein wrote:
  
  
   Also, is there a way to disable wildcards in full text
   searches?
  
  Do not allow direct queries to search the catalog. Instead, make 
  searches go through an external method (or a PythonScript with Proxy 
  permissions) that uses string.replace to change '*' and '?' to ''.
Simply do not use a globbing vocabulary is another alternative.


Dieter

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




[Zope-dev] Annouce Developer Version DTML-Page-Contract

2001-01-22 Thread ender

hello zen masters

i just finished documenting a developer version of a port of the ACS's 
(arsdigita community system) acs_page_contract to dtml.  test it out,
i'm pretty sure everyone will be happy with the simplification of the 
resulting dtml. 

feed back and thoughts welcome.

if no bugs are found in the next week or so i'll make it a general release,
new filters are always welcome.

available at 

http://www.zope.org/Members/k_vertigo/PageContract.tgz

kapil


readme included below.

README.txt

INSTALL:
extract PageContact.tgz in your zope directory. it will create
a python product in lib/python/Products. you will need to
restart zope before you can use dtml-contract

UNINSTALL:
remove the PageContract directory from lib/python/Products and
restart zope.

I. What
Page-Contract is a python product that adds a new type of dtml-tag 
to your zope installation. dtml-contract is a multi-purpose tag that
is designed to provide documentation, marshalling and filtering of
request data, and custom error handling of the request data. the
documentation comes from a read only section of the contract 
which should describe the purpose of the object, its author, and
some information about its parameters. the marshalling and filtering
is done by naming variables expected in the request and associating
one or more filters with those variables. PageContract comes with
a set of prebuilt filters although it can easily be extended by
writing new filters. lastly it allows association of different
error handlers to different variables.


II. Why
Zope already includes facilties to perform simple marshalling of 
REQUEST values submitted via GET/POST into python data_types. This
facility is built into ZPublisher. There are a couple of problems
with this facility in real world usage. First, ZPublishers 
marshalling isn't secure because it retrievesmarshalling info from
the REQUEST, a cracker could perform url surgery to by pass
the marshalling. Second, ZPublishers marshalling isn't easily
extensible to provide application level support of. The marshalling
is buried square in the guts of the Publishing process, even if you
did extend it would be too early in the Publishing of the object to
perform any meaningful application specific processing (ie you don't
know where you're going so how do you know what you'll see when you 
get there). Third ZPublisher has no concept of excluding parts of 
the REQUEST that aren't needed, this is mitigated by Zope placing the
REQUEST on the bottom of the namespace stack, however it still 
provides a means for accidents (ie. you're expecting this object to have this
attr, but it doesn't but the REQUEST has that attr). dtml-contract 
can optionally strip the REQUEST of variables not explicitly named
within it. Fourth, ZPublisher is inflexible about how it handles 
errors. ZPublisher has hardcoded return values whenever it hits
a bad input AND it short circuits the evalutation. Users don't 
get informative messages regarding their errors other than they 
made one. dtml-contract differs in that it collects all errors 
and associates them with their variables and provides the option
of custom error pages on a variable by variable basis with 
information passing about the errors. (The current implementation
is limited in that it only passes a list of filter errors to the
error handler via a url string.)

The dtml-contract also hopes to offer a standardized form
of documenting your zope objects (DTML_METHODS, DOCUMENTS,
and the like) by standardizing on a documentation format
and a location for that documentation.


III. How
So how do you use it?

dtml-contract

Documentation about this object

@author Kapil Thangavelu [EMAIL PROTECTED]
@params myobj_id the id of the object where after
@params title we'll set the object's title to this value
@params thedate should be the range of the bada and bing
@params foobar optional integer value that tells us whats going on

dtml-params

myobj_id:objid
foobar:integer,optional
thedate:range(date, 1.1.1, 11/11/11)
title:string
dtml-exceptions
myobj_id:my_error_page
generic_error_page
/dtml-contract

Generally dtml-contracts should be used at the start of a dtml
page. why? so they can be easily referenced for documentation
and knowledge of the expected parameters.

Caveats. Note that there are no strict enforcements of the documentation
section. Although some future documentation extraction 

Re: [Zope-dev] How would I keep _v_* attributes from getting thrown away?

2001-01-22 Thread John D. Heintz

Thanks for the warning Dieter,

but I'm managing threads/connections/sessions/POAs and a few other 
things already to expose ZODB objects through CORBA sessions.

I wanted the _v_* attributes to live for the life of the DB Connections.

Last night I found a fix for the bug that prevented me from overriding 
the _p_deactivate() method on Persistent objects, so I think that I will 
just do this:

class ...
def _p_deactivate(self):
temp_position = self._v_position
Persistent._p_deactivate(self)
self._v_position = temp_position


Thanks for the help though.

John

Dieter Maurer wrote:

 John D. Heintz writes:
   I am using ZODB along with CORBA to expose peristent objects.  Some of 
   my objects have per-connection/session state.
   ...
   My initial idea is to have a _v_position attribute ...
 Using "_v_" attributes for session state is a very bad idea.
 They are thread(!) local and not session local.
 This means, if a following request of your user (in the same session)
 happens to get assigned a different thread, it will read
 and update a different position. Chaos is garanteed (though you
 will see it only, if your site is loaded).
 
 Use a session product (- zope.org) for session data.
 
 
 Dieter
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )



-- 
. . . . . . . . . . . . . . . . . . . . . . . .

John D. Heintz | Senior Engineer

1016 La Posada Dr. | Suite 240 | Austin TX 78752
T 512.633.1198 | [EMAIL PROTECTED]

w w w . d a t a c h a n n e l . c o m


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




[Zope-dev] Local roles and security of ZClass instances in Specialists

2001-01-22 Thread Itai Tavor

Hi,

I'm trying to work out a security strategy for data stored in 
Specialists, where specific users need access to specific data 
instances.

For example: A Customer object is linked to a Person and Address 
objects. The customer needs permission to edit the her - and only her 
- Address object. Using the Owner local role won't work, because 
customers can be registered by site managers and customer support 
people, in which case Owner won't be the customer.

I can solve this by giving the customer a local role when creating 
her Address object:

 Customers.addCustomer(REQUEST):
 ni = container.addItem(some_id)
 container.Addresses.addAddressFor(ni.id, REQUEST)

 Addresses.addAddressFor(for_id, REQUEST):
 ni = container.addItem(some_id)
 ni.manage_addLocalRole(for_id, 'EditMyDetails')

But this can be a lot of work - If an Address object can also be 
created for a CreditCard object, addCreditCard will have to both set 
its own local role, and pass the customer id on to Address...

But the main problem is that I'm not sure if it will work at all - 
can local roles be set for DataSkins that aren't stored in the ZODB? 
 From what I can see ZPatterns doesn't support this, so I'll have to 
do it myself. __ac_local_roles__ can't be accessed in a SkinScript - 
so will I have to override has_local_roles, get_local_roles and 
get_local_roles_for_userid and call them from the SkinScript? This is 
getting hairy...

Without local roles, all I can think of is explicitly checking that 
the logged in user is the right customer in all the methods that 
display and edit the object, which is very ugly. Plus it would 
require Address to know a customer_id even when it actually belongs 
to a CreditCard, not a Customer... there goes Demeter. Or I can add a 
findUserID to Address, CreditCard and Customer, all of which pass the 
request upwards until one is reached that actually knows the 
customer. Still ugly.

TIA for Any comments/suggestions.

Itai
-- 
Itai Tavor"Je sautille, donc je suis."
C3Works[EMAIL PROTECTED]  - Kermit the Frog

"If you haven't got your health, you haven't got anything"


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




[Zope-dev] Membership and the 2.3 beta2 ... bug in the latter!

2001-01-22 Thread Bill Anderson

Broke.
broke badly.

Not sur ecompletely why yet, but in 2.3b2, I can't move or copy a 
ZCatalog. There is one in the Membership interface, so as a result, no 
workie there.

After deleteing int from teh membership interface folder, I get a 
traceback complaining about too many arguments in checkRoles (3 instead of 
2). I haven't had time to dig into it yet, so I thought I would toss it up 
here so anyone with visibility to this issue can look at it.


Bill Anderson


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




Re: [Zope-dev] Specialist/Rack scalability

2001-01-22 Thread Michael Bernstein

"Phillip J. Eby" wrote:
 
 Just to expand a little on the abov...  Racks should scale at least as
 well, if not larger than a ZCatalog, given the same storage backing for the
 ZODB.  This is because ZCatalog has to manage a minimum of one forward and
 reverse BTree for *each* index, plus another few BTrees for overall storage
 and housekeeping.  Also, keyword and full text indexes store multiple BTree
 entries per object, so that's a factor as well.
 
 So don't worry about the Rack.  If you're using a Rack, you can store the
 data anywhere, and you can index it in an RDBMS, LDAP directory, ZCatalog,
 or some combination thereof, using triggers to keep the data in sync.

Thanks Philip, that's reassuring. I guess now I need to make
certain that the ZCatalog can scale as far as I need it to.

Michael Bernstein.

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




[Zope-dev] Is manage_add for products broken?

2001-01-22 Thread Jonothan Farr

Hello all,

One of the Local File System users pointed out that calling
manage_addLocalFS from dtml doesn't work. I did some checking and discovered
that calling manage_addXXX doesn't work for any of the built-in products
either. My testing was with 2.2.5. Am I crazy or didn't this work at one
time? Is there a way to work around this? I couldn't find one.

Thanks very much. Any help is appreciated.

--jfarr



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




Re: [Zope-dev] ZCatalog scalability

2001-01-22 Thread Michael Bernstein

We seem to have disposed of the wildcard issue [snipped out
below], and I'm looking forward to Eric's results, but does
anyone else have any information about whether there is a
practical upper limit on how many objects can be indexed and
searched in a ZCatalog?

Michael Bernstein wrote:
 
 After comsidering the feedback I got from the previous
 'Massive scalability' thread, I decided to split my queries
 into two areas: Rack scalability and ZCatalog scalability.
 This email deals with the latter.
 
 [snip]

 What I am interested in for my application are two things:
 
 - ZTopics populated using one or more keyword indexes
 
 - Full text search on a single computed attribute that
 concatenates several fields including the aforementioned
 keyword index fields and a few simple string attributes
 (title, caption, description, etc.)
 
 I need to know how far the ZCatalog will scale using this
 indexing and search strategy. Does anyone have anectodal or
 benchmark data to suggest if (and when) I will hit a 'wall'
 regarding the number of objects being indexed and searched?
 Some anectodal data suggests that single field indexing will
 scale easily to 60,000 objects, but what about hundreds of
 thousands or even millions of objects?

 [snip]

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




[Zope] ActiveState on Zope.org

2001-01-22 Thread Jason C. Leach

hi,

I'm kind of surprised that Active State has such a big promo on Zope.org's
site considering they use IIS; and considering the blurb talks about how
much they do for Open Source.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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, database field formats, output format of queries

2001-01-22 Thread Michael Schmidt


Hi,

having searched through zope's website at the weekend and gone 
through the mailinglist archive I did not find stuff regarding 
the below in FAQs or HOWTOs. The general idea behind zope and 
the features of it are wonderful. 

I'm thinking of one application and would like to know:

Can you create fields in a zope based database where you force 
the fields to accept e.g. only letters "M" or "W" or any other 
other combination of your choice?

Can you setup database fields with a format e.g. of "9/99/9" 
where all 9s mean numeric input 0-9 and the slashs are always 
put at their fixed positions by the software when the field is 
displayed for input?

Can you setup database fields with a date format e.g. DD/MM/ 
or MM/ which *force* the user to input values in that format?

Can you output queries of databases in a format you can choose 
yourself, that the output fields may be incorporated into 
serial letters to be run by/through text-processing or office 
systems?

Would be fine to get your responses.
I appreciate your feedback. 

Have a nice day
Michael

-- 
Michael  Schmidt [EMAIL PROTECTED]
MIRROR OF
Ghostscript  *  X-Windows X11  *  DJGPP  *  and more...

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

2001-01-22 Thread Ulrich Wisser

Hello,

I try to access LocalFS from my own DTML method.
(Exactly from my PathHandler method.) I got all
directory information in one array like this

path_to_handle = ['sub1', 'sub2', 'sub3']

How can a get a directory listining with LocalFS
for path "/sub1/sub2/sub3/"? I know I need something
like "lfs['sub1']['sub2']['sub3'].fileids". But
what if there are more (or less) elements in path_to_handle?

I hope made my point clear?

Thanks

Ulli

-- 
Searchengine Know How  - Webpromotion - Optimization - Internal Search
World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg
http://www.publisher.de   Tel: +46-8-53460905Fax: +46-8-534 609 06


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

2001-01-22 Thread Andreas Tille

On Fri, 19 Jan 2001, Chris Withers wrote:

 That's actually a really bad way to back up Zope :-S
 
 Copying data.fs is much more reliable and _much_ less strenuous on your server,
 especially if it's a big Data.fs
But I really want to do the backup on a "per project" basis because
I often work on a laptop and really don't need all of the projects
in data.fs.  Is there any reason *why* this is a "bad way"?

Kind regards

Andreas.


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

2001-01-22 Thread Oleg Broytmann

On Sun, 21 Jan 2001, Tom Deprez wrote:
 Can somebody provide me informational links of documents which present the
 benefits and non-benefits of both DB? eg. When to use one and when not to
 use one?

   http://www.zope.org/Members/anthony/sql_vs_ZODB

Oleg.

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


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




Re: [Zope] Object DB versus Relational DB

2001-01-22 Thread Rik Hoekstra



Tom Deprez wrote:
 
 Hi,
 
 Can somebody provide me informational links of documents which present the
 benefits and non-benefits of both DB? eg. When to use one and when not to
 use one?
 
 Thanks,
 Tom.

A starting point is http://www.zope.org/Members/anthony/sql_vs_ZODB

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] Zope 2.3.0b2 bug #2

2001-01-22 Thread Oleg Broytmann

On Sat, 20 Jan 2001, Aleksander Salwa wrote:
  meta http-equiv="content-type" content="text/html; charset=iso-8859-1"
 
 This is WRONG way of doing! Please stop it and don't do it :) Meanwhile
  - where I can turn this off?

 It would be very nice, if we could set it somewhere in configuration.
 Till now (Zope 2.2.x) I have to patch Zope (some *.dtml files, and even
 some *.py files) in order to have proper Content-Type headers on my
 management screens (specifically iso-8859-2).

   Oh, NO! This should be handled in HTTP, not HTML! HTTP responce shold
give correct Conten-Type header.
   With Apache, it is easy to configure. But I certainly don't want to
force all my editors to use one fixed encoding. This because some of us use
KOI8-R encoding (UNIX), and other use windows-1251 (gues the OS). This is
at least browser/user preference, not a server-side option.
   Russian Apache (specially patched version of Apache) correctly handles
this on HTTP level...

Oleg.

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


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




RE: [Zope] Object DB versus Relational DB

2001-01-22 Thread Markus Kemmerling

Here is a short, but useful HowTo:

http://www.zope.org/Members/anthony/sql_vs_ZODB

Markus Kemmerling

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom
 Deprez
 Sent: Sunday, January 21, 2001 11:50 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Object DB versus Relational DB
 
 
 Hi,
 
 Can somebody provide me informational links of documents which present the
 benefits and non-benefits of both DB? eg. When to use one and when not to
 use one?
 
 Thanks,
 Tom.
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 


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

2001-01-22 Thread Paul Browning




 Can somebody provide me informational links of documents which present
 the benefits and non-benefits of both DB? eg. When to use one and when
 not to use one?

Not sure if these papers specifically answer your question but
I found them insightful:

XML and Databases
XML Database Products

http://www.rpbourret.com/

Paul

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


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




Re: [Zope] Re: How to backup Zope data base?

2001-01-22 Thread Chris Withers

"Mayers, Philip J" wrote:
 
 Well, bad _technically_, or bad _evil_?

Well, doing an XML export as opposed to a cp is probably a lot more
processor-intensive...

 It does have the sole advantage you can pull a portion of your tree, 

true...

 and
 some people have had Data.fs problems (not me thankfully). But in general
 I'd guess backing up Data.fs to be the best way. How does it copy with
 non-atomicity of disk writes?

Very well, apparently :-) It's a sequential transaction log, so, at worst,
you'll loose the last transaction...

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] ActiveState on Zope.org

2001-01-22 Thread Martijn Pieters

On Mon, Jan 22, 2001 at 12:35:53AM -0800, Jason C. Leach wrote:
 I'm kind of surprised that Active State has such a big promo on Zope.org's
 site considering they use IIS; and considering the blurb talks about how
 much they do for Open Source.

If you read the case study, you'll see that they use Zope extensively for
their mailing list archives, their documentation and the CPAN info server.

ActiveState, like many companies (Greenpeace springs to mind) is using
Zope to build new sites. Existing websites often have cost lots of time
and money to build, not everyone is ready to immediatly dump the existing
code for something else, however much better.

And if you browse the ActiveState site some more, you'll see what they do
for OSS. Who says that an OSS shop needs to run exclusively on OSS or has
no right to sell software solutions? We at Digital Creations also use
Windows NT and other commercial software, and our services also come with
a price tag.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators 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] form question

2001-01-22 Thread Oliver Vecernik

Hi all,

I'm a newbie to Zope and Python. Nevertheless I'd like to start with it.
I'm designing an application gathering data with forms. Navigation
should be done with Prev and Next buttons. As long as I'm not leaving
the form data should be entered, processed and the *same* or another
form should be displayed, depending on input of the user.

So far I'm able to gather data, store them in a database, but can
anybody give me a clue or point me to some docs how to control which
form should be displayed next? It should depend on users input of let's
say a text field.

Oliver

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




[Zope] Adding roles in 2.3b2 and CVS

2001-01-22 Thread Phil Harris



All,

Has anyone else had trouble adding roles when using 
2.3b2 and CVS versions of Zope?

There seems to be a consistent bug in 
ZopeDIR/lib/python/AccessControl/role.py.

The calls to self.manage_access(self,REQUEST) seem 
to have too many arguments, am I right?

I 'fixed' my version of the file ut someone with 
more nouse will need to check this out.

Would this be better reported in the 
collector?

Phil
[EMAIL PROTECTED]



Re: [Zope] Adding roles in 2.3b2 and CVS

2001-01-22 Thread Martijn Pieters

On Mon, Jan 22, 2001 at 11:31:27AM -, Phil Harris wrote:
 Has anyone else had trouble adding roles when using 2.3b2 and CVS versions of Zope?
 
 There seems to be a consistent bug in ZopeDIR/lib/python/AccessControl/role.py.
 
 The calls to self.manage_access(self,REQUEST) seem to have too many arguments, am I 
right?
 
 I 'fixed' my version of the file ut someone with more nouse will need to check this 
out.
 
 Would this be better reported in the collector?

Reporting to the Collector is a good idea, especially if you can reproduce
the problem.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators 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] Object DB versus Relational DB

2001-01-22 Thread Luciano Ramalho

ZODB with Data.fs is optimized to fetch data. Inserts or updates have a
lot of overhead. It's the price we pay for the excellent versioning
features. Therefore, when the are many  we have been avoinding ZODB even
when the problem domain calls for an OODB

We have implemented a highly hierarchical database for a Yahoo-like
directory using a recipe found in the book SQL for Smarties, by Joe
Celko, ISBN 1-55860-323-9 (see Chapter 26 - Trees).

Celko's solutions allow for a hierarchy with unlimited levels and,
amazingly, it does not require sub-selects or any other construct
unsupported by MySQL.

The rest of the book is filled with solutions to problems that test the
limits of the relational database model.

Best regards,

Luciano Ramalho


Tom Deprez wrote:
 
  A starting point is http://www.zope.org/Members/anthony/sql_vs_ZODB
 
 Reading this text is exactly the problem I'm having. Unfortunately, it
 doesn't give much examples.
 I hope somebody can give me some answers on my question :
 
 The problem I'm facing is the following. I've got a lot parent-child
 relationships - OODB
 But, I also need to perform some queries on these records and link some to
 each other - more RDB.
 
 I'm not sure which way to follow. A hybrid solution isn't the best one, I
 think, because then you do twice the same work. ie. You've to create the
 parent-child relationship in the OODB (the site structure) and in the RDB
 (to perform correct queries).
 
 The RDB solution is possible, but since I need lots of parent-child
 relationships not the best one.
 
 The OODB is probably the best. However, this implies several implementation
 problems I don't know how to solve at the moment. Can somebody elaborate on
 the following questions? Thanks in advance.
 
 Assume the following :
 
 Group1
SubGroup1
   SubGroupA
   Problem1
   Examination1
 Equipment1
   Paremeters
 Equipment2
   Parameters
   Examination2
 
 
 
 Campus1
Room1
  Equipment1
  Equipment2
Room2
 
 
 
 Now,  if a person is creating a new equipment in Examination2. How can I
 show it all the avalailable equipments in Campus1? So this person can choose
 from it and create it in the examination2 folder? In an OODB environment?
 
 If a person is browsing in Room1 and wants to get all the examinations which
 will be performed on Equipment1. How do I create such a query in OODB? (Or
 even further, the person wants to see all the examinations done on
 equipment1, but only with Group=Group1 and SubGroup=SubGroup1
 
 How can this be done in Zope?
 
 Thanks in advance,
 
 Tom.
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

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

2001-01-22 Thread Tom Deprez



 ZODB with Data.fs is optimized to fetch data. Inserts or updates have a
 lot of overhead. It's the price we pay for the excellent versioning
 features. Therefore, when the are many  we have been avoinding ZODB even
 when the problem domain calls for an OODB

Thanks for the link. However, the information in the database will not
change much. Once the data is nin their, only sometimes data will be
updated, inserted or deleted. So, the versioning system won't be a problem.


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

2001-01-22 Thread Michael Angelo

hi,

i am experiencing a strange problem with using the mailhost example on
zope.com.

here is the code:

dtml-var standard_html_header

dtml-sendmail mailhost="MailHost"
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Feedback from the web

message goes here
/dtml-sendmail

h1Thank you for your input!/h1
pYour comments have been sent./p

dtml-var standard_html_footer

here is the traceback:

Error Type: TypeError
Error Value: len() of unsized object

Traceback (innermost last):
  File C:\PROGRA~1\numan\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\PROGRA~1\numan\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File C:\PROGRA~1\numan\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File C:\PROGRA~1\numan\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File C:\PROGRA~1\numan\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: SendFeedback)
  File C:\PROGRA~1\numan\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: SendFeedback)
  File C:\PROGRA~1\numan\lib\python\OFS\DTMLMethod.py, line 172, in __call__
(Object: SendFeedback)
  File C:\PROGRA~1\numan\lib\python\DocumentTemplate\DT_String.py, line 528,
in __call__
(Object: SendFeedback)
  File C:\PROGRA~1\numan\lib\python\Products\MailHost\SendMailTag.py, line
188, in render
(Object: MailHost)
  File C:\PROGRA~1\numan\lib\python\Products\MailHost\MailHost.py, line 222,
in send
(Object: MailHost)
  File C:\PROGRA~1\numan\bin\lib\smtplib.py, line 465, in sendmail
  File C:\PROGRA~1\numan\bin\lib\smtplib.py, line 349, in mail
  File C:\PROGRA~1\numan\bin\lib\smtplib.py, line 118, in quoteaddr
  File C:\PROGRA~1\numan\bin\lib\rfc822.py, line 451, in parseaddr
  File C:\PROGRA~1\numan\bin\lib\rfc822.py, line 496, in getaddrlist
  File C:\PROGRA~1\numan\bin\lib\rfc822.py, line 504, in getaddress
  File C:\PROGRA~1\numan\bin\lib\rfc822.py, line 484, in gotonext
TypeError: (see above)

maybe it doesn't like the address? i have checked the host/port connection,
it's ok.
any ideas appreciated.

thanks

mike


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

2001-01-22 Thread aZaZel

Michael Angelo wrote:

 hi,
 
 i am experiencing a strange problem with using the mailhost example on
 zope.com.
 
 here is the code:
 
 dtml-var standard_html_header
 
 dtml-sendmail mailhost="MailHost"
 To: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED]
 Subject: Feedback from the web
 
 message goes here
 /dtml-sendmail
 
 h1Thank you for your input!/h1
 pYour comments have been sent./p
 
 dtml-var standard_html_footer
 
Yes...I have found this error tootry specifing  mail properties 
using  the attributes of the dtml-sendamail tag like

dtml-sendmail  mailfrom="[EMAIL PROTECTED]" 
mailto="[EMAIL PROTECTED]" subject="Feedback from web"


message goes here

/dtml-sendmail


I have resolved my problem with this trick...it's not so flexible as 
specify the attributes in the body...

hope this helps...

Alberto


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

2001-01-22 Thread Evan Simpson

From: Michael Angelo [EMAIL PROTECTED]
 i am experiencing a strange problem with using the mailhost example on
 zope.com.

Is your code indented the way it is in your email?  I don't think
dtml-sendmail and its contents should be indented, since the contents are
meant to be the literal text of the message and its headers.

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] mailhost example problem

2001-01-22 Thread Geoffrey L. Wright

"Michael Angelo" [EMAIL PROTECTED] writes:

 hi,
 
 i am experiencing a strange problem with using the mailhost example on
 zope.com.
snip


This might sound totally off the wall, but I think that anything
enclosed in dtml-sendmail tags can't have any preceding whitespace.

Try this:


dtml-var standard_html_header

dtml-sendmail mailhost="MailHost"
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Feedback from the web

message goes here
/dtml-sendmail

  h1Thank you for your input!/h1
  pYour comments have been sent./p

dtml-var standard_html_footer


I think I remember having this same issue once upon a time.  But then,
it's 4:42 Alaska-time, so it may just be that I need to go to bed
now...

 thanks
 
 mike

//glw


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

2001-01-22 Thread Michael Angelo

that was the problem. i never would have thought of that! :-0

thanks :-)

-mike-

-Original Message-
From: Evan Simpson [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 11:51 AM
To: Michael Angelo; [EMAIL PROTECTED]
Subject: Re: [Zope] mailhost example problem


From: Michael Angelo [EMAIL PROTECTED]
 i am experiencing a strange problem with using the mailhost example on
 zope.com.

Is your code indented the way it is in your email?  I don't think
dtml-sendmail and its contents should be indented, since the contents are
meant to be the literal text of the message and its headers.

Cheers,

Evan @ digicool  4-am


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




[Zope] Alternating Row Colors

2001-01-22 Thread Darin Lee

Lee,

Alternating row colors are very easy in Zope because of the variables 'sequence-odd' 
and 'sequence-even' defined by the dtml-in tag.

A super quick example:

table bgcolor="#ff"
dtml-in some_list
 tr dtml-if sequence-oddbgcolor="#EE"/dtml-if
   tdYour cell data here/td
 /tr
/table

You can code variations on this to get what you need.

-Darin




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

2001-01-22 Thread Jonathan \(Listserv Account\)

 And if you browse the ActiveState site some more, you'll see
 what they do for OSS. Who says that an OSS shop needs to run
 exclusively on OSS or has no right to sell software
 solutions? We at Digital Creations also use Windows NT and
 other commercial software, and our services also come with
 a price tag.

Well put. Couldn't agree more. Take the best tool for the job, based not
only on software quality and price, but also on development time,
available expertise and stuff that's already in place. In some cases
that means you can build a totally open solution based on OSS. In other
cases it means a closed solution based on Microsoft products for
example.

In most cases however it's a mix of multiple hardware and software
platforms, in which OSS fits well because of the 'Open' part. I for one
will recommend OSS most of the time (because of price, performance,
managebility and stability), but there are a number of situations where
a 'closed' piece of software is a better fit.

HTH
Jonathan


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

2001-01-22 Thread Spicklemire, Jerry

Hi Adrian

 I tried this about 6 months ago. It seems that Micro$oft 
 changed that protocol that SQL7.0 uses, just enough to prevent 
 Sybase connectors from working. (I probably should have 
 mentioned 7.0 in the message... sorry)

Ouch! There are some other options, a few of which I've tried, mostly some
variation on ODBC, many of them listed here, (some even with links):

 http://www.zope.org/Members/mcdonc/RelationalDatabaseWiki/ODbC

There is a quasi-mythical ODBC DA for Linux that I have yet to successfully
implement, but you can find some hints here :

 http://www.zope.org/Members/jrush/news_ZODBCDA_solid_linux

Good luck!,
Jerry S.




 
 

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

2001-01-22 Thread Andreas Tille

On Fri, 19 Jan 2001, Stephane Bortzmeyer wrote:

 I agree it is one of the MAIN problems with Zope. You have my support. A good way to 
have a read-write (at least a readonly) view of the ZODB would change things a lot. 
Just to make sure that I did not missunderstood something:  I wanted to
use PostgreSQL instead of ZODB for Zope contents.  I did not read *how*
to do this but I did not dive very deep into Zope but I think I have read
anywhere that this is possible.  Accessing PostgreSQL (searching!)
shouldn't be a problem.

What about this idea?
Are there any drawbacks (if it is possible at all)?

Kind regards

  Andreas.


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

2001-01-22 Thread Andreas Tille

On Fri, 19 Jan 2001, Steve Spicklemire wrote:

 2) When you are 'editing' a Zope object you use 
 an editor that knows about FTP (e.g., emacs), WebDAV or
 a web browser.
Sorry for my ignorance.  I tried using emacs with ange-ftp and it
works.  But what is WebDAV?  I've read this word first time in this
thread and don't have the slightest idea what it is.

Kind regards

   Andreas.


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

2001-01-22 Thread Phil Harris

Andreas,

see www.webdav.org and the w3 pages on it (www.w3.org) 

Phil

- Original Message - 
From: "Andreas Tille" [EMAIL PROTECTED]
Cc: "Zope user list" [EMAIL PROTECTED]
Sent: Monday, January 22, 2001 2:25 PM
Subject: [Zope] Re: Tools used for programming Zope


 On Fri, 19 Jan 2001, Steve Spicklemire wrote:
 
  2) When you are 'editing' a Zope object you use 
  an editor that knows about FTP (e.g., emacs), WebDAV or
  a web browser.
 Sorry for my ignorance.  I tried using emacs with ange-ftp and it
 works.  But what is WebDAV?  I've read this word first time in this
 thread and don't have the slightest idea what it is.
 
 Kind regards
 
Andreas.
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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] ActiveState on Zope.org

2001-01-22 Thread Gregor Hoffleit

On Mon, Jan 22, 2001 at 11:32:29AM +0100, Martijn Pieters wrote:
 And if you browse the ActiveState site some more, you'll see what they do
 for OSS.

 Who says that an OSS shop needs to run exclusively on OSS or has
 no right to sell software solutions? 

 We at Digital Creations also use Windows NT and other commercial software,
 and our services also come with a price tag. 

Just for the record:

The "right to sell software solutions" and the right to do "services with a
price tag" are even very crucial and important points in the world of free
software (read about RMS position in "Selling Free Software" at
http://www.gnu.org/philosophy/selling.html).

What the free software community dislikes is selling *proprietary* software
solutions.

In my own words: Money flow is no problem at all, as long as it doesn't take
away any crucial freedoms ;-).

Gregor


PS: The crucial point about selling free software is certainly that you get
paid for the solution and for the work being done, not for the license to
use the software.

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




RE: [Zope] Zope 2.3.0b2 bug #2

2001-01-22 Thread Brian Lloyd

  This is WRONG way of doing! Please stop it and don't do it 
 :) Meanwhile
   - where I can turn this off?
 
  It would be very nice, if we could set it somewhere in configuration.
  Till now (Zope 2.2.x) I have to patch Zope (some *.dtml files, and even
  some *.py files) in order to have proper Content-Type headers on my
  management screens (specifically iso-8859-2).
 
Oh, NO! This should be handled in HTTP, not HTML! HTTP responce shold
 give correct Conten-Type header.
With Apache, it is easy to configure. But I certainly don't want to
 force all my editors to use one fixed encoding. This because some 
 of us use
 KOI8-R encoding (UNIX), and other use windows-1251 (gues the OS). This is
 at least browser/user preference, not a server-side option.
Russian Apache (specially patched version of Apache) correctly handles
 this on HTTP level...

FYI - I've taken out the charset declaration altogether for beta 3, 
since this is obviously an issue that needs more thought. Since 
Zope 2.4 will be the Python 2 (unicode) release, we should start 
a fishbowl project to work out how / whether Zope should deal with
charset issues for the 2.4 release...


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





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




[Zope] REMOTE_ADDR

2001-01-22 Thread Marcus Mendes

Hello,

Where can I find (and use) the variable REMOTE_ADDR? I've a python
function that deal with REMOTE_ADDR, but I've got the IP address's Zope
Server Machine. I looked at Z2.log and find the same IP, ie. the
address's Zope Server Machine. I need the remote address. I'm using
SiteAccess and Zope 2.2.4 on Linux. I don't understand ...


Thanks in advance.

Marcus Mendes

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




RE: [Zope] Zope 2.3.0b2 bug #2

2001-01-22 Thread Oleg Broytmann

On Mon, 22 Jan 2001, Brian Lloyd wrote:
 FYI - I've taken out the charset declaration altogether for beta 3,

   Thanks.

 since this is obviously an issue that needs more thought. Since

   Sure. Language/encoding issues are hard to implement, though. There are
servers, proxies, browsers - and almost none of them obey standards
correctly :(

 Zope 2.4 will be the Python 2 (unicode) release, we should start
 a fishbowl project to work out how / whether Zope should deal with
 charset issues for the 2.4 release...

   Hm, will you fix my browser, too? I am using Netscape for Linux, don't
know how well it plays with Unicode. I suppose it plays bad :(
   My only hope is to have Mozilla  at the time of Zope 2.4. Anyone here
knows how Mozilla handles Unicode?

Oleg.

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


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




[Zope] Numeric Entries in Catalog Search

2001-01-22 Thread Tim Cook


I have done the requisite searches and cannot find any reference
to this problem. So it must be something I'm overlooking.

I want to search for properties that have a certain number in
them, that are stored as strings. Such as zipcode or date of
birth (there are reasons why we don't use a date object) or any
other sequence of digits.

I specified in the catalog that I wanted a Textfield index for
these. In the search form I specify the input with the :string
type. I would have assumed that these would work just like Last
Name and First Name work (which BTW work fine). But the numeric
strings never find a match even though the properties exist with
the data in them and the objects are registered in the catalog.

Example: (folderish ZClass object)
Ann Jackson with a DOB of 1960/01/01

I can find her with a* in the first_name
I can find her with j* in the last_name
I cannot find her with 1960* or for that matter 1960/01/01 in the
dob.

Any clues here?

-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Nearly everyone will lie to you given the  right
circumstances."  
- Bill Clinton

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Adding roles in 2.3b2 and CVS

2001-01-22 Thread Mayers, Philip J

I've got this problem as well - who wants to report it?

Zope Version  Zope 2.3.0b2 (source release, python 1.5.2, linux2)  
Python Version  1.5.2 (#1, Dec 21 2000, 15:29:32) [GCC egcs-2.91.66
19990314/Linux (egcs-  
System Platform  linux-sparc  
Process Id  23242 (1024)  
Running For  18 hours 53 min 23 sec  

Error Type: TypeError
Error Value: too many arguments; expected 2, got 3

Traceback (innermost last):
  File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/Zope23/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/Zope23/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: manage_defined_roles)
  File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: manage_defined_roles)
  File /usr/local/Zope23/lib/python/AccessControl/Role.py, line 489, in
manage_defined_roles
(Object: ApplicationDefaultPermissions)
TypeError: (see above)


Regards,
Phil

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

-Original Message-
From: Martijn Pieters [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2001 12:02
To: Phil Harris
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] Adding roles in 2.3b2 and CVS


On Mon, Jan 22, 2001 at 11:31:27AM -, Phil Harris wrote:
 Has anyone else had trouble adding roles when using 2.3b2 and CVS versions
of Zope?
 
 There seems to be a consistent bug in
ZopeDIR/lib/python/AccessControl/role.py.
 
 The calls to self.manage_access(self,REQUEST) seem to have too many
arguments, am I right?
 
 I 'fixed' my version of the file ut someone with more nouse will need to
check this out.
 
 Would this be better reported in the collector?

Reporting to the Collector is a good idea, especially if you can reproduce
the problem.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators 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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope 2.3.0b2 bug #2

2001-01-22 Thread Michael Bernstein

Oleg Broytmann wrote:
 
 On Mon, 22 Jan 2001, Brian Lloyd wrote:
  FYI - I've taken out the charset declaration altogether for beta 3,
 
Thanks.
 
  since this is obviously an issue that needs more thought. Since
 
Sure. Language/encoding issues are hard to implement, though. There are
 servers, proxies, browsers - and almost none of them obey standards
 correctly :(

The chosen language/encoding solution will likely have to be
implemented along with some sort of language/encoding policy
interface, so that the exact behaviour can be set by the
server administrator, and possibly overridden by managers at
different points in the tree.

I would suggest that the default setting (in the startup
script) be fully standards compliant, but a systems
administrator should still be able to select another
behaviour for Zope if they wish (including disallowing
managers to override).

Sorry this is a bit vague, need coffee.

Michael Bernstein.

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

2001-01-22 Thread FR Chalaoux

Hi,

I installed Zope-2.2.5.src on bsdi 3.0, with Python 2.0. Compilation
runned fine but when I run ./start I obtain the followinfg error :

bash-2.02$ ./start
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File
"/usr/local/apache/htdocs/commercial/advl/zope/Zope-2.2.5-src/z2.py",
line 283, in ?
import os, sys, getopt, string
ImportError: No module named os

start file
=
#! /bin/sh
reldir=`dirname $0`
PYTHONHOME=`cd $reldir; pwd`
export PYTHONHOME
exec /usr/local/bin/python \
 $PYTHONHOME/z2.py \
 -D "$@"


Suggestions?

Bye, FR





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




[Zope] Using a Session variable in a dtml-var

2001-01-22 Thread Paul Zwarts

Hi all,

Im trying to call a variable from SQLSession and then use it in a var.

I am using SQLSession to store the 'zone' value which I want to call in
the index_html document to then include a specific dtml-method depending
on the variable that the Session returns.

SESSION['zone'] will equal 'Home', so I want to:
dtml-var Home, where 'Home' is a dtml-method that contains html and
dtml that is specific to the page I want called.

so I've tried:
   dtml-var name="SESSION['zone']"
   dtml-var "PARENTS[-1].BC2.SESSION['zone']"

...But I cant seem to get it to work and I've spent hours searching the
zope site

I'm also trying to do the same thing with other methods that contain
interface html and all are name by
A_name
B_name called from SESSION['interface']

so I wanted to do something like:

   dtml-var name="'A_'+SESSION['interface']"

Which of course doesnt work either

Can anyone help?

Thanks very much in advance.
Paz


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Adding roles in 2.3b2 and CVS

2001-01-22 Thread Phil Harris

btw,  follow on from my last post, looks like the original problem is
already fixed in CVS.

- Original Message -
From: "Mayers, Philip J" [EMAIL PROTECTED]
To: "'Martijn Pieters'" [EMAIL PROTECTED]; "Phil Harris"
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, January 22, 2001 3:57 PM
Subject: RE: [Zope] Adding roles in 2.3b2 and CVS


 I've got this problem as well - who wants to report it?

 Zope Version  Zope 2.3.0b2 (source release, python 1.5.2, linux2)
 Python Version  1.5.2 (#1, Dec 21 2000, 15:29:32) [GCC egcs-2.91.66
 19990314/Linux (egcs-
 System Platform  linux-sparc
 Process Id  23242 (1024)
 Running For  18 hours 53 min 23 sec

 Error Type: TypeError
 Error Value: too many arguments; expected 2, got 3

 Traceback (innermost last):
   File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 222, in
 publish_module
   File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 187, in
 publish
   File /usr/local/Zope23/lib/python/Zope/__init__.py, line 221, in
 zpublisher_exception_hook
 (Object: ApplicationDefaultPermissions)
   File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 171, in
 publish
   File /usr/local/Zope23/lib/python/ZPublisher/mapply.py, line 160, in
 mapply
 (Object: manage_defined_roles)
   File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 112, in
 call_object
 (Object: manage_defined_roles)
   File /usr/local/Zope23/lib/python/AccessControl/Role.py, line 489, in
 manage_defined_roles
 (Object: ApplicationDefaultPermissions)
 TypeError: (see above)


 Regards,
 Phil

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

 -Original Message-
 From: Martijn Pieters [mailto:[EMAIL PROTECTED]]
 Sent: 22 January 2001 12:02
 To: Phil Harris
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope] Adding roles in 2.3b2 and CVS


 On Mon, Jan 22, 2001 at 11:31:27AM -, Phil Harris wrote:
  Has anyone else had trouble adding roles when using 2.3b2 and CVS
versions
 of Zope?
 
  There seems to be a consistent bug in
 ZopeDIR/lib/python/AccessControl/role.py.
 
  The calls to self.manage_access(self,REQUEST) seem to have too many
 arguments, am I right?
 
  I 'fixed' my version of the file ut someone with more nouse will need to
 check this out.
 
  Would this be better reported in the collector?

 Reporting to the Collector is a good idea, especially if you can reproduce
 the problem.

 --
 Martijn Pieters
 | Software Engineer  mailto:[EMAIL PROTECTED]
 | Digital Creations  http://www.digicool.com/
 | Creators 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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] REMOTE_ADDR

2001-01-22 Thread Oleg Broytmann

On Mon, 22 Jan 2001, Marcus Mendes wrote:
 Where can I find (and use) the variable REMOTE_ADDR? I've a python
 function that deal with REMOTE_ADDR, but I've got the IP address's Zope
 Server Machine. I looked at Z2.log and find the same IP, ie. the
 address's Zope Server Machine. I need the remote address. I'm using
 SiteAccess and Zope 2.2.4 on Linux. I don't understand ...

   Do you use Apache? Which way do you connect Zope and Apache?

Oleg.

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


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




Re: [Zope] Adding roles in 2.3b2 and CVS

2001-01-22 Thread Phil Harris

Looks like it could be the same problem, just in a different place.

- Original Message -
From: "Mayers, Philip J" [EMAIL PROTECTED]
To: "'Martijn Pieters'" [EMAIL PROTECTED]; "Phil Harris"
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, January 22, 2001 3:57 PM
Subject: RE: [Zope] Adding roles in 2.3b2 and CVS


 I've got this problem as well - who wants to report it?

 Zope Version  Zope 2.3.0b2 (source release, python 1.5.2, linux2)
 Python Version  1.5.2 (#1, Dec 21 2000, 15:29:32) [GCC egcs-2.91.66
 19990314/Linux (egcs-
 System Platform  linux-sparc
 Process Id  23242 (1024)
 Running For  18 hours 53 min 23 sec

 Error Type: TypeError
 Error Value: too many arguments; expected 2, got 3

 Traceback (innermost last):
   File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 222, in
 publish_module
   File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 187, in
 publish
   File /usr/local/Zope23/lib/python/Zope/__init__.py, line 221, in
 zpublisher_exception_hook
 (Object: ApplicationDefaultPermissions)
   File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 171, in
 publish
   File /usr/local/Zope23/lib/python/ZPublisher/mapply.py, line 160, in
 mapply
 (Object: manage_defined_roles)
   File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 112, in
 call_object
 (Object: manage_defined_roles)
   File /usr/local/Zope23/lib/python/AccessControl/Role.py, line 489, in
 manage_defined_roles
 (Object: ApplicationDefaultPermissions)
 TypeError: (see above)


 Regards,
 Phil

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

 -Original Message-
 From: Martijn Pieters [mailto:[EMAIL PROTECTED]]
 Sent: 22 January 2001 12:02
 To: Phil Harris
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope] Adding roles in 2.3b2 and CVS


 On Mon, Jan 22, 2001 at 11:31:27AM -, Phil Harris wrote:
  Has anyone else had trouble adding roles when using 2.3b2 and CVS
versions
 of Zope?
 
  There seems to be a consistent bug in
 ZopeDIR/lib/python/AccessControl/role.py.
 
  The calls to self.manage_access(self,REQUEST) seem to have too many
 arguments, am I right?
 
  I 'fixed' my version of the file ut someone with more nouse will need to
 check this out.
 
  Would this be better reported in the collector?

 Reporting to the Collector is a good idea, especially if you can reproduce
 the problem.

 --
 Martijn Pieters
 | Software Engineer  mailto:[EMAIL PROTECTED]
 | Digital Creations  http://www.digicool.com/
 | Creators 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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Adding roles in 2.3b2 and CVS

2001-01-22 Thread Brian Lloyd

Already fixed in CVS guys - thanks though!


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




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Mayers, Philip J
 Sent: Monday, January 22, 2001 10:58 AM
 To: 'Martijn Pieters'; Phil Harris
 Cc: [EMAIL PROTECTED]
 Subject: RE: [Zope] Adding roles in 2.3b2 and CVS


 I've got this problem as well - who wants to report it?

 Zope Version  Zope 2.3.0b2 (source release, python 1.5.2, linux2)
 Python Version  1.5.2 (#1, Dec 21 2000, 15:29:32) [GCC egcs-2.91.66
 19990314/Linux (egcs-
 System Platform  linux-sparc
 Process Id  23242 (1024)
 Running For  18 hours 53 min 23 sec

 Error Type: TypeError
 Error Value: too many arguments; expected 2, got 3

 Traceback (innermost last):
   File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 222, in
 publish_module
   File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 187, in
 publish
   File /usr/local/Zope23/lib/python/Zope/__init__.py, line 221, in
 zpublisher_exception_hook
 (Object: ApplicationDefaultPermissions)
   File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 171, in
 publish
   File /usr/local/Zope23/lib/python/ZPublisher/mapply.py, line 160, in
 mapply
 (Object: manage_defined_roles)
   File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 112, in
 call_object
 (Object: manage_defined_roles)
   File /usr/local/Zope23/lib/python/AccessControl/Role.py, line 489, in
 manage_defined_roles
 (Object: ApplicationDefaultPermissions)
 TypeError: (see above)


 Regards,
 Phil

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

 -Original Message-
 From: Martijn Pieters [mailto:[EMAIL PROTECTED]]
 Sent: 22 January 2001 12:02
 To: Phil Harris
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope] Adding roles in 2.3b2 and CVS


 On Mon, Jan 22, 2001 at 11:31:27AM -, Phil Harris wrote:
  Has anyone else had trouble adding roles when using 2.3b2 and
 CVS versions
 of Zope?
 
  There seems to be a consistent bug in
 ZopeDIR/lib/python/AccessControl/role.py.
 
  The calls to self.manage_access(self,REQUEST) seem to have too many
 arguments, am I right?
 
  I 'fixed' my version of the file ut someone with more nouse will need to
 check this out.
 
  Would this be better reported in the collector?

 Reporting to the Collector is a good idea, especially if you can reproduce
 the problem.

 --
 Martijn Pieters
 | Software Engineer  mailto:[EMAIL PROTECTED]
 | Digital Creations  http://www.digicool.com/
 | Creators 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 maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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] Get an object's owner

2001-01-22 Thread Gilles Durys

Hello,

I'd like to now how to retrieve an object's owner id so I can use 
display it in a DTML document.
-- 
Gilles Durys


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




[Zope] Problem to start zope

2001-01-22 Thread FR Chalaoux

Hi,

I installed Zope-2.2.5.src on bsdi 3.0, with Python 2.0. Compilation
runned fine but when I run ./start I obtain the followinfg error :

bash-2.02$ ./start
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File
"/usr/local/apache/htdocs/commercial/advl/zope/Zope-2.2.5-src/z2.py",
line 283, in ?
import os, sys, getopt, string
ImportError: No module named os

start file
=
#! /bin/sh
reldir=`dirname $0`
PYTHONHOME=`cd $reldir; pwd`
export PYTHONHOME
exec /usr/local/bin/python \
 $PYTHONHOME/z2.py \
 -D "$@"


Suggestions?

Bye, FR






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




[Zope] Selection property problem

2001-01-22 Thread peter bengtson

This is the form:

select name="alignment_text"
optionleft/option
optioncenter/option
optionright/option
/select

When I submit this form the dtml-var REQUEST says this (assuming I select
'center'):

alignment_text:  center

With this I want to change a Selection property called 'alignment_text', but
it fails to "None" all the time.

dtml-call "propertysheets.text_props.manage_editProperties({
  'alignment_text':_.str(REQUEST['alignment_text']),
  })"

All other properties are ok, except this one that selection one.


What's the trick? ...with selection properties.


PS. My HTML (the form) looks the same as is does when you click the
Properties tab of this object.


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

2001-01-22 Thread Marcus Mendes

Oleg Broytmann wrote:

 On Mon, 22 Jan 2001, Marcus Mendes wrote:
 
 Where can I find (and use) the variable REMOTE_ADDR? I've a python
 function that deal with REMOTE_ADDR, but I've got the IP address's Zope
 Server Machine. I looked at Z2.log and find the same IP, ie. the
 address's Zope Server Machine. I need the remote address. I'm using
 SiteAccess and Zope 2.2.4 on Linux. I don't understand ...
 
Do you use Apache? Which way do you connect Zope and Apache?
 
 Oleg.
 
  Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 

Yes,  I'm using apache before the Zope, ie,  Apache redirects all the 
request to the 8080 to Zope. How can Id obtain REMOTE_ADDR ?

Thanks in advance.

Marcus Mendes.



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

2001-01-22 Thread Oleg Broytmann

On Mon, 22 Jan 2001, Marcus Mendes wrote:
 Yes,  I'm using apache before the Zope, ie,  Apache redirects all the
 request to the 8080 to Zope. How can Id obtain REMOTE_ADDR ?

   Which way do you connect Apache to Zope? Mod_pcgi? mod_fastcgi?
mod_proxy? I am afraid if you use mod_proxy - you cannot obtain remote
address. Or may be there is a way to pass it explicitly to Zope.
   Other modules (FCGI/PCGI) should pass all neccessary information
(actually, the entire request environment) by default.

Oleg.

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


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




RE: [Zope] zope@zope.org

2001-01-22 Thread Oleg Broytmann

On Mon, 22 Jan 2001, Farrell, Troy wrote:
 Is it possible this is another issue with 2.0 (I'm no python guru :)?

   Certainly no. It is just the python caanot import a standard module.
Permission or path problem, I am sure.

 FR, Zope 2.x is designed to work with Python 1.52.

   Zope 2.3 (currently in beta) works (though not "officially") with 2.0.

Oleg.

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


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




RE: [Zope] Object DB versus Relational DB

2001-01-22 Thread Farrell, Troy

Maybe you need an ORDB (Object-Relational DB) like postgresql.  PGSQL
supports Inheritance:
http://www.postgresql.org

Troy

-Original Message-
From: Luciano Ramalho [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 6:12 AM
To: Tom Deprez
Cc: Rik Hoekstra; [EMAIL PROTECTED]
Subject: Re: [Zope] Object DB versus Relational DB


ZODB with Data.fs is optimized to fetch data. Inserts or updates have a
lot of overhead. It's the price we pay for the excellent versioning
features. Therefore, when the are many  we have been avoinding ZODB even
when the problem domain calls for an OODB

We have implemented a highly hierarchical database for a Yahoo-like
directory using a recipe found in the book SQL for Smarties, by Joe
Celko, ISBN 1-55860-323-9 (see Chapter 26 - Trees).

Celko's solutions allow for a hierarchy with unlimited levels and,
amazingly, it does not require sub-selects or any other construct
unsupported by MySQL.

The rest of the book is filled with solutions to problems that test the
limits of the relational database model.

Best regards,

Luciano Ramalho


Tom Deprez wrote:
 
  A starting point is http://www.zope.org/Members/anthony/sql_vs_ZODB
 
 Reading this text is exactly the problem I'm having. Unfortunately, it
 doesn't give much examples.
 I hope somebody can give me some answers on my question :
 
 The problem I'm facing is the following. I've got a lot parent-child
 relationships - OODB
 But, I also need to perform some queries on these records and link some to
 each other - more RDB.
 
 I'm not sure which way to follow. A hybrid solution isn't the best one, I
 think, because then you do twice the same work. ie. You've to create the
 parent-child relationship in the OODB (the site structure) and in the RDB
 (to perform correct queries).
 
 The RDB solution is possible, but since I need lots of parent-child
 relationships not the best one.
 
 The OODB is probably the best. However, this implies several
implementation
 problems I don't know how to solve at the moment. Can somebody elaborate
on
 the following questions? Thanks in advance.
 
 Assume the following :
 
 Group1
SubGroup1
   SubGroupA
   Problem1
   Examination1
 Equipment1
   Paremeters
 Equipment2
   Parameters
   Examination2
 
 
 
 Campus1
Room1
  Equipment1
  Equipment2
Room2
 
 
 
 Now,  if a person is creating a new equipment in Examination2. How can I
 show it all the avalailable equipments in Campus1? So this person can
choose
 from it and create it in the examination2 folder? In an OODB environment?
 
 If a person is browsing in Room1 and wants to get all the examinations
which
 will be performed on Equipment1. How do I create such a query in OODB? (Or
 even further, the person wants to see all the examinations done on
 equipment1, but only with Group=Group1 and SubGroup=SubGroup1
 
 How can this be done in Zope?
 
 Thanks in advance,
 
 Tom.
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Get an object's owner

2001-01-22 Thread Tim Cook

Gilles Durys wrote:
 
 Hello,
 
 I'd like to now how to retrieve an object's owner id so I can use
 display it in a DTML document.

The list archives are a great resource

http://zope.nipltd.com/public/lists/zope-archive.nsf/47ba74c812dbc5dd8025687f0024bb5f/b460582e8a4a05e6802568aa007e807e?OpenDocumentHighlight=0,owner

-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Nearly everyone will lie to you given the  right
circumstances."  
- Bill Clinton

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




Re: [Zope] Zope 2.3.0b2 undo strangeness

2001-01-22 Thread Chris McDonough

Ron,

Did you start from a fresh Data.fs for 2.3.0b2 or did you use an existing
Data.fs from another install?

- Original Message -
From: "Ron Bickers" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 20, 2001 2:49 AM
Subject: [Zope] Zope 2.3.0b2 undo strangeness


 I am getting transaction that show in the root folder's Undo screen that
 look like this:

 /index_html by Anonymous User
 /welcome.html by Anonymous User
 /commonbond.html by Anonymous User

 There are multiple entries of these and a couple others, but by accessing
 these pages, I can't seem to force one to be added to the Undo list.

 One of these is a Python Script, and its modification time shows as the
last
 time one of the above entries was made.  The transaction also shows in the
 Undo tab of the Python Script itself.

 The others are DTML Methods.  Their modification time has not changed
since
 I last modified them weeks ago, and the transaction above does *not* show
in
 the DTML Method's Undo tab.

 What's going on here?
 ___

 Ron Bickers
 Logic Etc, Inc.
 [EMAIL PROTECTED]


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




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Get an object's owner

2001-01-22 Thread Chris Withers

Tim Cook wrote:
 
 Gilles Durys wrote:
 
  Hello,
 
  I'd like to now how to retrieve an object's owner id so I can use
  display it in a DTML document.
 
 The list archives are a great resource
 
 
http://zope.nipltd.com/public/lists/zope-archive.nsf/47ba74c812dbc5dd8025687f0024bb5f/b460582e8a4a05e6802568aa007e807e?OpenDocumentHighlight=0,owner

...or:
http://zope.nipltd.com/public/lists/zope-archive.nsf/ByKey/B460582E8A4A05E6

...in slightly shorter form ;-)

cheers,

Chris

PS: The short links are down the bottom of the page...

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

2001-01-22 Thread Andy McKay

 hi,

 I'm kind of surprised that Active State has such a big promo on Zope.org's
 site considering they use IIS; and considering the blurb talks about how
 much they do for Open Source.

We use IIS for many reasons, it's fast and we use some of products in
conjunction with it. To suggest that using IIS is somehow "wrong" confuses
me, Zope.org doesn't use ZServer. For me the flexibilty of using Zope any
way we see fit is its greatest strength. We made a decision to serve
"static" content using a simple fast server and dynamic content using Zope.

Actually we have the main web site in Zope. Its the CMS for the main web
site and only accessible internally. This allows multiple users to access
and make changes, templating and so on. Since this content changes very
rarely we use wget hack to move the information to the main web site to be
served by IIS, since IIS can serve out many more pages per second that Zope
can (because it is doing some much less). This is a "right product for the
right job" decision.

For the dynamic portions (mailing list arcive etc.) we use Zope and ZServer
quite happily on the front end. One day we may move to having the whole site
in Zope, who knows :).

As mentioned we do a great deal for Open Source (ActivePerl, ActivePython,
PyXPCOM, PPM and so on) to name a just a bit. ActiveState is one of the very
few companies where we pay people to hack open source stuff all day. In the
same way Guido works for DC and spends time on Python, we have many talented
Python and Perl developers (David Ascher, Paul Prescod, Gurusamy Sarathy,
Jan Dubois) who in put a great deal of Open Source work.

Cheers.

--
  Andy McKay, Developer.
  ActiveState.

 j.

 ..
 . Jason C. Leach
 ... University College of the Cariboo.
 ..


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

2001-01-22 Thread Tim Moore


I guessed it was something like this, so this leads me to two followup
questions.

1) I'd be happy to use the built-in title property assuming that it
   won't cause some kind of problem.  I just don't know how I can set
   that in instance objects since it doesn't appear on the property
   sheet.  Can I modify the addForm and add methods for the class to
   set it there?  Do I need to make a custom view?  What approach do
   most people take in this situation, using the built-in title or
   choosing a different name for a title-like property?

2) The tutorial in the Zope Developer's Guide instructs you to add a
   "title" property to CDClass
   (http://www.zope.org/Documentation/Guides/ZDG-HTML/ZDG.6.2.4.html).
   I haven't actually run through the tutorial exactly, but I assume
   from my experience that this won't actually work.  Maybe this part
   of the guide should be changed to reflect this (as well as other
   sections that also use "title" as an example property).

Thanks for the responses!

"Loren Stafford" [EMAIL PROTECTED] writes:

 "title" is a "reserved" property; i.e. most objects automatically
 get a title property when you create them, but you are trying to add
 another property with the same name. Either use the "built-in" title
 property or use a different id for your title.
 
 -- Loren
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
 Of Tim Moore
 Sent: Friday, January 19, 2001 14:59
 To: [EMAIL PROTECTED]
 Subject: [Zope] ZClasses and "title" property
 
 
 Let me start by introducing myself...My name is Tim Moore and I'm
 new to the list and Zope in general.  I'm still figuring out how
 everything works, so forgive me if I'm missing something basic here
 :-)
 
 I'm creating several ZClasses for the site I'm working on.  In one
 of them I'd like to have a property called "title", but when I try
 to add it, I get the following error:
 
 Error Type: Bad Request
 Error Value: The id "title" is invalid--it is already in use.
 
 I'm confused, because this seems to happen even when I make a
 bare-bones minimal class, but a few of the examples I've found on
 the web site have ZClasses with title properties.
 
 I'm using version 2.3b1...is this a recent change in behavior or am
 I doing something wrong?  If this is a change, does this mean I have
 to use a different property name, or is there some other way I can
 edit this title property?

-- 
Tim Moore

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

2001-01-22 Thread Chris Withers

Oleg Broytmann wrote:
 
Which way do you connect Apache to Zope? Mod_pcgi? mod_fastcgi?
 mod_proxy? I am afraid if you use mod_proxy - you cannot obtain remote
 address. 

You can patch Apache...

 Or may be there is a way to pass it explicitly to Zope.

...or pass it explicitly.

Some here at NIP knows how to do this, but not me ;-)

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] Numeric Entries in Catalog Search

2001-01-22 Thread Chris Withers

Tim Cook wrote:
 
 I specified in the catalog that I wanted a Textfield index for
 these. In the search form I specify the input with the :string
 type. I would have assumed that these would work just like Last
 Name and First Name work (which BTW work fine). But the numeric
 strings never find a match even though the properties exist with
 the data in them and the objects are registered in the catalog.

Your problem may be the use of Text Indices. These use the voabulary, which
handily strips out digits when indexing :-(

The way to get around it would be to use a Field Index...

 Example: (folderish ZClass object)
 Ann Jackson with a DOB of 1960/01/01
 
 I can find her with a* in the first_name
 I can find her with j* in the last_name
 I cannot find her with 1960* or for that matter 1960/01/01 in the
 dob.

...of course, then you can't use globbing matches like that, so there's no real
solution :-(

Can only suggest mailing Chris P and asking him, as he was last to do some
serious routing in the Catalog code...

 Any clues here?

Sorry I couldn't be more help...

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@zope.org

2001-01-22 Thread Gerald Gutierrez

At 02:45 PM 1/22/2001 +0100, FR Chalaoux wrote:
Hi,

I installed Zope-2.2.5.src on bsdi 3.0, with Python 2.0. Compilation
runned fine but when I run ./start I obtain the followinfg error :

bash-2.02$ ./start
'import site' failed; use -v for traceback
Traceback (most recent call last):
   File
"/usr/local/apache/htdocs/commercial/advl/zope/Zope-2.2.5-src/z2.py",
line 283, in ?
 import os, sys, getopt, string
ImportError: No module named os

This would be a Python error and not a Zope error. "os" should be a 
standard module for Python, but it is not found here.



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

2001-01-22 Thread Oliver Vecernik

"Farrell, Troy" wrote:
 
 Hmmm.  Sounds like you need to start with a Forms tutorial:
 http://hotwired.lycos.com/webmonkey/99/30/index4a.html
 Then, the Smarter Forms tutorial:
 http://www.zope.org/Members/jules/smarterforms_html

That's exactly what I was looking for. Thank's for the hint!

Oliver

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




Re: [Zope] Numeric Entries in Catalog Search

2001-01-22 Thread Tim Cook

Chris Withers wrote:

 Your problem may be the use of Text Indices. These use the voabulary, which
 handily strips out digits when indexing :-(

I did not know that. 
 
 The way to get around it would be to use a Field Index...
 
 ...of course, then you can't use globbing matches like that, so there's no real
 solution :-(

Yeah, the globbing vocab. is pretty necessary. 

" Keyword Indexes index a sequence of objects that act as
'keywords' for an object. A Keyword Index will return any objects
that have one or more keywords specified in a search query."

Does this mean you have to specify (where) what the predetermined
keywords are?

 Can only suggest mailing Chris P and asking him, as he was last to do some
 serious routing in the Catalog code...
 
  Any clues here?
 
 Sorry I couldn't be more help...

Thanks for the info. 


-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Nearly everyone will lie to you given the  right
circumstances."  
- Bill Clinton

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




Re: [Zope] Zope 2.3.0b2 undo strangeness

2001-01-22 Thread Oleg Broytmann

On Mon, 22 Jan 2001, Chris McDonough wrote:
 Did you start from a fresh Data.fs for 2.3.0b2 or did you use an existing
 Data.fs from another install?

   Oops, are they incompatible with each other? (I am not the author of the
original question, just curious). IWBN to see some information in
INSTALL.txt about upgrading from prev. version.

Oleg.

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


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




Re: [Zope] LocalFS and PathHandler

2001-01-22 Thread Aleksander Salwa

On Mon, 22 Jan 2001, Ulrich Wisser wrote:

 I try to access LocalFS from my own DTML method.
 (Exactly from my PathHandler method.) I got all
 directory information in one array like this
 
 path_to_handle = ['sub1', 'sub2', 'sub3']
 
 How can a get a directory listining with LocalFS
 for path "/sub1/sub2/sub3/"? I know I need something
 like "lfs['sub1']['sub2']['sub3'].fileids". But
 what if there are more (or less) elements in path_to_handle?

I would write it in python, as a recursive function:

def goo(lfs, path_to_handle):
   if len(path_to_handle)==0:
  return lfs
   else:
  lfs=lfs[path_to_handle[0]]
  path_to_handle=path_to_handle[1:]
  return goo(lfs, path_to_handle)


[EMAIL PROTECTED], [EMAIL PROTECTED]

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




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




[Zope] List Mail Duplicates

2001-01-22 Thread Tim Cook


Is the list mailer sending duplicates or am I seeing double?

-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Nearly everyone will lie to you given the  right
circumstances."  
- Bill Clinton

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




Re: [Zope] Zope 2.3.0b2 undo strangeness

2001-01-22 Thread Chris McDonough

No.  The CHANGES.txt log provides status about changes between releases.
There were some changes in Data.fs.in in 2.3b2 to use the new-style dtml
syntax in the default content, but if you upgraded an existing Zope from
another or if you replaced the default content in Data.fs.in, you wouldn't
notice.

If you didn't use an old Data.fs or if you didn't replace the default
content in Data.fs.in when installing 2.3b2, the only changes you'd notice
would be that the contents of index_html, standard_html_header,
standard_html_footer, and standard_error_message have changed from prior
releases.

- Original Message -
From: "Oleg Broytmann" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Cc: "Zope Mailing List" [EMAIL PROTECTED]
Sent: Monday, January 22, 2001 1:02 PM
Subject: Re: [Zope] Zope 2.3.0b2 undo strangeness


 On Mon, 22 Jan 2001, Chris McDonough wrote:
  Did you start from a fresh Data.fs for 2.3.0b2 or did you use an
existing
  Data.fs from another install?

Oops, are they incompatible with each other? (I am not the author of
the
 original question, just curious). IWBN to see some information in
 INSTALL.txt about upgrading from prev. version.

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




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




Re: [Zope] List Mail Duplicates

2001-01-22 Thread Oleg Broytmann

On Mon, 22 Jan 2001, Tim Cook wrote:
 Is the list mailer sending duplicates or am I seeing double?

   Not only you. There are certainly dups in the list. May be it's our list
manager's fault, may be someone (misconfigured robot?) sends it back to
the list...

Oleg.

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


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




[Zope] Where to host Zope apps?

2001-01-22 Thread Ausum

The first time I wanted to host at an enterprise level it wasn't very
hard. I just went for HighWay becasue it was said at that time, that it
was one of the finest hosting providers. After a short term it was
bought by Verio and now Verio itself it's owned by the largest japanese
telco. (For every potencial hosting customer -specially for one who
doesn't live at the provider's country- it is quite important to get to
know who the hosting company is, and how big their assets are.) 

I don't know much about the companies currently offering Zope, but I
would like to suggest that Digital Creations cobrands all of them who
want it to, after an evaluation process by its own staff. 

I can foresee a big Zope's spreading when DC decides to get involved
with its derived hosting providers community at a cobranding level.


Regards,


Ausum

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




Re: [Zope] Zope 2.3.0b2 undo strangeness

2001-01-22 Thread Chris McDonough

Hmmm, ok, I was just making sure it wasn't a default content issue... I
don't know what the issue is.  :-(


- Original Message -
From: "Ron Bickers" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, January 22, 2001 1:50 PM
Subject: RE: [Zope] Zope 2.3.0b2 undo strangeness


 I used an existing Dafa.fs from 2.3.0b1, 2.2.5 and down to (I think)
2.2.0.
 I didn't notice these messages with  2.3.0b1.
 ___

 Ron Bickers
 Logic Etc, Inc.
 [EMAIL PROTECTED]


  -Original Message-
  From: Chris McDonough [mailto:[EMAIL PROTECTED]]
  Sent: Monday, January 22, 2001 12:52 PM
  To: Ron Bickers; [EMAIL PROTECTED]
  Subject: Re: [Zope] Zope 2.3.0b2 undo strangeness
 
 
  Ron,
 
  Did you start from a fresh Data.fs for 2.3.0b2 or did you use an
existing
  Data.fs from another install?




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




RE: [Zope] Zope 2.3.0b2 undo strangeness

2001-01-22 Thread Ron Bickers

I used an existing Dafa.fs from 2.3.0b1, 2.2.5 and down to (I think) 2.2.0.
I didn't notice these messages with  2.3.0b1.
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


 -Original Message-
 From: Chris McDonough [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 22, 2001 12:52 PM
 To: Ron Bickers; [EMAIL PROTECTED]
 Subject: Re: [Zope] Zope 2.3.0b2 undo strangeness


 Ron,

 Did you start from a fresh Data.fs for 2.3.0b2 or did you use an existing
 Data.fs from another install?


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




RE: [Zope] Zope 2.3.0b2 undo strangeness

2001-01-22 Thread Ron Bickers

I was hoping that one of the fairly few changes from b1 to b2 would trigger
an "Oh yeah."
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


 -Original Message-
 From: Chris McDonough [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 22, 2001 2:16 PM
 To: Ron Bickers; [EMAIL PROTECTED]
 Subject: Re: [Zope] Zope 2.3.0b2 undo strangeness


 Hmmm, ok, I was just making sure it wasn't a default content issue... I
 don't know what the issue is.  :-(


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

2001-01-22 Thread Tim Cook


Just to clarify. Chris W's comment that the vocabulary strips out
the digits.

It seems to only do so when there is no other characters adjacent
in the property.
If there are alphabetic characters but separated by whitespace it
will remove the digits. If they are separated by a hyphen it will
not remove the digits but will remove the hyphen. Also in my case
of the DOB it removes the '/' separating the elements. 

So, my kludge until something better comes along will be to store
a character on the frontend of the string.
Strip it off before display. Add it to the element for searching.

Better ideas?

-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Nearly everyone will lie to you given the  right
circumstances."  
- Bill Clinton

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Upload file and :int with :required and

2001-01-22 Thread Diego Rodrigo Neufert

When using :required with a file field I got this error:
Error Type: AttributeError
Error Value: 'string' object has no attribute 'read'

How to make a file field required in dtml?

and anyone know how to make something like :int:required works?
I need a int field to be required

thanks in advance...

-- 
Diego Rodrigo Neufert
Webmaster / Web Developer - Magic Web Design
---
[EMAIL PROTECTED]
www.magicwebdesign.com.br
Curitiba - PR - Brasil

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

2001-01-22 Thread J. Atwood

One of the things to consider is that hosting Zope itself is very 
easy. Take a look at a company like RackSpace.com where you can get a 
dedicated box for like $255 a month (600 MHZ, 20 GB Drive, 128 MB of 
RAM, RH Linux 7.0). They watch the hardware and you keep Zope up 
(which is not hard at all).

That configuration will also handle a LOT of traffic. Upgrade as you need to.

J

At 1:41 PM -0500 1/22/01, Ausum wrote:
The first time I wanted to host at an enterprise level it wasn't very
hard. I just went for HighWay becasue it was said at that time, that it
was one of the finest hosting providers. After a short term it was
bought by Verio and now Verio itself it's owned by the largest japanese
telco. (For every potencial hosting customer -specially for one who
doesn't live at the provider's country- it is quite important to get to
know who the hosting company is, and how big their assets are.)

I don't know much about the companies currently offering Zope, but I
would like to suggest that Digital Creations cobrands all of them who
want it to, after an evaluation process by its own staff.

I can foresee a big Zope's spreading when DC decides to get involved
with its derived hosting providers community at a cobranding level.


Regards,


Ausum

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


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

2001-01-22 Thread Martijn Pieters

On Mon, Jan 22, 2001 at 09:42:51AM -0800, Andy McKay wrote:
 Zope.org doesn't use ZServer.

Small technicality: Zope.org *does* use ZServer. See:

  http://www.zope.org/About

We use Apache with ProxyPass, because of of the configuration flexibility
and caching of images and files. But Apache talks to Zope via ZServer.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators 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] anybody used Enhydra ?

2001-01-22 Thread Grzegorz Nowak

Hi!

Anybody knows something on Enhydra ?

Do you use it as a high-performance application server for Java-based
applications ?
How can I integrate Enhydra and Zope ?

rgds
Greg

--- 
Omnia 2001 - najbardziej multimedialna, nie tylko encyklopedia. 
Kliknij http://www.omnia-online.pl - super oferta i konkurs z nagrodami. 
--- 


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

2001-01-22 Thread Andy McKay

Good point. Apache does talk to ZServer, I was referring to the most
front-end component, which is what the user sees. For all anybody knows we
could be using ZServer behind IIS using pcgi. We aren't, but we could, in
fact that would have been a very cocky answer...
--
  Andy McKay.


- Original Message -
From: "Martijn Pieters" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, January 22, 2001 11:27 AM
Subject: Re: [Zope] ActiveState on Zope.org


 On Mon, Jan 22, 2001 at 09:42:51AM -0800, Andy McKay wrote:
  Zope.org doesn't use ZServer.

 Small technicality: Zope.org *does* use ZServer. See:

   http://www.zope.org/About

 We use Apache with ProxyPass, because of of the configuration flexibility
 and caching of images and files. But Apache talks to Zope via ZServer.

 --
 Martijn Pieters
 | Software Engineer  mailto:[EMAIL PROTECTED]
 | Digital Creations  http://www.digicool.com/
 | Creators 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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Numeric Entries in Catalog Search

2001-01-22 Thread Tim Cook

Alberto Berti wrote:
 
 Tim Cook wrote:
 
  Just to clarify. Chris W's comment that the vocabulary strips out
  the digits.
 
  It seems to only do so when there is no other characters adjacent
  in the property.
  If there are alphabetic characters but separated by whitespace it
  will remove the digits. If they are separated by a hyphen it will
  not remove the digits but will remove the hyphen. Also in my case
  of the DOB it removes the '/' separating the elements.
 
 And you can't do the same work with the value  in the search form? e.g.
 i you are searching against 1960/03/* why you don't strip the '/'
 character before passing the value to  the catalog for the search? so u
 do effectively a search against '196003*'. Maybe this can work...



Actually, I was incorrect. It doesn't strip the slashes. But
that's not the issue. The problem is that if you enter digits
into a string property they don't get entered into a globbing
vocabulary. They must have either a character appended or
prepended to the string of digits to prevent them from being
stripped.



-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Nearly everyone will lie to you given the  right
circumstances."  
- Bill Clinton

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

2001-01-22 Thread Andy McKay

As per Martijn's comment, yes all sites use ZServer you are correct. Sorry
for any confusion. I was refering to the most front visible component, but
did not make that clear.
--
  Andy McKay.


- Original Message -
From: "Steve Drees" [EMAIL PROTECTED]
To: "Zope@Zope. Org" [EMAIL PROTECTED]
Sent: Monday, January 22, 2001 11:40 AM
Subject: RE: [Zope] ActiveState on Zope.org


  We use IIS for many reasons, it's fast and we use some of products in
  conjunction with it. To suggest that using IIS is somehow "wrong"
confuses
  me, Zope.org doesn't use ZServer. For me the flexibilty of using Zope
any


 Doesn't every Zope site use ZServer? These statements always confuse me.
 When I ./start zope aren't I starting ZServer?



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

2001-01-22 Thread J B Bell

Dear comrades in zopeness:

For some time now I have been struggling trying to get Zope to talk to 
Postgres.  I am now nearly successful and hope that the revolutionary
spirit of fellow zopatistas will carry the day.

Background:

Debian 2.1r2 on a PII 600 or so (the machine is pretty loaded)
Postgres 7.0.3
Python 1.5.2
PoPy 1.4.1
ZPoPyDA 0.7

The most recent vexation is simple:  after expanding
ZPoPyDA.0.7.tar.gz (dl'ed from www.zope.org/Members/tm), there is no
configure file and no Makefile.  Like many products, it just expands
out into lib/python/Products/ZPoPyDA/*.  However, the README file says
to run "./configure; make; make install".  In an acronym, WTF?

Bonus question:  I had a terrible time with installing PoPy itself
until I modified the makefile to have a second -I argument going back
to the source (.../postgres-7.0.3/src/include).  One or the other (the
source or the installed include, that is) would result in various
missing *.h files.  Did I install postgres incorrectly?  There was no
.../include/catalog directory at all in the installed directories,
which PoPy wanted.

I eagerly anticipate any clues, and thank everyone for their
attention.

--JB

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 access a dtml-var from a python method?

2001-01-22 Thread Rommel Novaes Carvalho

Hi everybody,
 
 I would like to know how can I access a variable that I have on
a html form, for instance, in my python method and work with this variable
in python? I tried to pass as a parameter, like 
def method(dtml-var variable):
 ...
 if dtml-var variable == ...
 
and of course it did not work, I would be really glad if any of you could
help me.
 
 
 
Thanks in Advance,
Rommel Novaes
Carvalho

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

2001-01-22 Thread J B Bell

I got the brilliant idea of running zope with -D.  Here's what I got:

# ./start -D
--
2001-01-22T20:19:58 ERROR(200) Zope Couldn't import Products.ZPoPyDA
Traceback (innermost last):
  File /usr/local/zope/2.2.5/lib/python/OFS/Application.py, line 397, in 
import_products
(Object: string)
  File /usr/local/zope/2.2.5/lib/python/Products/ZPoPyDA/__init__.py, line 32, in ?
  File /usr/local/zope/2.2.5/lib/python/Products/ZPoPyDA/DA.py, line 35, in ?
  File /usr/local/zope/2.2.5/lib/python/Products/ZPoPyDA/PoPy_db.py, line 37, in ?
The PoPy module is old: Update your version of PoPy

Checking the code in PoPy_db.py, it's looking for exactly and only version
1.4.  1.4.1, therefore, is 'incompatible'.  Of course, grumble, before I did
this, I updated to v. 2.0 of PoPy  must now downgrade.  

--JB

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

2001-01-22 Thread J. Atwood

You don't have to downgrade. Just go into the code and change the 
version it it looking for. Search the list archives b/c I have read 
something about it. I think it is under the "How To Install"

Cheers,
J

At 12:30 PM -0800 1/22/01, J B Bell wrote:
I got the brilliant idea of running zope with -D.  Here's what I got:

# ./start -D
--
2001-01-22T20:19:58 ERROR(200) Zope Couldn't import Products.ZPoPyDA
Traceback (innermost last):
   File /usr/local/zope/2.2.5/lib/python/OFS/Application.py, line 
397, in import_products
 (Object: string)
   File 
/usr/local/zope/2.2.5/lib/python/Products/ZPoPyDA/__init__.py, line 
32, in ?
   File /usr/local/zope/2.2.5/lib/python/Products/ZPoPyDA/DA.py, line 35, in ?
   File /usr/local/zope/2.2.5/lib/python/Products/ZPoPyDA/PoPy_db.py, 
line 37, in ?
The PoPy module is old: Update your version of PoPy

Checking the code in PoPy_db.py, it's looking for exactly and only version
1.4.  1.4.1, therefore, is 'incompatible'.  Of course, grumble, before I did
this, I updated to v. 2.0 of PoPy  must now downgrade. 

--JB

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 to access a dtml-var from a python method?

2001-01-22 Thread Tim Cook

Rommel Novaes Carvalho wrote:
 
 Hi everybody,
 
  I would like to know how can I access a variable that I have on
 a html form, for instance, in my python method and work with this variable

http://www.zope.org/Documentation/How-To/ExternalMethods

or

http://zope.nipltd.com/public/lists/zope-archive.nsf/ByKey/A30C9F2CC19B3AE8 

(Just trying to take some of the load off of Dieter vbg)

-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Nearly everyone will lie to you given the  right
circumstances."  
- Bill Clinton

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

2001-01-22 Thread Christian Sonntag

Hi there,

I am trying to sort results of an ZAQL query with the dtml-in sort tag,
but it appears to be sorted alphanumerically, is there a way to tell it
to sort numerical values?

Thanks,
Christian

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

2001-01-22 Thread ender

the most recent versions of popy are currently hosted on sourceforge.

http://www.sourceforge.net/projects/popy
http://www.sourceforge.net/projects/zpopy

popy wants some includes which are not included in a normal source make
of popy. catalog/fe??h. i generally just copy them over from the source 
directory to the installation directory

also if anyone is curious popy seems to work fine against postgres7.1b3,
which includes massive improvements to postgres. no 8k row limits, outer 
joins, speed improvements, etc.

cheers

kapil


On Monday 22 January 2001 12:11, J B Bell wrote:
 Dear comrades in zopeness:

 For some time now I have been struggling trying to get Zope to talk to
 Postgres.  I am now nearly successful and hope that the revolutionary
 spirit of fellow zopatistas will carry the day.

 Background:

 Debian 2.1r2 on a PII 600 or so (the machine is pretty loaded)
 Postgres 7.0.3
 Python 1.5.2
 PoPy 1.4.1
 ZPoPyDA 0.7

 The most recent vexation is simple:  after expanding
 ZPoPyDA.0.7.tar.gz (dl'ed from www.zope.org/Members/tm), there is no
 configure file and no Makefile.  Like many products, it just expands
 out into lib/python/Products/ZPoPyDA/*.  However, the README file says
 to run "./configure; make; make install".  In an acronym, WTF?

 Bonus question:  I had a terrible time with installing PoPy itself
 until I modified the makefile to have a second -I argument going back
 to the source (.../postgres-7.0.3/src/include).  One or the other (the
 source or the installed include, that is) would result in various
 missing *.h files.  Did I install postgres incorrectly?  There was no
 .../include/catalog directory at all in the installed directories,
 which PoPy wanted.

 I eagerly anticipate any clues, and thank everyone for their
 attention.

 --JB

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

2001-01-22 Thread ender

i'm guessing this has something to do with the default line terminators that 
medusa is looking for before it senses that a data buffer is ready to be 
processed. it seems like the url encoded ones request seem to have different 
line terminators. you can adjust this the fly by using the set_terminator() 
func on the dispatcher. set_terminator can look for either a set of input 
chars, or you can adjust the data buffers to fire off for processing on 
integer sizes. 

hope that helps

kapil


On Sunday 21 January 2001 14:15, Steve Spicklemire wrote:
 I'm going to try to make a long story short... and the story isn't even
 over... but I'm getting close. One of our clients is a 'multimedia'
 company and we're working with a group there that consists mostly
 of artists and designers who use tools like photoshop and
 macromedia director. They came to us recently with a project
 for which they were *going* to use Macromedia Multiuser Server
 but the complexity of their application is significant..

 long story short... I've sold them on the concept of using Zope as the
 'media/personality server' for this application.  They will use
 Director (which can post stuff to an URL and can also parse
 XML). So.. I'm building a framework that permits them to use their
 favorite tools, but I get to use *my* favorite tool too. ;-) The
 problem: Director is not a browser. There is no 'view source'. But (I
 think to myself) this is a great chance to use tcpwatch, which I've
 never used before. It's a little tricky since my favorite client
 machine is a Macintosh, and well.. lets just say that Tkinter for the
 mac is not perfect... not to mention there is no thread module..  but
 I do have a workaround that's useful (since I run Zope on a FreeBSD
 server, I just use tcpwatch on FreeBSD and either MI/X, or VirtualPC
 with Linux for my X server.. ). I noticed however that when I did a
 'POST' the URL encoded arguments were lost. I found that the
 proxy_receiver handle_close method was never called.. so that anything
 in a 'last line' that didn't end in '\n' was lost. I added the
 following patch that shows this... but why is handle_close not called?
 I can only guess that the socket is not being properly closed
 somehow. I use lib/python/ZPublisher/Client.py to test calls to Zope
 and it works fine, but the asyncore/asynchat stuff never calls
 handle_close for proxy_receiver.

 Anyway... here's the patch: Comments welcome!

 *** ./tcpwatch_orig.py Sat Jan 20 16:55:43 2001
 --- ./tcpwatch.py   Sun Jan 21 16:52:11 2001
 ***
 *** 130,135 
 --- 130,137 
   pos = pos + 1
   else:
   # Last line, may be incomplete.
 + line = "Partial line? " + data[oldpos:] + '\r\n'
 + self.watch_output(line, byClient)
   return data[oldpos:]

   def cleanupRefs(self):

 take care,
 -steve

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

2001-01-22 Thread jpenny

On Mon, Jan 22, 2001 at 12:11:31PM -0800, J B Bell wrote:
 Dear comrades in zopeness:
 
 For some time now I have been struggling trying to get Zope to talk to 
 Postgres.  I am now nearly successful and hope that the revolutionary
 spirit of fellow zopatistas will carry the day.
 
 Background:
 
 Debian 2.1r2 on a PII 600 or so (the machine is pretty loaded)
 Postgres 7.0.3
 Python 1.5.2
 PoPy 1.4.1
 ZPoPyDA 0.7
 
 The most recent vexation is simple:  after expanding
 ZPoPyDA.0.7.tar.gz (dl'ed from www.zope.org/Members/tm), there is no
 configure file and no Makefile.  Like many products, it just expands
 out into lib/python/Products/ZPoPyDA/*.  However, the README file says
 to run "./configure; make; make install".  In an acronym, WTF?

Documentation mistake.  Thierry, the main author, is French, was working 
for an Italian firm at the time of that release, and trying to document
in English.  Not an ideal situation.

 
 Bonus question:  I had a terrible time with installing PoPy itself
 until I modified the makefile to have a second -I argument going back
 to the source (.../postgres-7.0.3/src/include).  One or the other (the
 source or the installed include, that is) would result in various
 missing *.h files.  Did I install postgres incorrectly?  There was no
 .../include/catalog directory at all in the installed directories,
 which PoPy wanted.

If you installed postgres and postgres-dev from debian, it should have
installed clean.  The packages were developed under Debian!
Also note that zope-zpopyda and python-popy are part of debian.

The Debian version of these packages are a bit stale.  I should have
new ones uploaded by Next Monday.

Also, there is a far newer version available from
http://www.sourceforge.net/package/projects/popy
and
http://www.sourceforge.net/package/projects/zpopyda

Jim Penny

 
 I eagerly anticipate any clues, and thank everyone for their
 attention.
 
 --JB
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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 and PathHandler

2001-01-22 Thread Dieter Maurer

Ulrich Wisser writes:
  How can a get a directory listining with LocalFS
  for path "/sub1/sub2/sub3/"? I know I need something
  like "lfs['sub1']['sub2']['sub3'].fileids". But
  what if there are more (or less) elements in path_to_handle?
The easiest answer to these types of questions are
recursive functions.

You may use a "dtml-in", too. Like that:

dtml-call "REQUEST.set(curr__,lfs)"
dtml-in path_to_handle
  dtml-call "REQUEST.set(curr__,curr__[_['sequence-item']])"
/dtml-in
dtml-var "curr__.fileids"



Dieter

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




Re: [Zope] Zope, database field formats, output format of queries

2001-01-22 Thread Dieter Maurer

Michael Schmidt writes:
  Can you create fields in a zope based database where you force 
  the fields to accept e.g. only letters "M" or "W" or any other 
  other combination of your choice?
What do you mean with a Zope based database?

If you mean an external database, look for the datatypes and
restrictions, they support for column values. SQL 3 may
give you some of what you want.

Whether internal or external, you can control what goes through
Zope to your database. You will probably need External Methods to
get the full Python power, see "python.org" for documentation
about Pythons vast library.
You will be especially interested in the "re" module.
It implements (Perl style) regular expressions.


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] form question

2001-01-22 Thread Dieter Maurer

Oliver Vecernik writes:
  I'm designing an application gathering data with forms. Navigation
  should be done with Prev and Next buttons. As long as I'm not leaving
  the form data should be entered, processed and the *same* or another
  form should be displayed, depending on input of the user.
  
  So far I'm able to gather data, store them in a database, but can
  anybody give me a clue or point me to some docs how to control which
  form should be displayed next? It should depend on users input of let's
  say a text field.
Look for the "RESPONSE.redirect" method.


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] [python] creating variable names by adding 2 strings?

2001-01-22 Thread Dieter Maurer

Lee writes:
  I'm creating variables in python but I am having trouble creating them
  when they're *named* using other variables. Here's an example;
  
  while (p!=0):
   p+`p`= string.replace(component[control], ",", "") 
   # e.g. I want 'p1 = string.replace.blah...'
   p=p-1
   control=control+1
  
  == SyntaxError: can't assign to operator :(
Why do you want to do that?

  It is really strange, that you want computed variable names
  in local namespaces.

If you want them in an object, class or module, you could use
"setattr". If it should go into the current module,
you could use "globals()[name_expr]=value" (though the
Python spec says, this may change in future implementations).

Note, that security restrictions may prevent you from
using "setattr" in Python scripts.


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

2001-01-22 Thread Dieter Maurer

Marcus Mendes writes:
  Where can I find (and use) the variable REMOTE_ADDR? I've a python
  function that deal with REMOTE_ADDR, but I've got the IP address's Zope
  Server Machine
Probably, you must tweak your Web server.

Look at zope.org. NIP people have created a HowTo for the necessary
changes to Apache (Thank you NIP!).


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] ZPyGresQL Connection Add Error

2001-01-22 Thread Craig

I am trying to get ZPyGreSQLDA-0.3 working with Zope 2.3.0b2

The Product installs fine, but when I try to add a connection, 
I get this error:

Error Type: IOError
Error Value: [Errno 2] No such file or directory:
'/usr/lib/zope/lib/python/Shared/DC/ZRDB/connectionAdd.dtml'

I checked and this connectionAdd.dtml file is actually located
here:
/usr/lib/zope/lib/python/Shared/DC/ZRDB/dtml/connectionAdd.dtml

Unfortunately, I do not no how to fix this.

Thanks
-- 
\ Craig "Cowboy" McDaniel 
/_\ Software Engineer
/_/_\ Internet Tool  Die
/_/_/_\ [EMAIL PROTECTED]
/_/_/_/_\ (502) 584-8665 ext 108

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

2001-01-22 Thread J B Bell

On Mon, Jan 22, 2001 at 04:07:14PM -0500, [EMAIL PROTECTED] wrote:
 On Mon, Jan 22, 2001 at 12:11:31PM -0800, J B Bell wrote:

  [JB whines about his troubles, including the mysterious instructions
  to configure, make,  make install]
 
 Documentation mistake.  Thierry, the main author, is French, was working 
 for an Italian firm at the time of that release, and trying to document
 in English.  Not an ideal situation.

LOL!!!  Now I feel much less harshly about his struggle.  Geez, what a
pain.

  [PoPy wants includes not in my postgres install]
 
 If you installed postgres and postgres-dev from debian, it should have
 installed clean.  The packages were developed under Debian!
 Also note that zope-zpopyda and python-popy are part of debian.
 
 The Debian version of these packages are a bit stale.  I should have
 new ones uploaded by Next Monday.

Urm, yeah.  I'm an old FreeBSD curmudgeon, so I all-too-happily install
from tarballs if the packages are not fresh enough for my taste.
Presumably I should be running woody.

 Also, there is a far newer version available from
 http://www.sourceforge.net/package/projects/popy
 and
 http://www.sourceforge.net/package/projects/zpopyda
 
Aha!  Now, here I feel complaint is not out of order.  These versions
worked great (though I still needed to hack the Makefile for PoPy).  If
there were reference on the Zope site, I could have avoided at least a
couple hours' suffering.  I know it's a pain maintaing a site (heck, my
personal site is years out of date), but would it be too awful to just
note "development is now being carred out at sourceforge.net, please go
there"?

Anyway, thanks to all for your help.  I should have noted, btw, that I
am subscribed to the list, so there's no need to Cc: me.

 Jim Penny

Cheers!

--JB

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




  1   2   >