Re: [Zope-dev] more on keyword indexes

2000-12-17 Thread Dieter Maurer

Josh Zeidner writes:
OK.  Is it possible to query keyword indexes for several keywords at once? 
Not that I know of.

You either have to extend ZCatalog or wait some time.
There are different people working on ZCatalog enhancements.

 Again, I am reporting a bug 
You already know the Collector?
It is Zope's bug tracking system.

You find it via zope.org.
Its old URL has been

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

but this might have changed after the recent changes on zope.org.


I have had very good response to Collector bug reports for Zope itself.
At least in the past, bug reports and even patches for ZCatalog
probably have been ignored, however. I hope, this has changed
meanwhile.

By the way:

  *  What does "unpredictable results" mean?


Dieter

PS: I have just blocked mail from "hotmail.com" (and "excite.com")
because I got an increasing number of bulk email ad's
with a faked "from: [EMAIL PROTECTED]" header.

This means: I will no longer see direct messages from
you, only your Zope mailing list messages which reach me
with a delay of up to one day.

___
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] Problem in current CVS

2000-12-17 Thread Dieter Maurer

Jimmie Houchin writes:
  I just updated my current CVS build of Zope2.
  
  ImportError: cannont import name end_of_header_search
This may be the effect of a fix for a problem discussed
recently in "zope-dev":

   Zope looked for "/head" and added it, if not present.
   Unfortunately, it forgot to update "Content-Length"
   accordingly.

   This fixing was dropped.


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] IE5 / Medusa bug?

2000-12-17 Thread Dieter Maurer

seb bacon writes:
   IE does not get last 11 bytes 
  - it's always the last 11 bytes that are missing, however large the 
page is
  
  - I've sent exact copies of the HTTP headers to the server, using
telnet, and there's no problem there
I made the experience that IE is very strict with
the "Content-Length" header.
If it is there, it must be correct. Otherwise, IE will show
wrong results.


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] urllib not available in Python Scripts?

2000-12-17 Thread Evan Simpson

From: "Itai Tavor" [EMAIL PROTECTED]
import urllib
urllib.__allow_access_to_unprotected_subobjects__ = 1
 
 Ok, this is simple enough, and it works. But... it opens access to 
 everything in urllib.

For now, the best way is to use a dictionary of names, like this:

  import urllib
  urllib.__allow_access_to_unprotected_subobjects__ = {
'quote': 1, 'unquote': 1,
  }

Cheers,

Evan @ digicool  4-am


___
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] Re: ZPatterns, ObjectDomain, UML and all that.....

2000-12-17 Thread Itai Tavor

Hi Itai,

Ok.. I'm working an DumbZPatternsExample V3.0 so this is exactly
the sort of conversation that needs to take place for me. ;-)

Godd to hear that (both that the discussion is helping you, and that 
you're working on a new dumb example :-) )


It seems to me that when you want a Reseller, or a Customer you
certainly want to go to the Resellers or Customers Specialist and ask
for the Participant. So..  since there is never more than one Actor for
each Participant, I think I'd keep the information about the actor_id
in the Participant. I might even suggest that you could use the actor_id
as the participant_id, depending on how these id's are implemented.
(it seems that it would be particularly nice if the ids are known to
be globally unique that you could use this fact to help identifying
relationships...)

I'm already using globally unique ids, but still, doesn't using the 
same id for the Participant and the Actor make these objects too 
tightly coupled? Seems to me that Actors should provide an interface 
for finding actors to the rest of the application; other objects 
should not make assumptions about the internal storage of Actors, and 
particularly what ids they use. No?


Now.. you seem to be asking how to run it the other way around.
How do we get the correct Participant from the Actors specialist?
Hmm... I'm not sure what the scenario would be that would require
this, but it seems to me that it's a reasonable enough possibility.

Well, Actors store user info such as login_name, password, and roles. 
So it's natural (I think) for acl_users to authenticate against 
Actors, rather than ask each Participant Specialist to search all the 
Actors associated with its Participants. So AUTHENTICATED_USER is an 
Actor. But the application needs to know the Participant - for 
example, if a Customer is placing an order, she will be asked to 
identify her Reseller. But if a Reseller is placing the order, the 
application already knows the Reseller, but it needs to ask for a 
Customer. So, from the Actor, I need to know the Participant type, 
id, name, etc. Unless, of course, I'm making things too complicated 
again, and it really is better to authenticate Participants rather 
than Actors...


How about a little search... :

PythonScript: getParticipantFor( self, participantSpecialistList )

 while Participants in participantSpecialistList:
 theParticipant = Participants.getParticipantForActor( self.actor_id )
 if theParticipant is not None:
break

 return theParticipant

It's up to the 'Participants' Specialists to implement getParticipantForActor
based on the actor_id. (if actor_id is the same as reseller_id then it's
just getItem!) Now... to make this slick, add an attribute handler for
your actor that does this automagically when you ask for 'participant'.

I think something like:

WITH self.getParticipantFor( [Resellers, Customers] ) COMPUTE 
myParticipant = RESULT or NOT_FOUND

should do it.  In code you just say:

resellerName = self.myParticipant.name

or somthing like that.

Of course.. I've not tried this. But it *seems* like it should work. ;-)

I imagine it would... and it looks pretty good. The question is, and 
that brings us back to the object connections table, whether this is 
really the way you would want to do it.

Itai


-steve

  "Itai" == Itai Tavor [EMAIL PROTECTED] writes:

 Itai There might be many ways to implement each connection, but I
 Itai think that there will always be one or two ways that would
 Itai be simplest and most robust... so this would not only save
 Itai you the trouble of figuring it out alone every time, but
 Itai would also prevent you from getting stuck down the road.

 Itai The problem is that we have at best guesses, and at worst
 Itai empty table cells in the guide. I'm still struggling with
 Itai many of these... The worst one seems to be XOR type
 Itai connections, where a Specialist implementing a role is not
 Itai involved. Example:

 Itai Actor: Person.

 Itai Participants: Customer, Reseller

 Itai Object connections: (Customer) 1---[XOR A] 1 (Actor)
 Itai [XOR A] 1---1 (Reseller)

 Itai acl_users Login Manager authenticates users using Actor
 Itai objects (by connecting the the Actors Specialist). The
 Itai application needs to identify the Participant.

 Itai If you add participant_id to Actor, you still don't know
 Itai which Participant Specialist to load the Participant
 Itai from. You don't want to add participant_type to Actor (at
 Itai least, I don't think you do - it seems real ugly). So, what
 Itai do you do? Do you place the Customers and Resellers
 Itai Specialists inside a Participants Specialist? We'll have to
 Itai call it MegaSpecialist :-). Bad idea - other parts of the
 Itai application have to access Resellers specifically, so
 Itai Resellers should not be hidden inside 

Re: [Zope-dev] urllib not available in Python Scripts?

2000-12-17 Thread Itai Tavor

Evan Simpson wrote:

From: "Itai Tavor" [EMAIL PROTECTED]
 import urllib
 urllib.__allow_access_to_unprotected_subobjects__ = 1

  Ok, this is simple enough, and it works. But... it opens access to
  everything in urllib.

For now, the best way is to use a dictionary of names, like this:

   import urllib
   urllib.__allow_access_to_unprotected_subobjects__ = {
 'quote': 1, 'unquote': 1,
   }

Cheers,

Evan @ digicool  4-am

Thanks! Nice and simple.

The moral of this story is, you got to know what to ask :-)
-- 
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 )




Re: [Zope-dev] ZPatterns, ZClasses, Specialists: Assigningresponsibilities

2000-12-17 Thread Itai Tavor

Itai Tavor wrote:

I have the following ZClasses, with matching Specialists: Product, 
Graphic, Order, OrderLineItem. When a customer adds a product to 
their order, they have to provide a graphic file which will be 
printed on the product (imagine buying a lunch box with your cat's 
photo on it). The Graphics Specialist can provide a 
addGraphicSnippet form. But who's responsible for asking for this 
graphic when adding the product to the order? Is it still the 
Product object? But a Product turns into a Product-with-Graphic 
only when it's a part of an order, so is it correct for the Product 
to even know about Graphics? the alternative is to move the 
addToOrder methods to either Order or OrderLineItems, but this 
doesn't make any more sense because these would then have to know a 
lot more about a Product than is good for them. Any ideas?

Sounds to me like you have a new type of Product.

You have your basic products (of which there are many kinds), and 
you have ProductWithGraphic products. A ProductWithGraphic is a 
"calculated product": it is composed of a basic product and a 
graphic. Its cost, delivery time, packing charge, and so forth, are 
calculated based on the combination of the basic product and the 
graphic.

To the rest of the application, a ProductWithGraphic is just another 
kind of product.

Thanks, this is an interesting suggestion... but I'm not sure how it 
would work. It gets very complicated when I try to think of 
implementing it.

The application accesses products using a Products Specialist, with a 
Rack for each type of product. The contents of these Racks make up 
the Product catalog of the store. The Products Specialist implements 
the role of 'things that can be added to an order'.

On the other hand, ProductWithGraphic is not part of the store's 
catalog. A new instance of it is created every time a shopper adds a 
product to their cart. So it does not fill the role 'thing that can 
be added to an order'. rather, its role is of something that has been 
ordered and is being fabricated.

So treating ProductWithGraphic as another kind of Product doesn't 
seem to make sense... I do realize I need a new kind of product - 
CustomizableProduct. But, looking at the role of a 
ProductWithGraphic, it looks a lot more like an OrderLineItem than a 
Product. It's part of an order. It's state changes are part of the 
order handling process. So wouldn't it make sense to have a 
lineItemWithGraphic object in the OrderLineItems Specialist? That 
seems much simpler to me... except that the responsibilities question 
in it is still open. Back to square 1.

This is how I see it:

- Products Specialist
 productRack
 customizableProductRack

- OrderLineItem Specialist
 lineItemRack
 lineItemWithGraphicRack

- product.addMeToOrder():
 order.addLineItem(product_id=id, add='lineItem')

- custimazable_product.addMeToOrder():
 order.addLineItem(product_id=id, add='lineItemWithGraphic')

I imagine, then, that the UI for uploading the graphic would be 
included in product.addMeToOrderForm, using a UI snippet from the 
OrderLineItemsWithGraphic Specialist. Then I could pass REQUEST on to 
order.addLineItem and to OrderLineItemsWithGraphic.add, which would 
then upload the file?

Woof... so long. I'd appreciate any comments on this - especially on 
the question on whether it's better to have a specialized type of 
OrderLineItem, or to link the standard OrderLineItem to a Product 
object in case of a standard product, or, in the case of a 
customizable product, to a new object which stores the graphic and 
tracks the fabrication of the customized item.

TIA

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 )




Re: [Zope] ZPatterns

2000-12-17 Thread Steve Alexander

Steve Alexander wrote:


 You've described the Model-View relationship.
 The Controller part is where ZPatterns gets interesting; you can use 
 SkinScript to do a load of validation on your data, all in one place, in 
 a fairly specific and declarative language, which gets applied on 
 commiting a Zope transaction. That's powerful stuff!

Just to clarify this:

   I'm not suggesting that the controller's responsibility includes 
validating data.

Rather, I mean that you can use SkinScript to easily add an "aspect" of 
validating data in a certain way. In MVC terms, this is like a wrapper 
around the model that validates the data. All connectors from 
controllers to the model must go through this wrapper.

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


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




Re: [Zope] ZCatalog raises index out of range exception error

2000-12-17 Thread Dieter Maurer

Stefan H. Holek writes:
  Do you have a SiteRoot-ed environment? I believe I saw this error when
  trying to use the Catalog in a SiteRoot-ed folder...
  
  No solution, sorry ;)
We use the Catalog together with a SiteRoot without problems.

  I remove the host part of the URL before I index
  the object.

Dieter

PS: Sorry!
After writing, I recognized that we make
only restricted use of SiteRoots:

   we just change the host part but not the
   path part.

   As a result, the URL's only differ in
   the host part. The locally (wrt. the host)
   absolute URL's of an object are equal
   for all virtual domains.
   Therefore, removing the host part
   works out restricted use.

The general case, where the path part is
different for each virtual host,
is more difficult.

   I would probably go for a separate catalog
   for each virtual host and ensure
   that the URL's with which the objects
   are indexed are the URL's for this
   virtual host.

   This may require, that indexing is
   done in this same virtual host environment.

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

2000-12-17 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  There's a way to get the size of a file uploaded in a form before write it?
I am not sure, what type of object is used at the base of
"FileUpload" objects (to give them there file like behaviour).

If this a "cStringIO" objects, they may have a "len" attribute.
This means, you could use "your_uploaded_file.len" to get the
length.

Otherwise, you could try:

   file.seek(0,2)   # positions at the end
   len= file.tell() # tells the current position (i.e. the length)
   file.seek(0,0)   # positions at the start

That's Python code.
You can do something equivalent in several DTML commands.


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] Manage tar-file and store them externally

2000-12-17 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  This is a multi-part message in MIME format.
  
  --=_NextPart_000_00BC_01C0676C.125CBB90
  Content-Type: text/plain;
   charset="iso-8859-1"
  Content-Transfer-Encoding: quoted-printable
Please do not send MIME messages to this list!

  I cant to manage Files (.tar, ...) on this Website.
Why not?
What happens.

  ...
  Additionally i want to keep the file seperatly on an filesystem and not =
  in the Zope Object Repository.
You may look at the third party Zope products
"ExternalFile" and "LocalFS". Can can search for them via
zope.org.



Dieter

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




Re: [Zope] skinscript and ZSQL

2000-12-17 Thread Steve Spicklemire


Hi Aaron,

   Since we communicated privately and I now have a much better
understanding of your problem, I realized that my last message to the
list was unclear so I thought I'd take a moment to try to clarify the
'gotchas' that got you, as I see them, so that other folks might not
so easily fall into the same problems. 

   Since you started with 
"DumbZPatternsExample":http://www.zope.org/Members/sspickle/DumbZPatternsExample
others might be able to follow along better if they refer to that 
example.

Situation: 

You're creating a class that is used as a 'stand-in' for
objects stored in an SQL database. You're using ZPatterns to implement
this stand-in-ability.

These objects have the following attributes (these also correspond to
column names for the table that lives in the SQL database, in your
case, gadfly.)

client_name, email, rate, last_payment, primary, and services.

client_name is used as the 'id' of the object when it is
instantiated in Zope.

In order to accomplish this you:

1) Create a ZClass (ClientObject) to act as the stand-in. 
 1a) set up methods of the ZClass 

  editInstance: self.propertysheets.Basic.manage_changeProperties(REQUEST)
  editInstanceForm: (form to edit the properties of an instance)
  editInstanceInterface: (UI method that calls editInstance to get modification done)
  index_html: (display this instance)

 1b) set up propertysheet for ZClass
  add properties: email, rate, last_payment, primary and services.
   do *not* set up a property for client_name since it is really
   going to be the 'id', and also the property that the rack uses to see
   if the object was found in the database. 

   [ If 'client_name' were propertysheet-property then the Rack could
   create a virtual instance, and then attemt to access the property
   'client_name'. This would then fire the trigger that queries the
   database, which would fail (leaving the virtual instance
   unchanged).  Since the virtual instance is an instance of your
   ZClass even though the query failed the Rack would *still* get a
   valid value for the property from the ZClass property sheet!
   This is why you were getting the 'already exists' error in
   the first place. Taking the 'client_name' property out of the
   ZClass fixes this problem. ]

2) Create a Specialist with a Rack that manages the ZClass instances
   that represent the objects from your database.

  2a) In the Rack set the Storage tab so that it uses ClientObject
   as the class of objects it manages, and choose "loaded by accessing attribute"
   rather than "stored persistently". Set the attribute to 'client_name'.

  2b) In the "Data PlugIns" tab clear out the persistent PlugIns and
   replace them with a single SkinScript method with the following
   lines:
   
   

WHEN OBJECT ADDED CALL sqlInsertProduct(client_name=self.id, 
email=self.email, rate=self.rate, last_payment=self.last_payment, 
primary=self.primary, services=self.services)

WHEN OBJECT CHANGED STORE email, rate, last_payment, primary, services 
USING sqlUpdateProduct(client_name=self.id, email=self.email, rate=self.rate, 
last_payment=self.last_payment, primary=self.primary, services=self.services)

WHEN OBJECT DELETED CALL sqlDeleteProduct(client_name=self.id)

WITH QUERY lookup_product(client_name=self.id) COMPUTE 
client_name, email,rate,last_payment,primary,services



(The 'STORE ..' part on the WHEN OBJECT CHANGED line is
important to ensure that the Rack knows that these attributes
are being stored with this command.)

  2c) Add ZSQL Methods, Python Methods/Scripts and DTML methods to the
Speciliast so that it can carry out it's program.  Everything
*but* the SQL methods are covered in the previously mentioned
example. Here I'll only describe the ZSQL Methods used by the
SkinScript:

ZSQL Methods:

sqlInsertProduct, args: 

client_name email rate last_payment primary services

code:

INSERT INTO clienttracker_table
(client_name, email, rate, last_payment, primary, services)
VALUES
(
dtml-sqlvar client_name type=string,
dtml-sqlvar email type=string,
dtml-sqlvar rate type=string,
dtml-sqlvar last_payment type=string, 
dtml-sqlvar primary type=string, 
dtml-sqlvar services type=string 
)


sqlUpdateProduct, args:

client_name email rate last_payment primary services

code:

UPDATE clienttracker_table SET
email=dtml-sqlvar email type=string, 
rate=dtml-sqlvar rate type=string, 
last_payment=dtml-sqlvar last_payment type=string, 
primary=dtml-sqlvar primary type=string, 
services=dtml-sqlvar services type=string
where client_name=dtml-sqlvar client_name type=string

sqlDeleteProduct, args:

client_name

code:

   

[Zope] Windows NT: Changing default TCP port

2000-12-17 Thread Steve Smith

Simple question (I presume): How do I change the Zope service under Windows
NT to listen on port 80 (instead of 8080).

Steve Smith


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Windows NT: Changing default TCP port

2000-12-17 Thread Paul Browning



--On 17 December 2000 23:24 +1100 Steve Smith [EMAIL PROTECTED] 
wrote:

 Simple question (I presume): How do I change the Zope service under
 Windows NT to listen on port 80 (instead of 8080).

A brute force way is to edit z2.py (at the top of your Zope
installation). Change this line:

# Port for HTTP Server. The standard port for HTTP services is 80.
HTTP_PORT=8080

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

2000-12-17 Thread Max M

From: Steve Alexander

I found your discussion of ZPatterns terms very thought-provoking.

Thanks. The first positive comment about it :-)

Your reply seems thorough. I will read it through in a day or two. (Has a
deadline right now.)

Max, I'm extremely impressed! When I first read through your
explanation, I figured you were a regular ZPatterns user :-)

No such luck. I am too busy right now to learn new stuff. Has to get a
project or two out the door first. But it sounds very interresting so I will
give it a go in the beginning of the new year.

Regards Max M

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



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




[Zope] LoginManager - logging out

2000-12-17 Thread Aleksander Salwa


I used this code in my "logoutForm" to logout user in my old setup
(LoginManager-0_8_7a1, ZPatterns-0-4-2a1 and Zope 2.2.1):
dtml-call "AUTHENTICATED_USER.logout()"

It doesn't work when using LoginManager-0-8-8b1 + ZPatterns-0-4-3b2 +
Zope 2.2.4.
I've found a work-around:
dtml-call "acl_users.logoutUser(AUTHENTICATED_USER.getId())"
It logouts user as expected.

But, can anybody tell me, why the former one doesn't work as it should ?


[EMAIL PROTECTED]

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



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




Re: [Zope] SiteAccess and Roles

2000-12-17 Thread The Doctor What

* Michael Bernstein ([EMAIL PROTECTED]) [001214 01:06]:
 I read your access rule, and it seems like you've got it set
 up to ignore the gTLD, so that www.gerf.org and www.gerf.com
 etc. get routed to the same object automatically. Is that
 correct?

Yes.  I have several sites that use that feature, and none that
don't.  It's actually really handy, as it's one line in my
siteaccess rule vs. several in my apache config. :-)

Ciao!

-- 
There is no sweeter sound than the crumbling of your fellow man.
-- Groucho Marx

The Doctor What: fill in the blank http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC


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




[Zope] Re: running zope with OpenBSD 2.8 i386

2000-12-17 Thread Ragnar Beer

I still got it under construction. Zope shouldn't work with Python 
1.6 so I removed the package and downloaded the python 1.5.2 sources 
you ./configure --with-thread to have threads enabled and that's it. 
Runs beautifully but I didn't have time to install Zope so far. It's 
running very well under OBSD 2.7 but that version has a python 1.5.2 
package.

Viel Spass!

Ragnar


hi ..

I want to switch my webserver from linux 2.2.15 to OpenBSD 2.8. On the
linux machine I am running the zope webserver.
I tried to let it run with my OpenBSD home-installation, but it doesn't
work. It compiles slightly and starts up. When I connect to it it asks
me for the superuser account. Then I try to login but I get a lot of
error messages (python related, so maybe the port "python-1.6-threads"
is buggy?).

My question is: Did someone of you got zope running with obsd 2.8? The
documentation of zope says it runs in any case with 2.7 and python 1.6
...

(I tried the above on 2 machines, both obsd 2.8, both the same errors)


thanks for reading ...

MfG
--
Rene Lange



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

2000-12-17 Thread Luke Tymowski

At 06:25 PM 2000/12/13 +0100, you wrote:
My question is: Did someone of you got zope running with obsd 2.8? The
documentation of zope says it runs in any case with 2.7 and python 1.6

You cannot run Zope with OpenBSD 2.8.
Zope triggers an obscure bug in the threading library that comes with 2.8.

Zope runs wonderfully with OpenBSD 2.7.

Luke


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 can you tell who created an object in Zope?

2000-12-17 Thread Chalu Kim


I have started building asset management/role-based publishing system
for multimedia application. It struck me that I could not tell who
created objects in the first place. I see in undoable_transaction
"user_name" by following UndoForm.

I was building author into a few Z classes we fashioned for each
multimedia type. Then, why bother because I have seen in UndoForm the
user name of each undoable action. So, I backed out and started looking
to see if there is pre-built in Zope. 

What I would like is to be able to tell who created an object? Is there
an easy way to do this?

Perhaps, I need to stare at undoLog?

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




RE: [Zope] LoginManager - logging out

2000-12-17 Thread Chalu Kim


No, you are right. It does not work. It is because LM's default login
method is Basic. Basic logout does not work because of Basic
authentication and that the browser caches the credential. This means
unless you shut down your browser, whatever you do, you are back to
square one.

The remedy is to change your login method to Cookie so that
AUTHENTICATED_USER.logout() works.

Good luck.

http://lists.zope.org/pipermail/zope/2000-December/037253.html
Title:  [Zope] LoginManager - logging out


 
 
   [Zope] LoginManager - logging out
Aleksander Salwa 
[EMAIL PROTECTED]
Sun, 17 Dec 2000 14:58:43 +0100 (CET)

 Previous message: [Zope] Windows NT: Changing default TCP port
 Next message: [Zope] how can you tell who created an object in Zope?
  Messages sorted by: 
  [ date ]
  [ thread ]
  [ subject ]
  [ author ]
 
   
  

I used this code in my logoutForm to logout user in my old setup
(LoginManager-0_8_7a1, ZPatterns-0-4-2a1 and Zope 2.2.1):
dtml-call AUTHENTICATED_USER.logout()

It doesn't work when using LoginManager-0-8-8b1 + ZPatterns-0-4-3b2 +
Zope 2.2.4.
I've found a work-around:
dtml-call acl_users.logoutUser(AUTHENTICATED_USER.getId())
It logouts user as expected.

But, can anybody tell me, why the former one doesn't work as it should ?


[EMAIL PROTECTED]

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
















	 Previous message: [Zope] Windows NT: Changing default TCP port
	 Next message: [Zope] how can you tell who created an object in Zope?
  Messages sorted by: 
  [ date ]
  [ thread ]
  [ subject ]
  [ author ]
 
   



[Zope] Zope counters @netcraft

2000-12-17 Thread Cees de Groot

In the interest of getting Zope into the picture, I'm registering some 5,700
sites I just brought up at Netcraft. Every little bit helps, they say...

-- 
Cees de Groot   http://www.cdegroot.com [EMAIL PROTECTED]
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD  1986 F303 937F E098 9E8B

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

2000-12-17 Thread Bill Anderson

Loren Stafford wrote:
 
 Just for your entertainment
 
 - Original Message -
 From: "Charles Knerr" [EMAIL PROTECTED]; "Webmaster"
 [EMAIL PROTECTED]
 To: "Loren Stafford" [EMAIL PROTECTED]
 Sent: December 15, 2000 10:54 PM
 Subject: Zope.org feedback
 
  URL: http://www.zope.org/Members/lstaffor/Breadcrumbs
  In regards to this URL
  http://www.zope.org/Members/lstaffor/Breadcrumbs
 
  I am the Chairman of Breadcrumbs Inc. a Delaware Corporation.We have
 trademarked the name Breadcrumbs as a navigational tool in the computer
 software and Internet industry classifications.
 
  You are infringing on our trademark.  Please remove all references to
 Breadcrumbs in your documentation.
 
  Thanks very much,
  Chuck Knerr


What is even funnier is he's wrong.
He has applied for a word mark as of sept 15, 1999, which has NOT been
granted so far.

===
Here are the latest results from the TARR web server.

Serial Number: 75780367

Registration Number: (NOT AVAILABLE) 

Mark (words only): BREADCRUMBS

Current Status: A non-final action has been mailed. This is a letter
from the examining attorney requesting additional information and/or
making an initial refusal. However, no final
determination as to the registrability of the mark has been made.

Date of Status: 2000-04-04

Filing Date: 1999-09-15

Registration Date: (DATE NOT AVAILABLE)

Law Office Assigned: TMEG Law Office 102


Which the local IP guy says means he has nothing.

In addition, if you look at his filing date, we beat him to it. As in
prior art.:
http://zope.nipltd.com/public/lists/zope-archive.nsf/Main?SearchView=++Query=breadcrumbsSearchOrder=1Start=1Count=20

(above link will stretch over two lines)

The archives show that Loren was using this term for this usage by
nearly a month. if nothing else, the timing of the application
coinciding with the introduction of the term by Loren is at best
suspicious. In fact, it occurs on the very day that Loren made the
announcement of the howto.


Bill Anderson

"What a maroon." -- Bugs Bunny


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

2000-12-17 Thread Bill Anderson

Bill Anderson wrote:
...
 The archives show that Loren was using this term for this usage by
 nearly a month. if nothing else, the timing of the application
 coinciding with the introduction of the term by Loren is at best
 suspicious. In fact, it occurs on the very day that Loren made the
 announcement of the howto.


And according to the USPTO:

Federal registration is not required to establish rights in a trademark.
Common law rights arise from actual use of a mark. Generally, the first
to either use a mark in commerce or file an intent to use application
with the Patent and Trademark Office has the ultimate right to use and
registration. 

Loren wins again. :)


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

2000-12-17 Thread Mohan Baro

Hi everyone

Currently I am using the RPM version of ZOPE(2.2.2) from Jeff Rush.

I have installed the current verion 2.2.4 non RPM version.
I want to transfer my files from websites  products from the current site
to the new install.
Which files and directories do I copy?.

The RPM versions create a lot of directories and a startup file.

How can I use this startup file on the new server?


Thanks in advance.


Mohan.


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




RE: [Zope] LoginManager - logging out

2000-12-17 Thread Aleksander Salwa

On Sun, 17 Dec 2000, Chalu Kim wrote:
 No, you are right. It does not work. It is because LM's default login
 method is Basic. Basic logout does not work because of Basic
 authentication and that the browser caches the credential. This means
 unless you shut down your browser, whatever you do, you are back to
 square one.

But I use cookie authentication all the time.


[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] Creating tables from ZSQL methods..?

2000-12-17 Thread Lee

I have a ZSQL method, createClassTable, where the paramter 'classCode'
is used to name the table:

create table dtml-sqlvar classCode type=string
(
matric float,
fname varchar,
lname varchar,
.. etc
)

Is there anyway to execute this in a DTML document 'on the fly'?

I have a DTML method where the classCode argument is passed onto the
ZSQL method via a web form... but when submitted I am met with Zope
interface and asked to enter the query parameter.

What I am trying to do: The user will click 'Submit' - and a table is
created... the NEXT generated screen will be a view of the database,
where he can edit content via web forms, etc. How do I execute the query
and go to this view screen in one go?

Creating a ZSearchInterface on my ZSQL method has given me a few
ideas... but all of them have their problems. Can anyone offer any
solutions?

Thanks,

Lee

--
Lee Reilly
mailto:[EMAIL PROTECTED]
http://www.footkick.co.uk/lee



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

2000-12-17 Thread Michael Bernstein

Bill Anderson wrote:
 
 Bill Anderson wrote:
 ...
  The archives show that Loren was using this term for this usage by
  nearly a month. if nothing else, the timing of the application
  coinciding with the introduction of the term by Loren is at best
  suspicious. In fact, it occurs on the very day that Loren made the
  announcement of the howto.
 
 And according to the USPTO:
 
 Federal registration is not required to establish rights in a trademark.
 Common law rights arise from actual use of a mark. Generally, the first
 to either use a mark in commerce or file an intent to use application
 with the Patent and Trademark Office has the ultimate right to use and
 registration.

Sorry, but 'breadcrumbs' as a description of various types
of web-navigation features has been in use quite a bit
longer than this. Try searching http://www.useit.com/ for
the term 'breadcrumbs' and you'll come up with some
documents dating to 1994.

So Loren does not 'win', except that this Charles Knerr
person has absolutely no claim on the term.

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 )




Re: [Zope] Fw: Zope.org feedback

2000-12-17 Thread Andrew Kenneth Milton

+---[ Michael Bernstein ]--
|
|  Federal registration is not required to establish rights in a trademark.
|  Common law rights arise from actual use of a mark. Generally, the first
|  to either use a mark in commerce or file an intent to use application
|  with the Patent and Trademark Office has the ultimate right to use and
|  registration.
| 
| Sorry, but 'breadcrumbs' as a description of various types
| of web-navigation features has been in use quite a bit
| longer than this. Try searching http://www.useit.com/ for
| the term 'breadcrumbs' and you'll come up with some
| documents dating to 1994.

I'm sure the Hansel and Gretel story from which this was based in the
first place could get a foot in the door as well. It's not a big stretch
to go from forest to web navigation d;)

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

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




Re: [Zope] How to make two racks work under one specialist?

2000-12-17 Thread Dirksen

Hi Steve,

Both racks are set to be loaded by accessing 'id', which, as you guessed right, don't
appear in handling attributes list! 

This is the simplified skinscript in maleMemberRack:
WITH getMale(self.id) COMPUTE original_object=RESULT
WITH self.original_object COMPUTE 
 name=id,
 gender=gender,
 email=email

getMale is a python method:
member = getMember(id)
if id.gender == 'male':
return member

Things just go opposite direction in femaleMemberRack.

What do you think?

Dirksen




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

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