Re: [Zope-dev] mounting obj to more than one zodb location

2001-01-18 Thread Chris Withers

Shane Hathaway wrote:
 
 It depends on the product you use for mounting, but generally you'll get
 a shared database with independent connections.  So it will work, but if
 you make conflicting changes, the transaction should fail.

Oooo... was this thread about mounted databases?

Sorry, I got the wrong end of the stick ;-)

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 )




[Zope-dev] Implementing a URL path resolver

2001-01-18 Thread morten

Hi guys,

I've been tinkling with a function that does what REQUEST.resolve_url does,
except without it relying on having a REQUEST instance available.

That is, just resolving the path itself, something like this:

path ÿstring.split(relative_url, '/')
path ÿfilter(None, path)
new_path ÿ'%s' % path[0]
path ÿpath[1:]

for element in path:

new_path ÿnew_path + "['%s']" % element

return eval("self%s" % new_path)

Now, neither []- or .-like evaluation of the path works..

Any ideas?

Cheers,

Morten


___
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] Implementing a URL path resolver

2001-01-18 Thread Steve Alexander

[EMAIL PROTECTED] wrote:

 Hi guys,
 
 I've been tinkling with a function that does what REQUEST.resolve_url does,
 except without it relying on having a REQUEST instance available.

Have you seen the methods restrictedTraverse and unrestrictedTraverse in 
lib/python/OFS/Traversable.py ?

These would seem to do what you need. The methods restrictedTraverse is 
available from DTML.

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




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




Re: [Zope-dev] Implementing a URL path resolver

2001-01-18 Thread Morten W. Petersen

[[EMAIL PROTECTED]]

(Bug in the encoding of the message, MHA)

| path = string.split(relative_url, '/')
| path = filter(None, path)
| new_path = '%s' % path[0]
| path = path[1:]
| 
| for element in path:
| 
|   new_path = new_path + "['%s']" % element
| 
| return eval("self%s" % new_path)

-Morten

___
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] Implementing a URL path resolver

2001-01-18 Thread Morten W. Petersen

[Steve Alexander]

| Have you seen the methods restrictedTraverse and unrestrictedTraverse in 
| lib/python/OFS/Traversable.py ?

Exactly what I needed.  Thank you.

-Morten

___
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] MountedFileStorage

2001-01-18 Thread Steve Alexander

I've just been trying out the MountedFileStorage product (by Anthony 
Baxter) with Zope 2.3.

I've got it mostly working, by patching a couple of typos, and making 
the SubApplication class derive from Traversable before Application.

I've *almost* got ZClasses defined in the root storage working in a 
mounted storage, but there are still a few issues there.


What product is DC using for the mounted storages on zope.org? Can I get 
a copy of it?

I don't see any undo records for objects in the mounted storage. It is a 
FileStorage, so I reckon they should be there.

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


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




[Zope-dev] skinscript and URL traversal question

2001-01-18 Thread Aaron Payne

Hi all,

I originally posted this to the zope list and, upon suggestion, I am 
reposting it to zope-dev.

I'm using a zsql method in a skinscript with query ... compute ... and it 
mostly works. Retrieving the dataskin with getItem() works.  For example,
Cid is the id of the coupon dataskin.
dtml-with "getItem(Cid)"
   dtml-var couponattributes
/dtml-with

Trying to access the object directly through URL traversal fails.
http://CouponSite/CouponManager/977931214.694/CouponDetails

Where:
CouponManager is a specialist
977931214.694 is the id of the coupon dataskin
CouponDetails displays the coupon attributes with:
dtml-var couponattributes
It returns a not found error. The CouponManager specialist can't find the 
coupon 977931214.694.
Any thoughts why this is so?

SkinScript Trigger:
WITH QUERY searchByNameCheck(self.id) COMPUTE 
name,username,coupon_text,categorylist,categoryheader,expirationdate,status,couponterms

PythonMethod:
searchByNameCheck
paramsself,nameparams
Cname=name
result=self.searchBy_Name(name=Cname) #zsql method
return result


Error Type: NotFound
Error Value: None
Traceback (innermost last):
File /usr/local/etc/Zope2d/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
File /usr/local/etc/Zope2d/lib/python/ZPublisher/Publish.py, line 187, in 
publish
File /usr/local/etc/Zope2d/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ProviderContainer)
File /usr/local/etc/Zope2d/lib/python/ZPublisher/Publish.py, line 162, in 
publish
File /usr/local/etc/Zope2d/lib/python/ZPublisher/BaseRequest.py, line 338, 
in traverse
File /usr/local/etc/Zope2d/lib/python/Products/ZPatterns/Specialists.py, 
line 25, in __bobo_traverse__
(Object: ProviderContainer)
NotFound: (see above)


Zope version: Zope 2.2.1 (source release, python 1.5.2, linux2)
System Platform: freebsd4

-thanks,
Aaron



___
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] Calling HTMLFiles

2001-01-18 Thread Morten W. Petersen

Hi,

I'm having difficulties calling an HTML file from python..

Here's the code:

[...]
from events import conflicting_events

calendar_event_add_redirect = HTMLFile('calendar_event_add_redirect',
globals())
manage_add_calendar_event_form = HTMLFile('calendar_event_add', globals())
conflicting_events_dialogue = HTMLFile('calendar_event_conflicting_events_dialogue', 
globals())

# These two expand into seconds
expand_hour = lambda x: x * 60 * 60
expand_minute = lambda x: x * 60

def manage_add_calendar_event(self, title='', note='',
alarm=0, start=0, end=0,
priority=0, status=0,
REQUEST=None, RESPONSE=None):
"Add an instance of the calendar_event class."

new_id = str(self.get_unique_id())

if REQUEST:

alarm = expand_hour(REQUEST['alarm_hour']) + \
expand_minute(REQUEST['alarm_minute'])

start = expand_hour(REQUEST['start_hour']) + \
expand_minute(REQUEST['start_minute'])

end = expand_hour(REQUEST['end_hour']) + \
expand_minute(REQUEST['end_minute'])

title = REQUEST['title']
note = REQUEST['note']
priority = REQUEST['priority']
status = REQUEST['status']


conflicting_events_ = self.check_timespan(
self.getParentNode().getParentNode().id,
self.getParentNode().id, self.id,
start, end)

if conflicting_events_:

return conflicting_events_dialogue(self, REQUEST)
[...]

Now, if there are any conflicting events, the HTMLFile is returned, with
some parameters passed along.

What I'm wondering about is how can I pass the variables defined
in the REQUEST so that they can be looked up with dtml-code in
the conflicting_events_dialogue?

And doing it without raising KeyErrors on DTMLMethod that are
called from within the conflicting_events_dialogue?

Thanks.

-Morten


___
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] MountedFileStorage

2001-01-18 Thread Shane Hathaway

Steve Alexander wrote:
 
 I've just been trying out the MountedFileStorage product (by Anthony
 Baxter) with Zope 2.3.
 
 I've got it mostly working, by patching a couple of typos, and making
 the SubApplication class derive from Traversable before Application.
 
 I've *almost* got ZClasses defined in the root storage working in a
 mounted storage, but there are still a few issues there.
 
 What product is DC using for the mounted storages on zope.org? Can I get
 a copy of it?

http://www.zope.org/Members/hathawsh/ExternalMount

ExternalMount is simpler and more flexible than MountedFileStorage. 
However, a feature of MountedFileStorage is that it lets you try to
mount the root of a ZODB.  For various reasons, that is a Bad Idea. 
That's why it has all the "subapplication" stuff, which ExternalMount
doesn't need because it won't let you mount the root of a ZODB.

Instead, you mount a subobject.  The application object in Wikis.fs on
zope.org contains a folder called "Wikis".  That folder is what gets
mounted; whatever else is in Wikis.fs (like a Control_Panel, an
acl_users, etc) is ignored.

I think you'll find that if you set up your mounted databases this way,
you'll get the reliability you're looking for.

 I don't see any undo records for objects in the mounted storage. It is a
 FileStorage, so I reckon they should be there.

Currently, undo and mounted databases don't mix.  You can only undo
transactions on the root database.  Besides that, there's the problem of
coordinating the undo of transactions that span multiple
databases--should it be done and how?

Mounted databases are interesting and, for the most part, robust, but
they aren't fully integrated with some of Zope's capabilities yet.

Shane

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




[Zope-dev] ZPatterns: Attribute Providers

2001-01-18 Thread Steve Alexander

Here's my understanding of how Persistent Attribute Providers work:

Persistent Internal Attribute Provider

   DataSkins and Attributes are ultimately stored like this:


Rack's BTree
   |
   |
   | Slots: key:value
   |
   |-('ZPatterns.Rack','Self') : DataSkin instance
 ...which has the attribute __dict__
containing its attributes
{'id':object_id,
 'foo':value for foo,
 'bar':value for bar}

Persistent External Attribute Provider

Rack's BTree
   |
   |
   | Slots: key:value
   |
   |-('ZPatterns.Rack','Self') : DataSkin instance
   | ...which has the attribute __dict__
   |containing 'id':object_id
   |-foo:value for attribute foo
   |-bar:value for attribute bar


The key ('ZPatterns.Rack','Self') is the special SelfKey that racks use 
to ensure there is a unique place in a slot to put the slot's object.


Do I have this right?

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


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




[Zope-dev] Fw: PythonMethods and ZClass generation problem

2001-01-18 Thread Alexander Limi

Sorry if I'm overstepping any bounds here, but I tried posting this to the
main list, but the answers I get do not help me. I figured maybe somebody on
the PTK- or the Dev-list might be able to help. This is a bit of a crisis,
since our site has been down for a week due to this problem.

I also discovered that Zope 2.3 has PythonScript which has the "context"
object. Would this be of any help in the following problem? Just a thought.

This is my original posting:

 Hi,

 We recently decided to use LoginManager for authentication on our site,
and
 refactored our user registration methods to use PythonMethods instead of
 DTML.

 Now, during the registration of a user, we want to add a ZClass instance
 in the correct folder. This object is a representation of some of the
 information the user provides when he registers with us.

 But we have stumbled across a problem. This is probably a very basic and
 simple problem, but I couldn't find any info on it on zope.org, and none
of
 the people on IRC could help us either. So I'll try this posting instead.
:)

 What we're trying to do is to add a ZClass instance/object
programmatically
 from a PythonMethod. Our constructor is called Artist_add, and resides in
 our product "Artist". The constructor uses variables
 that we have set in the REQUEST object.

 So the process is like this:

 User fills out form with variables that are put in REQUEST
   |
 Form calls "registerartist", which is a PythonMethod
   |
 "registerartist" creates the user
   |
 "registerartist" tries to call the constructor of our Artist ZClass to add
 an Artist object in our "artists" folder, but fails.

 To add the Artist object we tried to call the constructor in the following
 way from "registerartist":

 return self.artists.manage_addProduct['Artist'].Artist_add(_.None,_)

 but then the REQUEST object was not available, and the object creation
fails
 since it can't find the variables it needs. The traceback for this was:

 File string, line 41, in registerartist (Object:
 ApplicationDefaultPermissions) File
 /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 168, in __call__
(Object:
 Artist_add) File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py,
 line 531, in __call__ (Object: Artist_add) IndexError: (see above)



 So we tried a different approach:

 return self.artists.manage_addProduct['Artist'].Artist_add(_.None,REQUEST)

 This solved the problem with REQUEST not being available, we can view its
 variables now, but now we can't
 access Artist.createInObjectManager. The error message we get is:
 "NameError Artist".

 So, I guess the question is: how can I add a ZClass instance
 programmatically from a PythonMethod based on data in the
 REQUEST object?

 Additional version info:
 Zope 2.2.4
 PythonMethod 0-1-7
 LoginManager 0-8-8b1
 ZPatterns 0-4-3b1
 DataSkinAddons 0-0-2
 Membership 0.7.8



 Thanks in advance,


 Alexander.


___
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] Fw: PythonMethods and ZClass generation problem

2001-01-18 Thread seb bacon

hi,

sounds to me like you're confusing Product with ZClass:

* Alexander Limi [EMAIL PROTECTED] [010118 17:04]:
  ...Our constructor is called Artist_add, and resides in
  our product "Artist".
...

  "registerartist" tries to call the constructor of our Artist ZClass to add
  an Artist object in our "artists" folder, but fails.

In fact, you have to create an instance of your ZClass in the
Product.

Try something like (untested):

  
self.manage_addProduct['Artist_Product'].Artist_ZClass.createInObjectManager(REQUEST['id'],REQUEST)

I'm no expert but that should get you started in the right direction.

seb

___
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] MountedFileStorage

2001-01-18 Thread Johan Carlsson

 
 http://www.zope.org/Members/hathawsh/ExternalMount
 

Sound interesting.
Is it possible to mount a read-only database from several different Zope-clients?

Regards,
Johan 



___
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] MountedFileStorage

2001-01-18 Thread Shane Hathaway

Johan Carlsson wrote:
 
 
  http://www.zope.org/Members/hathawsh/ExternalMount
 
 
 Sound interesting.
 Is it possible to mount a read-only database from several different Zope-clients?

Yes.  The database should be inside a ZEO storage server.  ExternalMount
can mount ZEO ClientStorages (that's how www.zope.org/Wikis works) and
AFAIK you have the opportunity to provide a "read-only" parameter to the
storage or the database.

In fact, when you mix in ZEO you can mount the database on one client
while using it as the root database on another client.  That way you can
get around the lack of undo.

Shane

___
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] Q: how to retrieve transactions from a Data.fs fragment?

2001-01-18 Thread Shawn Murphy


Yes

We experienced a nasty confluence of suprises:
 - CanOfRaid is imperfect, 
 - reiserfsck is imperfect,
 - our backups were imperfect
[We already knew we were imperfect.]

The result is that all we have left of about 6 weeks of several peoples
development effort is two Data.fs scraps recovered from a reiser fs by one
of the reiser developers.  We also have an intact 2 month old Data.fs
which we would like to update with whatever we can retrieve from these two
scraps.

Fragment#1 is 187MB where the first 147MB is nothing but nulls and the
remainder is stuff that satisfies a tranalyzer rigged to not gag because
of the missing leading 'FS21'.  The offsets within Fragment#1 are all
correct.  That is, each transaction at the location in the file it thinks
it ought to be.  Fragment#2 is 600KB and has about 500K of nulls at the
beginning.  I am not yet sure if the offsets are 'proper' in it. I presume
that these nulls are artifacts of the restoration process from the
reiserfs.

So my question is:  What is the best strategy for getting the Folders, 
DTML Methods, DTML Documents and ZSQL Methods contained in these Data.fs
fragments safely back into production?

Just to get the ball rolling

I have a done a evening's worth of experimenting with tranalyzer to
evaluate the state of these fragments and explore strategies for getting
their contents back into service.

It seems that it will not work to simply append these zope transaction
records to the end of a Data.fs because these transaction records have
offset data built into them (the backpointer).  Some form of any of the
following could get the job done, but which one?  Is there some better
approach?  An existing tool?  Guru wisdom appreciated...

Plan 1
==
Simply massage the data so it has the right offset values and then
tack it on the end of the old Data.fs.

Cons: 
  What will happen with transactions which are edits of missing objects?
  
Plan 2
==
Have the data drive a program which interacts with a running ZODB and
replays the transactions.  Several ways to do this come to mind...
  a) write  an http client to perform the operations against a normal,
 running Zope
  b) write a tool which uses FileStorage.py to read the frag and write to
 the clean Data.fs

Plan 3
==
Make a human readable form suitable for cut and pasting into zope via
the regular management screens.  

Cons:
  - Final refuge of the damned because of the redundancy of the data in Data.fs, 
each update being present...
  - Besides, it just isn't "lazy" enough.






  Shawn MurphyResearch and Development
  mailto:[EMAIL PROTECTED] Emergence by Design
  work://1.780.413.6397   http://www.emergence.com




___
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] Re: [Zope-PTK] Fw: PythonMethods and ZClass generation problem

2001-01-18 Thread Alexander Limi

From: "Shane Hathaway" [EMAIL PROTECTED]

 You were *SO* close. :-)

 I think you want this:

 return self.artists.manage_addProduct['Artist'].Artist_add(_.None,_)

 to be like this:

 return
 self.artists.manage_addProduct['Artist'].Artist_add(_.None,_,REQUEST)

Tried both of those already. When testing it, and Artist_add contains
nothing but "dtml-var REQUEST" (so nothing else can be wrong), I get:

KeyError: REQUEST

and the traceback looks like this:

File string, line 41, in registerartist (Object:
ApplicationDefaultPermissions)
File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 168, in __call__
(Object: Artist_add)
File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 528, in
__call__ (Object: Artist_add) KeyError: (see above)


Thanks for you suggestions so far,


Alexander.



___
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] Re: [Zope-PTK] Fw: PythonMethods and ZClass generation problem

2001-01-18 Thread Shane Hathaway

Alexander Limi wrote:
 
 From: "Shane Hathaway" [EMAIL PROTECTED]
 
  You were *SO* close. :-)
 
  I think you want this:
 
  return self.artists.manage_addProduct['Artist'].Artist_add(_.None,_)
 
  to be like this:
 
  return
  self.artists.manage_addProduct['Artist'].Artist_add(_.None,_,REQUEST)
 
 Tried both of those already. When testing it, and Artist_add contains
 nothing but "dtml-var REQUEST" (so nothing else can be wrong), I get:
 
 KeyError: REQUEST
 
 and the traceback looks like this:
 
 File string, line 41, in registerartist (Object:
 ApplicationDefaultPermissions)
 File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 168, in __call__
 (Object: Artist_add)
 File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 528, in
 __call__ (Object: Artist_add) KeyError: (see above)
 
 Thanks for you suggestions so far,

Oh, wait a minute, I see what's going on now.  Try this:

return self.artists.manage_addProduct['Artist'].Artist_add(self,
self.REQUEST)

Shane

___
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] SQL delimiter?

2001-01-18 Thread Jose Soares

You need to insert the following line between two SQL statements.
dtml-var sql_delimiter
Remember you can't use it with more than one SELECT.
sql_delimiter is usefull only to separate more than one
INSERT, UPDATE, DELETE.

Jos


Andy McKay wrote:

 Ive looked through the docs and Im sure I saw once (but cant see it now),
 some sort of delimiter between SQL statements allowing me to put multiple
 SQL statements in one SQLMethod. Was I imagining that?
 --
   Andy McKay.

 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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] sendmail / python list parameter - DTML method

2001-01-18 Thread Lee

Thanks again Dieter! Everything's working just about perfect but can I ask
you one quick question?

When a form is submitted the current REQUEST object's form data is cleared
and repopulated using the new form input parameters, yeah? Is it possible
to *not* clear it?

Why do I want to do this? Well, I've used dtml-call
"REQUEST.set('recipients',[])" to help me display an email message in a
form, which when submitted will be sent using sendmail.

Email message displayed here

form action="method4"
input type="hidden" name="subject" value="dtml-var subject"
input type="hidden" name="sender" value="dtml-var sender"
input type="hidden" name="senderEmail" value="dtml-var senderEmail"
input type="hidden" name="message" value=dtml-var message""
*** some code here to pass the recipient *list* as a parameter / stop the
REQUEST object from being cleared ***
*** e.g input type="hidden" name="recipients" value=dtml-var
recipients" or input type="hidden" name="recipients" value=dtml-var
recipients:list" produces the wrong results... ***
input type="submit"
/form

If the list holds ['ltyler', 'lreilly'] then displaying it in the next
method using dtml-var recipients produces ['ltyler', (i.e. the first
element). Do you know how can I get round this?

I've CC's this to the newsgroup in case someone there can help.

Thanks very much,

Lee

Dieter Maurer wrote:

 Lee writes:
   dtml-call "REQUEST.set(recipients,[])"
  dtml-call "REQUEST.set('recipients',[])"

 You have to enclose "recipients" in '...'.
 Otherwise, it is interpreted as a variable, which does not (yet) exist.

 Dieter

--
Lee Reilly
mailto:[EMAIL PROTECTED]

````

HAVE SKILLS; WILL TRAVEL.

I'm currently looking for an internship in the USA
in the field of web development. Ideally, I'm looking
for a placement for 3 to 18 months. Can you help?

More details, my resume, etc. @
http://homepages.strath.ac.uk/~aeu97172/

/shameless plug




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

2001-01-18 Thread Stephane Bortzmeyer

On Thursday 18 January 2001, at 16 h 33, the keyboard of "OK Studio" 
[EMAIL PROTECTED] wrote:

 ISP just upgraded to python 2.0 without my knowledge.

(BTW, I run Zope 2.2.2 with Python 2.0c1 for several months without any 
problem.)

 cc -fPIC  -O -pipe -D_THREAD_SAFE -I/usr/local/include/python2.0 =
 -I/usr/local/in
 clude/python2.0 -DHAVE_CONFIG_H -c ./../Components/cPickle/cPickle.c
 ../../Components/cPickle/cPickle.c:57: mymath.h: No such file or =
 directory

Small bug: just suppress the #include ... mymath.h and recompile.




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

2001-01-18 Thread Stephane Bortzmeyer

On Wednesday 17 January 2001, at 13 h 15, the keyboard of ethan mindlace 
fremen [EMAIL PROTECTED] wrote:

 http://www.zope.org/Members/rossl/ZMirror
 
 Claims to do what you want.

Warning: you cannot use it freely (see the licence), unlike Zope itself. Again, it is 
much faster and simpler to run 'wget --mirror http://www.yoursite.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] Missing attribute with ZSQL methods?

2001-01-18 Thread Stephane Bortzmeyer

On Wednesday 17 January 2001, at 11 h 30, the keyboard of "Ron Bickers" 
[EMAIL PROTECTED] wrote:

 "missing" is only effective if the variable telephone cannot be found.  Even
 if it has a null or None value, it's not considered missing.  Try dtml-var
 telephone null="(No phone)" instead.

This one works fine (you got the reason right) and I missed it in the 
documentation.

Emmanuel Philippot [EMAIL PROTECTED] suggested another way, which 
seems to do the same:

dtml-var telephonedml-unless telephone(No phone)/dtml-unless

Thanks to both of you.

 




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




Re: [Zope] case insensitive searches

2001-01-18 Thread Maggie Shapland

you didnt read the rest of the message or my example. Its all very well
using the sql lower function, but if you cant force the user to type 
the input in lower case you are wasting your time. However, I have now 
cracked it, as a later message to the group shows, but only in the 
report dtml, not in the sql method. See my web page for further details
On Wed, 17 Jan 2001 22:13:51 +0100 (CET) Dieter Maurer 
[EMAIL PROTECTED] wrote:

 Maggie Shapland writes:
   How does one do a case-insensitive search using sql 
   methods when the underlying database is case-sensitive?
 Oracle, e.g., provides functions "LOWER" and "UPPER"
 that you can use in SQL expressions.
 They can be used to implement case-insensitive searches.
 
 Look at the list of built-in functions for your database.
 
 
 Dieter
 

--
Maggie Shapland, Computing Service, University of Bristol, Tyndall Av, 
Bristol BS8 1UD
Tel: 0117-9289869 (Int 9869)
Email: [EMAIL PROTECTED]
Web page: http://www.cse.bris.ac.uk/~ccmjs/
1925 Lanchester 21, 1925 Talbot 10/23, 1929 Peugeot 190S, 1986 Moss 
Monaco


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

2001-01-18 Thread Chris Withers

 Priya Ramkumar wrote:
 Error Type: AttributeError
 Error Value: Vocabulary
 
 Is there any bug fix for this?

Try adding a Vocabulary object into your ZCatalog...

...and don't post this list in HTML ;-)

Chris

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




Re: [Zope] namespace clash with 'URL', any others?

2001-01-18 Thread Chris Withers

Here for the HTML impaired: ;-)

 "iap_y2fun.com" wrote:
 
 Hi, I can't set the ID of a instance to be "URL".
 Once I create one, the folder which contains that object
 will not work again under management view.
 If you want to try by yourself, try in a non-critical folder
 (a new one just for trying). Just create a new DTML Document
 and set id to be 'URL'.
 
 Is this a bug or not?

Looks like a bug to me, submit it to the collector:
http://classic.zope.org:8080/Collector/

I wonder how many of these others share the same problem:
-URL1, BASE1, etc
-AUTHENTICATED_USER and other CGI-ish variables
-etc ;-)

I expect you could also get the same effect by creating properties with these
names :-S

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 )




[Zope] Hellp with getting started with Login Manager

2001-01-18 Thread Steffen Bergmann

Hi !
I installed the Login Manager to my Zope, but I dont know how to use
it. I want to authenticate my users with an SQL database. Is there
anywhere good documentation about Login Manager. And how does the Login
Manager solve the N*M problem with managing the users.

Regards
Steffen

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

2001-01-18 Thread Chris Withers

Gerald Gutierrez wrote:
 
 So how do people go about programming Zope? What sorts of tools do people
 use, and how do you go about getting your code to and from Zope? Can you
 use CVS?

Look at the CVSMixing thign for this, nto sure how it works but it provides what
you want...

Apart from that, look at using an FTP or WebDAV enabled editor like DreamWeaver.
It works now, but support is supposed to be getting better in Zope 2.3

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] Stopping a dtml-in

2001-01-18 Thread Chris Withers

Tres Seaver wrote:
 
 The sentiment against "DTML-as-scripting-language" also makes
 introducing more control structures difficult to sell;  I don't
 buy that, myself, but have to listen to folks who do.

Well, DTML doesn't strike me as being designed to script in, so using it as such
is going to cause problems.

In my experience, any DTML with "" in it should have been done as a Python
Script, even if it's one line long ;-)

However, that doesn't mean something like dtml-break shouldn't exist, although
it's really treading that fine line, and it doesn't mean that 'DTML is bad' as I
used to think. DTML is great, if you use it like it was designed to be used; as
a templating language. That requries a bit of iteration, and maybe conditionals
are okay, maybe dtml-break falls in there?

However, if you start writing things like ZClass constructors in DTML, you very
quickly get unreadable, obtuse code that's hard to maintain.

I dunno, I wish I could get my head around HiperDOM/XHTML but it just doesn't
strike me as very approachable right now...

My $0.02...

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 2.3.0 beta 1 comments

2001-01-18 Thread Chris Withers

Jens Vagelpohl wrote:

 i had the intermittent "browser displays the CSS text and not the real page"
 in another situation go away by expressly setting the content type in the
 linked CSS file. the first line would become...
 
 dtml-call "RESPONSE.setHeader('Content-Type','text/css')"

Yup, that sovles the CSS problem...

 on 1/17/01 8:20, Martijn Pieters at [EMAIL PROTECTED] wrote:

  If you switch to inline CSS (instead of linked CSS) this problem will go
  away. In a2 the inline/linked descision was made for you by using browser
  sniffing (which isn't very reliable as many people use filtering proxies
  these days).
 
  Netscape 4 is just way broken. I suspect that is also why Netscape
  sometimes doesn't render a page.

...but I'ev also had the problem of downloading stuff off Zope.org and having
.tar.gz's coming back as text in the browser, nto nice. Again, however, hitting
reload invariably brings up the File Download dialog box.

Maybe there's a bug somewhere deep in Zope that means the content-type doesn't
_always_ get set?

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] OT: Browsers

2001-01-18 Thread Chris Withers

Shane Hathaway wrote:
 
 But I hope this will soon become a moot point.  Go Mozilla!

Hmmm :-( Mozilla has been even more buggy in my experience...

Anyone know how Netscape 6 (Mozilla in Netscape clothing ;-) does on stability
and reliability?

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] High Performance Zope

2001-01-18 Thread Chris Withers

"Jason C. Leach" wrote:
 
 hi,
 
 I think ABC News New York also does Zope.

Maybe www.cbsnewyork.com? ;-)

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 )




[Zope] Help with getting started with Login Manager

2001-01-18 Thread Steffen Bergmann

Hi !
I installed the Login Manager to my Zope, but I dont know how to use
it. I want to authenticate my users with an SQL database. Is there
anywhere good documentation about Login Manager. And how does the Login
Manager solve the N*M problem with managing the users.

Regards
Steffen

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

2001-01-18 Thread Chris Withers

Keep CC'ing to the list, that way other peopel can help too :P  

Priya Ramkumar wrote:
 
 But there is a Vocabulary object already existing for the ZCatalog.

..then I have no idea, sorry.

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 )




[Zope] ZClasses

2001-01-18 Thread Priya Ramkumar




Hi

When trying to create a ZClass within another 
ZClass, the contained class is not listed in the sub objects of the container 
class. Could anyone suggest how to get over this problem?

Thanks
Priya


Re: [Zope] ZTopic error

2001-01-18 Thread Priya Ramkumar

Hi

But there is a Vocabulary object already existing for the ZCatalog.

Thanks
Priya

---
I am trying to use ZTopic for categorizing obejcts in a Zcatalog. After
specifying the criteria, when I try to view the list of topics, it gives me
the traceback error:

Error Type: AttributeError
Error Value: Vocabulary

Is there any bug fix for this?


Try adding a Vocabulary object into your ZCatalog...

...and don't post this list in HTML ;-)

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] OT: Browsers

2001-01-18 Thread Phil Harris

Chris,

It's worse, Mozilla 0.7 also has some issues, Mozilla 0.6 is probably the
best so far.

I use it as my main browser.

You might also want to check out the Beonex Communicator (based on Mozilla,
but with bug/security fixes) http://www.beonex.com.

hth

Phil

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Shane Hathaway" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 18, 2001 9:37 AM
Subject: Re: [Zope] OT: Browsers


 Shane Hathaway wrote:
 
  But I hope this will soon become a moot point.  Go Mozilla!

 Hmmm :-( Mozilla has been even more buggy in my experience...

 Anyone know how Netscape 6 (Mozilla in Netscape clothing ;-) does on
stability
 and reliability?

 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 )


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

2001-01-18 Thread Tres Seaver

On Wed, 17 Jan 2001, Timothy Wilson wrote:

 On Wed, 17 Jan 2001, Tres Seaver wrote:
 
   What I'm not sure about is how to have Zope automatically
   display the photo for a day, then archive it. Would a
   boolean property of the ZClass work? Is it possible to have
   Zope set the property of a ZClass instance at certain time?
   Any thoughts on how this would be designed?
  
  This kind of thing is a "query-on-metadata" application;  I
  would put all these images into a single folder (maybe
  chunked into subfolders by month?), mark them each with an
  'effective' property (of type 'Date'), and then select the
  appropriate image via a catalog query, e.g.::
  
dtml-in "Catalog( meta_type='Image'
 -- rest of example snipped --
 
 Are you suggesting I use the standard Image class? What about
 subclassing Image so I can add a display_date property and
 whatever else I might need?

Subclassing Image might be useful, but you could certainly
get by without if, if all you need is to add a property or
two:  Images have a propertysheet to which you could add them.

I suppose it is a matter of taste;  I tend to avoid subclassing
unless the object's behavior changes significantly.

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   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] No product management

2001-01-18 Thread Veen, J.S. van der

Hello,

I've got a problem with Zope. When I click on the 'Product Management' link
in the Control Panel it shows me the 'Welcome to Zope' page again. I'm using
Zope 2.2.5 on FreeBSD 4.2. Can anyone help?

Jan Sipke

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

2001-01-18 Thread Tom Deprez

Hi all,

Thanks for this file! Yesterday I thought I'd lost it, altough I heard more
rumours of 'slowdown' I couldn't find a solution for my problem since I gave
that demo and zope was so slow... you should have seen my face at that
moment (completely red!).
I tried everything, reinstallation of zope and interbase drivers, etc...
My last resort was going to an earlier version of zope, or trying to use
pcgi, but this morning I found this patch in my mailbox. I tried it
and.. nice! All problems were gone.

So, now I can give the demo again and zope will be fast again :-)!

Regards, Tom

ps. Can you give more information on this? ie something more than the lines
below. It seems an interesting case.

- Original Message -
From: "Brian Lloyd" [EMAIL PROTECTED]
To: "Ian Thomas" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, January 17, 2001 10:10 PM
Subject: RE: [Zope] Unexplained Slowdown


 This is due to an ill-fated attempt to make 'domain-based
 authentication' less expensive (but that backfired to some
 extent because it can make non domain-based auth more
 expensive, especially if reverse DNS lookups are slow for
 you). This is fixed for 2.3 b2 - in the meantime you should be
 able to copy the attached User.py to fix the problem for
 now.


 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 Ian
  Thomas
  Sent: Wednesday, January 17, 2001 3:41 PM
  To: [EMAIL PROTECTED]
  Subject: [Zope] Unexplained Slowdown
 
 
  When I upgraded to Zope 2.2.5 access to my Zope over the web slowed down
  dramatically and I haven't been able to figure out why. I am interested
  in ideas I can try to track it down the problem or at least
  quantify/benchmark the slowness.
 
  Some background.
  1) I am a computer teacher teaching Zope to my second year web
  development students who have already learned HTML and been introduced
  to JavaScript.
  2) The server is a my test machine that my students and I use for
  learning.
  3) The "production" server still running 2.2.4 continues to preform
  normally.
  4) The machine is Celeron 500 mhz 64 meg ram running Windows 2000 Server
  5) I run Medusa server that comes with Zope to server the web pages.
  6) There is no gateway set up on this machine so that it is only visible
  from within the school.
 
  Notes.
  1) It is much faster if I access via localhost on the server.
 
  What I have tried.
  1) Installing 2.2.4 on another port. It ran just as slow.
  2) Today I removed the 2.2.4 installation and installed 2.3beta, again
  it seems just as slow.
 
  What Next?
  The next thing I was thinking was to serve the webpages from IIS using
  PCGI.
  I am interested in other ideas.
 
  I. Thomas
 
 
 
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   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, xemacs and efs

2001-01-18 Thread Steve Spicklemire


Hmmm.. I use emacs/ange-ftp all the time with zope... many
versions.. with no trouble. Have you tried that? Since my
client is not 'X' (yet) I don't use xemacs... 

-steve

 "glw" == Geoffrey L Wright [EMAIL PROTECTED] writes:

glw I'd LOVE to be able to use efs with Zope.  Right now I end up
glw cutting and pasting code in and out of browser windows --
glw which just feels kind of unwieldy...

glw Thanks for any help or words of solace...


glw //glw


glw ___ Zope maillist
glw - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope
glw ** No cross posts or HTML encoding!  ** (Related lists -
glw http://lists.zope.org/mailman/listinfo/zope-announce
glw 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] Variable sort and multiple sort in dtml-in

2001-01-18 Thread Steve Spicklemire


Hi Loren,

   There is also Zieve:

http://www.zope.org/Members/sspickle/Zieve

Not quite as easy as a 'fixed' dtml-in ...  but it
does work (today). 

-steve

 "Loren" == Loren Stafford [EMAIL PROTECTED] writes:

Loren On 02 July 2000, Adam Karpierz, posted a patch that would
Loren allow an expression for the sort specification for the
Loren dtml-in tag. Did that patch, or something like it, ever
Loren find its way into the Zope core?

Loren I also seem to remember some discussion of sorting on
Loren multiple items (but can't find any trace of it in the
Loren archives). For example, in an employee directory, sort on
Loren employee name within department. Anyone know how?

Loren I'm trying to provide user-specified sorting on the records
Loren I pull from a SQL database. When the user specifies sorting
Loren on Department, I assume he wants the records order by Name
Loren within each department, but I can't see how to do that with
Loren ZSQL or dtml-in.

Loren -- Loren


Loren ___ Zope
Loren maillist - [EMAIL PROTECTED]
Loren http://lists.zope.org/mailman/listinfo/zope ** No cross
Loren posts or HTML encoding!  ** (Related lists -
Loren http://lists.zope.org/mailman/listinfo/zope-announce
Loren 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] No product management

2001-01-18 Thread Oleg Broytmann

On Thu, 18 Jan 2001, Veen, J.S. van der wrote:
 I've got a problem with Zope. When I click on the 'Product Management' link
 in the Control Panel it shows me the 'Welcome to Zope' page again. I'm using
 Zope 2.2.5 on FreeBSD 4.2. Can anyone help?

   I've got this problem with a browser that does not support "base" tag
(ChrisW, wanna say something? :)
   Switching back to Netscape "fixed" the problem.

   Moral: there are 2.5 browsers out there (Netscape, Mozila and M$IE) and
only 1.5 of them (M$IE and Netscape) can work with Zope management screens.
   Other things that called itself "a web browser" (lynx, links, opera,
w3m) and are actually worth 0.1 of a whole browser are suitable for simple
tasks, but not for such a complex task as managing Zope :)))

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] Unexplained Slowdown

2001-01-18 Thread Tom Deprez

Forgive my enthousiastic comment in my previous message!

Some more news:

The overall response is better than before, but sometimes Zope (or ZServer)
is very slow.
This slowdown is at my Linux Server and at my Win Clients (NT 4 sp5)
It takes 1-2 minutes before I even get the log-on screen (on my server!) to
enter zope.
I don't know where this is comming from, but it is strange.

Overall, the response is better than before, but some strange slow-responses
are still there.

If I only knew how to find the cause of this.

Tom.





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




Re: [Zope] Tools used for programming Zope

2001-01-18 Thread Ragnar Beer

Can Dreamweaver also use the https protocol for WebDAVing?

Ragnar

Apart from that, look at using an FTP or WebDAV enabled editor like 
DreamWeaver.
It works now, but support is supposed to be getting better in Zope 2.3

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 )




[Zope] Data type coercion and records

2001-01-18 Thread Mayers, Philip J

*Now* I remember why I like Zope so much...

I'm using the ":records" to marshall a complex hierarchical form, and I'm a
little worried by this comment:

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

Note: 

Before creating a second record and adding an attribute, Zope gets the last
record in the list and checks to see if that record has the attribute. If
the first record doesn't have the attribute, it inserts the attribute and
value instead of creating a new record. For example, if the user entered a
name and age for Member #1 and only an email for Member #2, the list will
have only one record. That record will contain the name and age attribute
from Member #1 as well as the email attribute from Member #2.

This isn't a problem for me, *except* sigh. I want to be able to tickbox
certain fields to delete them, as well as alter the values in the textboxes
to alter other fields. *BUT*, my HTML manual says that "CHECKBOX name/value
pairs are only submitted to the server if the field is checked"

So, I would expect this:

dtml-var standard_html_header

table
dtml-if listdtml-in list
  tr
tddtml-a;/td
dtml-if btddtml-b;/td/dtml-if
  /tr
/dtml-in/dtml-if
/table

formtable
  tr
tdinput type="text" name="list.a:records"   value="1a"/td
tdinput type="checkbox" name="list.b:records" value="1b"/td
  /trtr
tdinput type="text" name="list.a:records"   value="2a"/td
tdinput type="checkbox" name="list.b:records" value="2b"/td
  /trtr
tdinput type="text" name="list.a:records"   value="3a"/td
tdinput type="checkbox" name="list.b:records" value="3b"/td
  /trtr
tdinput type="text" name="list.a:records"   value="4a"/td
tdinput type="checkbox" name="list.b:records" value="4b"/td
  /trtr

/table
input type="submit" value="test"
/form

dtml-var standard_html_footer

To read:

1a
2a
3a 4b
4a

If you just ticked the 4th listbox. But it doesn't - it works as I "want" it
to work, i.e. it reads:

1a
2a
3a
4a 4b

Why? I'm glad this does, but as the saying goes, if you don't understand it,
it can bite you when you least expect it. I've tested this under netscape 6
and IE5.0.

I know I can work around it (set the value field of the checkbox to contain
the information it's referring to) but I'm curious as to what's going on. I
note that if you swap the textbox and checkbox around, it does indeed
"break", and the delete is associated with the previous record as you'd
expect.

So - I suspect the behavious of "records" changed at some point? My question
then becomes - does the HTML/HTTP spec guarantee that if I put the
checkboxes *after* the textboxes, and Zope is marshalling the records in a
useful fashion, this will always work on a conforming browser?

Regards,
Phil

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

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




RE: [Zope] Help with getting started with Login Manager

2001-01-18 Thread Mayers, Philip J

Try this:

http://www.zope.org/Members/jok/SQL_based_LoginManager

Some extra pointers:

Step 7: Customize the LoginManger instance to call the SQL methods

You'll have this

/root
  /folder
/acl_users (LoginManager)
  /UserSource
SQL_check_user
SQL_get_password
SQL_get_roles

You're then supposed to add DTML Methods called
userAuthenticate,userExists,userRoles *BUT* if you do this, you'll be locked
out. Instead, add

xuserAuthenticate
xuserExists
xuserRoles

Edit  test the DTML methods, then when you're sure they work, batch rename
them (i.e. tick the boxes next to all three, then click rename). They'll be
renamed as an atomic unit, and hopefully the LoginManager will work.

It can be very frustrating to get going though - Once you've completed step
6, I recommend taking a copy of "folder" i.e.

/root
  /folder
(...etc...)
  /copy_of_folder
(...etc...)

If you break it, you can get back to /root, delete folder, copy
"copy_of_folder" back to "folder" and not have to start from scratch. Very
time saving.

Regards,
Phil

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

-Original Message-
From: Steffen Bergmann [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2001 09:32
To: [EMAIL PROTECTED]
Subject: [Zope] Help with getting started with Login Manager


Hi !
I installed the Login Manager to my Zope, but I dont know how to use
it. I want to authenticate my users with an SQL database. Is there
anywhere good documentation about Login Manager. And how does the Login
Manager solve the N*M problem with managing the users.

Regards
Steffen

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Solved (was RE: Data type coercion and records)

2001-01-18 Thread Mayers, Philip J

Doh - my fault... RTFM I think...

I think I misread the linked page. When unmarshalling the records, Zope will
only create a new record in the list if the current record already has the
given attribute. So, provided you always put the textboxes before the
checkboxes, it will always work.

Unless there are non-compliant browsers out there...

Regards,
Phil

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

-Original Message-
From: Mayers, Philip J 
Sent: 18 January 2001 12:26
To: '[EMAIL PROTECTED]'
Subject: Data type coercion and "records"


*Now* I remember why I like Zope so much...

I'm using the ":records" to marshall a complex hierarchical form, and I'm a
little worried by this comment:

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

snip

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Can't import anything decent on old machine.

2001-01-18 Thread Tres Seaver

 "Darrin" [EMAIL PROTECTED] wrote:

 Whenever I try to import a product I usualy get the following errors.
 
 BTW. I have been using Linux for years. I am trying this on a Debian 2.2
 system. Sure, I can recompile this box with woody instead of potato if
 necessary. It's runing on an old P166. It has lots of ram (128 megs). If the
 hardware is a problem then please let me know.
 
 I get the same error when trying to import several products. Did i miss
 something in the FAQ?

The traceback you posted looks as though you are trying to import
a "product" tracefile someplace other than Control_Panel/Products,
which is the only place possible for such beasts.

You didn't post the actual exception type/value ("above" the
traceback in the HTML page), which would help diagnose the problem
better.

Knowing the version of Zope and the specific products in question
would help, too;  I can't imagine that Debian version is an issue
at all.

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   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] ZTopic error

2001-01-18 Thread Tres Seaver

"Priya Ramkumar" [EMAIL PROTECTED] wrote:

 I am trying to use ZTopic for categorizing obejcts in a Zcatalog. After
 specifying the criteria, when I try to view the list of topics, it gives me
 the traceback error:
 
 Error Type: AttributeError
 Error Value: Vocabulary
 
 Is there any bug fix for this?

ZTopic is slightly out of date;  in particular, it uses the (text)
indices without wrapping them in their catalog, so they can't
acquire their vocabulary object.

The patch is a simple one-liner:

$ diff -bu Topic.py.org Topic.p 
--- Topic.py.orgWed Nov  3 16:25:15 1999
+++ Topic.pyThu Nov 30 21:27:48 2000
@@ -224,7 +224,7 @@
 c=zcatalog._catalog
 for search_term in search_map.keys():
 if c.indexes.has_key(search_term):
-index=c.indexes[search_term]
+index=c.indexes[search_term].__of__(c)
 search_results=index._apply_index(search_map)
 if search_results is not None:

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   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] How to backup Zope data base?

2001-01-18 Thread Etienne Labuschagne

Hi all

What is the best way to backup Zope's database whithout stopping Zope?  When
I use backup, it just says that the file is in use and cannot be backed up.
What I have done so far is to copy the file in explorer and back that up -
but it feels kludgey and I'm not sure if I get the database in a state that
is safe.

Thanks all
Etienne

Tel: (012) 348 4586
Cel: 082 442 8981
Fax: (012) 361 8355


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




Re: [Zope] Help with getting started with Login Manager

2001-01-18 Thread Jochen Knuth

Hi Phil,

Mayers, Philip J wrote:

 Try this:
 
 http://www.zope.org/Members/jok/SQL_based_LoginManager
 
 Some extra pointers:
 

is it o.k. that i include them in an updated version of the How-To?

Steffen:

There is also http://www.zope.org/Members/dlpierson/sqlLogin , a solution which is 
more integrated into the zpatterns framework. 

Ciao,
Jochen--
--
Jochen Knuth  WebMaster http://www.ipro.de
IPRO GmbH Phone ++49-7152-93330
Steinbeisstr. 6   Fax ++49-7152-933340
71229 LeonbergEMail: [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] BASE tags

2001-01-18 Thread Chris Withers

Oleg Broytmann wrote:
 
 
I've got this problem with a browser that does not support "base" tag
 (ChrisW, wanna say something? :)

Yes, btu I won't ;-)

*grinz*

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] How to backup Zope data base?

2001-01-18 Thread Chris Withers

Etienne Labuschagne wrote:
 
 What is the best way to backup Zope's database whithout stopping Zope?  When
 I use backup, it just says that the file is in use and cannot be backed up.

MS Backup, yeah? Oh well, never mind ;-)

 What I have done so far is to copy the file in explorer and back that up -
 but it feels kludgey and I'm not sure if I get the database in a state that
 is safe.

That's fine and quite robust. Copy and archive data.fs is the recommended way of
backing up Zope on any platform.

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] zope, xemacs and efs

2001-01-18 Thread A.J. Rossini

 "SS" == Steve Spicklemire [EMAIL PROTECTED] writes:

SS Hmmm.. I use emacs/ange-ftp all the time with zope... many
SS versions.. with no trouble. Have you tried that? Since my
SS client is not 'X' (yet) I don't use xemacs...

Note that XEmacs is not fixated with X11 (anymore).  There do exist
versions for NT, and it will run in a terminal window...

best,
-tony

-- 
A.J. RossiniRsrch. Asst. Prof. of Biostatistics
BlindGlobe Networks (home/default)  [EMAIL PROTECTED]  
UW Biostat/Center for AIDS Research [EMAIL PROTECTED]
FHCRC/SCHARP/HIV Vaccine Trials Net [EMAIL PROTECTED]

FHCRC: M/Tu: 206-667-7025 (fax=4812) | Voicemail is pretty sketchy
CFAR:   W/F: 206-731-3647 (fax=3694) | Email is far better than phone
UW:Th/F: 206-543-1044 (fax=3286) | Change last 4 digits of phone for fax

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

2001-01-18 Thread Martijn Pieters

On Wed, Jan 17, 2001 at 11:06:25PM -, Chris Withers wrote:
  This suddenly rings a bell; I remember now that NS4 seems to have a
  'grid' system for laying out frames. It snaps to certain sizes, and
  adding a few pixels plus or minus won't get you a visible change.
  Sizing of frames can only happen in larger steps.
 
 Wow that sucks :-(
 
 How does Mozilla/Netscape 6 fare on this?

It doesn't use the same code-base, so I must assume for now it doesn't
have the same problem. Enough people have been using it in the early
development days to kick up a big fuss if it did.

It has been a while since I had to know about these things though.

  this (especially when using bordelress frames).
 
 Speaking, of which, how about making that top frame (and maybe the side
 frame) borderless? The left frame still needs to be resisable, so the
 boirder may have to stay there...

Half borders are painful to look at, if they can be specified that way in
the first place. You don't *need* the border for resizability BTW, but you
do need a visual clue there is a border there to grab and move. A
contracting frame background could help there.

 PS: It's really cool how you actually listened to your users and provided an
 easy way to change a feature that they didn't like. I still use Office '95
 at home 'cos that *^*ing paperclip proved so annoying ;-)

You *do* know you can switch the paperclip off, don't you? ;)

-- 
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] How to backup Zope data base?

2001-01-18 Thread Mayers, Philip J

This certainly isn't *efficient*, but it works:

wget -http-user=usename -http-pass=password
http://your.site.com/Zope/path/to/wherever/manage_exportObject?download%3Ain
t=1

Will get you a .zexp of "/path/to/wherever", whereas:

wget blah
http://your.site.com/Zope/manage_exportObject?download%3Aint=1toxml=Y

Will get you an XML export of your entire site.

Regards,
Phil

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

-Original Message-
From: Etienne Labuschagne [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2001 07:26
To: Zope user list (E-mail)
Subject: [Zope] How to backup Zope data base?


Hi all

What is the best way to backup Zope's database whithout stopping Zope?  When
I use backup, it just says that the file is in use and cannot be backed up.
What I have done so far is to copy the file in explorer and back that up -
but it feels kludgey and I'm not sure if I get the database in a state that
is safe.

Thanks all
Etienne

Tel: (012) 348 4586
Cel: 082 442 8981
Fax: (012) 361 8355


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

2001-01-18 Thread Oleg Broytmann

On Thu, 18 Jan 2001, Etienne  Labuschagne wrote:
 What is the best way to backup Zope's database whithout stopping Zope?  When

   Pack + backup Data.fs.old.

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, xemacs and efs

2001-01-18 Thread Marcin Kasperski

 I'd LOVE to be able to use efs with Zope.  Right now I end up cutting
 and pasting code in and out of browser windows -- which just feels
 kind of unwieldy...
 

What about 'File Upload'?

When I got to know about FTP access mode I liked it but it does not
handle versions so it is unusable for me...


--
http://www.mk.w.pl /
 Marcin.Kasperski | Grupy dyskusyjne w firmie:
   @softax.com.pl |   http://www.mk.w.pl/narzedzia/narzedzia_inn  
 @bigfoot.com  \

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




Re: [Zope] hiperdom

2001-01-18 Thread Lalo Martins

On Thu, Jan 18, 2001 at 12:38:29PM +0800, Bak@kedai wrote:
 hello all
 scuse my ignorance.  i have this[1] in a hiperdom instance (partial text from 
 hiperdom howto).  but i got this[2] error when i clicked change.
 
 i know it's me not understanding XML well enough.

There's no HiperDom HOWTO, and what little documentation there
is, is outdated.

Martijn upgraded HiperDom to work with the newer PyXML package,
but for that you'll need proper XML namespace handling, as in
(in your case) html xmlns:hdom="uri:hiperdom".../html.

The default text already gives you an example; if you create a
template, it's filled with EmptyTemplate xmlns:hdom="uri:hiperdom" /

 p/s - maybe, the default text in a newly created hiperdom instance should be 
 something similar to what a new dtml method/document gives now?

Hadn't thought of this, sounds like a good idea.

[]s,
   |alo
   +
--
  Hack and Roll ( http://www.hackandroll.org )
The biggest site for whatever-it-is-that-we-are.


http://zope.gf.com.br/lalo   mailto:[EMAIL PROTECTED]
 pgp key: http://zope.gf.com.br/lalo/pessoal/pgp

Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar

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

2001-01-18 Thread Marty Stitt


  What is the best way to backup Zope's database whithout stopping Zope?  When
 
Pack + backup Data.fs.old.

Interesting approach!

While this topic of backup has come up, I'm wondering about restore.

Looking at Data.* files in the var directory, I see:

  Data.fs 
  Data.fs.index  
  Data.fs.old  
  Data.fs.in  
  Data.fs.lock   
  Data.fs.tmp  

If I need or want to implant a Data.fs file into a system, either to restore a
system from corruption, or to copy my working information from my office
system to my home system (and visa versa), I suspect that I should also delete
the .index, .lock, and .tmp files.  Regarding the .in file, I believe it must
remain.  But, these are just hunches I have.

Can anyone shed any light on this?  Thanks in advance.


-- 
Martin Stitt
Chief Software Engineer
Esker, Inc.
email: [EMAIL PROTECTED]
phone: (608) 273-6000 x331
fax:   (608) 273-8227
web:   http://www.esker.com

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




RE: [Zope] Python 2.0 ??????

2001-01-18 Thread Brian Lloyd

 The impression I get from the Zope dev site is that 2.3.0b1 (and possibly
 before the beta) will compile and run under Python 2.0, but I
 haven't tried
 it myself.  Anything 2.2.x needs patches, which I couldn't get
 working right
 after a couple hours of tinkering with it.  Python 2.0 support will not be
 100% "supported" in 2.3 final, but that doesn't necessarily mean it won't
 run.

Yes - 2.3 contains some changes (thanks mostly to Toby Dickenson)
that let it build and run w/o patches under Python 2. Python 2
is still not "officially supported", in that you are on your
own if you run into problems that are Python 2-specific and
2.3 doesn't make use of any 2.0 features (unicode, etc.)

I expect Zope 2.4 to be mainly about moving offically to Python
2 (2.4 will likely require Python 2) and integrating unicode,
etc.

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909
Digital Creations  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] python-to-python in zope?

2001-01-18 Thread tom smith

hi all,

I've written a bot in python 2.0 and it's running on the same machine as
zope 2.2.

I'd like somehow to be able to send messages from zope (like...start and
stop or go trawl this site etc) to the OTHER version of python running my
bot

I've tried using external methods but because the other version of python
has ODBC stuff and Tkinter etc python methods can't "talk" to my app. It
errors on import...

Should I try to add my bot to the python that comes included with zope (Is
it python 2.0?) or does anybody have any better ideas...

thanks

tom
[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] Zope 2.3.0 beta 1 comments

2001-01-18 Thread Brian Lloyd

  These are actually browser preferences, not user preferences. 
 can we have enable/disable table view toggle?  some of us work 
 with slow dial 
 up, and waiting for a table to be rendered, especially when 
 there's a lot of 
 objects, will take some time.  at least, without table, we can have 
 incremental page rendering.  most of my users are not a patient lot :)
  
 or is it a none issue?

I think a more workable idea would be to implement "batching" 
in the contents view. That won't get in for 2.3 final (we are 
at feature freeze and need to get the last kinks worked out 
and a final out), but I would expect that some experience 
with the new management interface tweaks will generate some
other suggestions to make further improvements. We can create 
a fishbowl project for those and get them into 2.4.


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


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




RE: [Zope] User Preferences as opposed to Browser Preferences

2001-01-18 Thread Brian Lloyd

  like textarea size preferences. We are specifically *not* trying
  to do 'user' preferences.
 
 Ah, now that's what I thought :-)
 
 Why not?

I'd like to see user properties happen, in fact its part of 
my BetterUserManagement proposal:

http://dev.zope.org/Wikis/DevSite/Proposals/BetterUserManagement

Its just a question of resources. We don't have enough to get 
everything we want done immediately.

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


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




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

2001-01-18 Thread Marty Stitt

 
This is the real database file.
 
Data.fs.index
 
Its index. Remove before replacing Data.fs.
 
Data.fs.old
 
This is backup after Pack.
 
Data.fs.in
 
This is initial Data.fs - installation process copy this into Data.fs
 before starting Zope for the first time.
 
Data.fs.lock
Data.fs.tmp
 
Temporary files. Feel free to remove them when Zope is not running.
 

Thanks for clarify that.

FYI: I once had a situation where Zope wouldn't start due to corrupted data.
But, when I copied the Data.fs file to another installation, everything worked
fine.
When I tried putting a Data.fs from a fresh installation in place of the
corrupted one, Zope still wouldn't start.  I finally discovered that deleting
the .index file was what it took.

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

2001-01-18 Thread Oleg Broytmann

On Thu, 18 Jan 2001, Marty Stitt wrote:
   Data.fs

   This is the real database file.

   Data.fs.index

   Its index. Remove before replacing Data.fs.

   Data.fs.old

   This is backup after Pack.

   Data.fs.in

   This is initial Data.fs - installation process copy this into Data.fs
before starting Zope for the first time.

   Data.fs.lock
   Data.fs.tmp

   Temporary files. Feel free to remove them when Zope is not running.

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] Trouble installing ZMySQLTDA

2001-01-18 Thread Vincent Stoessel

Yeah,
  the entire contents are;


from Products.ZMySQLDA.db import *
from Shared.DC.ZRDB.TM import TM

class DB(DB, TM):

 _p_oid=_p_changed=_registered=None

 def _begin(self, *ignored):
 self.db.query("BEGIN")

 def _finish(self, *ignored):
 self.db.query("COMMIT")

 def _abort(self, *ignored):
self.db.query("ROLLBACK")

 def query(self, *args):
self._register()
return apply(DB.query, (self,)+args)

does this look OK?




Andy Dustman wrote:

 On Wed, 17 Jan 2001, Vinny wrote:
 
 
 Ok, it's Vinny again,
 
 
 I am trying to get
 
 ZMySQLTDA up and running. After installation ZMySQLTDA
 appears in the Product folder but gives a 'broken' status instead
 of "installed"
 I have MySQL-python-0.3.0 installed.
 
 Has this worked OK for anyone else?
 
 
 It seems to work OK for me, though I just pushed out version 2.0.2.
 
 http://dustman.net/andy/python/ZMySQLDA/2.0.2
 
 
File 
 "/usr/local/Zope-2.2.5-linux2-x86/lib/python/Products/ZMySQLTDA/db.py", 
 line 4, in ?
  class DB(DB, TM):
 NameError: DB
 
 
 Is this line at the top of that file?:
 
 from Products.ZMySQLDA.db import *


-- 
Vincent Stoessel [EMAIL PROTECTED]
Internet Applications Engineer
IDEV http://www.idev.com
V: 301 495 7345 x129


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

2001-01-18 Thread Martijn Pieters

On Thu, Jan 18, 2001 at 09:02:06AM -0600, Marty Stitt wrote:
 While this topic of backup has come up, I'm wondering about restore.
 
 Looking at Data.* files in the var directory, I see:
 
   Data.fs 
   Data.fs.index  
   Data.fs.old  
   Data.fs.in  
   Data.fs.lock   
   Data.fs.tmp  
 
 If I need or want to implant a Data.fs file into a system, either to restore a
 system from corruption, or to copy my working information from my office
 system to my home system (and visa versa), I suspect that I should also delete
 the .index, .lock, and .tmp files.  Regarding the .in file, I believe it must
 remain.  But, these are just hunches I have.
 
 Can anyone shed any light on this?  Thanks in advance.

You can only restore from a backup Data.fs when the site isn't running.

- Data.fs.lock is the lock file for a running site, no need to back up.

- Data.fs.old is the Pack operation created backup copy.

- Data.fs.in is the default database for a new Zope installation. When
  there is no Data.fs, Data.fs.in is copied to Data.fs automatically on
  startup.

- Data.fs.tmp I can't remember what it is used for, but I think it is only
  used for sub-transactions. No need to back it up or restore it.

- Data.fs.index ihelps Zope to start up faster with a large Object
  Database. IIRC it records the position(s) of current versions of objects
  in the Data.fs so Zope can skip the Undo information faster. IIRC Zope
  will detect when the file is outdated/invalid after a restore.

-- 
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] How to backup Zope data base?

2001-01-18 Thread Martijn Pieters

On Thu, Jan 18, 2001 at 10:01:24AM -0600, Marty Stitt wrote:
 FYI: I once had a situation where Zope wouldn't start due to corrupted data.
 But, when I copied the Data.fs file to another installation, everything worked
 fine.
 When I tried putting a Data.fs from a fresh installation in place of the
 corrupted one, Zope still wouldn't start.  I finally discovered that deleting
 the .index file was what it took.

Ah, so there isn't a mechanism that detects invalid .index files. Maybe
this should be reported to the COllector, I am sure Jim can come up with a
solution.

-- 
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] python-to-python in zope?

2001-01-18 Thread Olivier Deckmyn

Use XML-RPC... it's easy, portable, etc ...

Good luck

- Original Message -
From: "tom smith" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 18, 2001 4:36 PM
Subject: [Zope] python-to-python in zope?


 hi all,

 I've written a bot in python 2.0 and it's running on the same machine as
 zope 2.2.

 I'd like somehow to be able to send messages from zope (like...start and
 stop or go trawl this site etc) to the OTHER version of python running my
 bot

 I've tried using external methods but because the other version of python
 has ODBC stuff and Tkinter etc python methods can't "talk" to my app. It
 errors on import...

 Should I try to add my bot to the python that comes included with zope (Is
 it python 2.0?) or does anybody have any better ideas...

 thanks

 tom
 [EMAIL PROTECTED]


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



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




[Zope] manage_exportObject checks Referer header (RE: [Zope] How to backup Zope data base?)up Zope data base?)

2001-01-18 Thread Mayers, Philip J

My earlier suggestion:

wget --http-user=username --http-pass=password \
http://server.name/Zope/path/to/folder/manage_exportObject?download%3Aint=1

Does not work (on Zope 2.2.5 at least) but this:

wget --http-user=username --http-pass=password \
--header="Referer:
http://server.name/Zope/path/to/folder/manage_importExportForm"\
http://server.name/Zope/path/to/folder/manage_exportObject?download%3Aint=1

...does. Why does manage_exportObject check the Referer header? Is this by
design?

Regards,
Phil

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

-Original Message-
From: Mayers, Philip J [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2001 13:52
To: 'Etienne Labuschagne'; '[EMAIL PROTECTED]'
Subject: RE: [Zope] How to backup Zope data base?


This certainly isn't *efficient*, but it works:

wget -http-user=usename -http-pass=password
http://your.site.com/Zope/path/to/wherever/manage_exportObject?download%3Ain
t=1

Will get you a .zexp of "/path/to/wherever", whereas:

wget blah
http://your.site.com/Zope/manage_exportObject?download%3Aint=1toxml=Y

Will get you an XML export of your entire site.

Regards,
Phil

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

-Original Message-
From: Etienne Labuschagne [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2001 07:26
To: Zope user list (E-mail)
Subject: [Zope] How to backup Zope data base?


Hi all

What is the best way to backup Zope's database whithout stopping Zope?  When
I use backup, it just says that the file is in use and cannot be backed up.
What I have done so far is to copy the file in explorer and back that up -
but it feels kludgey and I'm not sure if I get the database in a state that
is safe.

Thanks all
Etienne

Tel: (012) 348 4586
Cel: 082 442 8981
Fax: (012) 361 8355


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

2001-01-18 Thread Brian Lloyd

 it seems that most 3rd party userfolders that's available won't work with 
 zope-2.3.0b1.  i've tried UserDB and LoginManager. 
 i guess LoginManager will be updated, since it is currently 
 maintained.  i 
 don't know enough python to look at UserDB.  any kind hearts out there 
 willing to give it a peek?

That should be fixed for b2. There were some aspects of the 
changes that weren't backward compatible enough. The changes 
in the current CVS (that will be in b2) should allow all 
third party userfolders to work as expected without any 
modifications.

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


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




RE: [Zope] Using images as submit buttons

2001-01-18 Thread Loren Stafford

You might look into a javascript onClick this.submit. I haven't actually
done this yet, so I don't have the exact syntax at hand, but I'm sure you
could find it on one of the javascript sites.

-- Loren

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, January 17, 2001 18:29
To: [EMAIL PROTECTED]
Subject: [Zope] Using images as submit buttons


Has anyone figured a reasonable way of getting multiple image submit
buttons for a single form? I tried

  input type="image" name="goMethod:method" src="go.png"

but that didn't work for obvious reasons.

  button value="submit" name="goMethod:method" type="submit"img
src="images/go.png"/button

didn't work under Netscape 4.75 - I didn't get a button on the form...

Suggestions? If nothing is suggested, I think I'll have to suggest that the
first form "be fixed". Ick.


Richard

--
Richard Jones
[EMAIL PROTECTED]
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)

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



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




[Zope] dtml-sqlgroup dtml-sqltest

2001-01-18 Thread Martin Fekete

are expressions supported in dtml-sqltest ? 
documentation say yes. but it don't work (2.3.0b1  2.2.5 too)

second questions

can be dtml-or and dtml-and tags inside dtml-if
how to write it ?

i tryed this

arguments: op:boolean

dtml-if op
   dtml-or
dtml-else
  dtml-and
/dtml-if

it says Unexpected tag, for tag dtml-or
but it don't work. any ideas ?

Martin Fekete


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

2001-01-18 Thread Loren Stafford



-Original Message-
From: Adam Karpierz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 02:08
To: Loren Stafford
Subject: Re: Variable sort and multiple sort in dtml-in


- Original Message -
From: "Loren Stafford" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 18, 2001 4:16 AM
Subject: Variable sort and multiple sort in dtml-in


 On 02 July 2000, Adam Karpierz, posted a patch that would allow an
 expression for the sort specification for the dtml-in tag. Did that patch,
 or something like it, ever find its way into the Zope core?

 I also seem to remember some discussion of sorting on multiple items (but
 can't find any trace of it in the archives). For example, in an employee
 directory, sort on employee name within department. Anyone know how?

Hi Loren

(sorry for my "approximate english":)

There is a good news in this matter.
I'v noticed that in Zope 2.3.0b1 was included stricte similar way
as my patch.
Only names of variables was changed:
My name of variable was sort-python, now exists  sort_expr
Additionally DC guys added reverse_expr variable.

Here is a example of use (from my patch but translated to use sort_expr)

dtml-call "REQUEST.set('sortstrvar', _.string.lower('tItLe')+','+'id')"

html
pre

1."Hardcoded"
===
dtml-in "objectItems(['Image'])" sort=title,id
dtml-var iddtml-var title
/dtml-in

2.Indirectly

dtml-in "objectItems(['Image'])" sort_expr="'title,id'"
dtml-var iddtml-var title
/dtml-in

3.Indirectly

dtml-in "objectItems(['Image'])" sort_expr="sortstrvar"
dtml-var iddtml-var title
/dtml-in

4.Indirectly

dtml-in "objectItems(['Image'])"
sort_expr="_.string.lower('tItLe')+','+'id'"
dtml-var iddtml-var title
/dtml-in

/pre
/html


 I'm trying to provide user-specified sorting on the records I pull from a
 SQL database. When the user specifies sorting on Department, I assume he
 wants the records order by Name within each department, but I can't see
how
 to do that with ZSQL or dtml-in.

User would specify multiple keys sort (dr Lazarus patch which is included
to core from Zope 2.2.2 (?))
eg:

dtml-call "REQUEST.set('usersort', 'department,name')"

html
pre

dtml-in recordset sort_expr="usersort"
dtml-var departmentnbsp;dtml-var name
/dtml-in

/pre
/html

But best news for you is that sort_expr patch may be very
simply implemented for Zope 2.2.4 and 2.2.5
Simply copy the file:
Zope230b1/lib/python/DocumentTemplate/DT_In.py
to
Zope224|5/lib/python/DocumentTemplate/DT_In.py
thats all you need :)
It is possible because nothing else except sort_expr patch
was changed in this file, without dependences and influences
for other pieces of Zope

Best Regards

Adam

--
Adam Karpierz
[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] Zope digest, Vol 1 #1150 - 54 msgs

2001-01-18 Thread ian . sealy

8


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

2001-01-18 Thread Gerald Gutierrez



Hello all.

Thanks to those who gave me feedback in terms of what tools they use to do 
Zope work. What I've gathered is that, while it is possible to do "remote 
editing" of certain objects like DTML and SQL methods, many Zope objects 
cannot be edited this way and must be done over the web.

I need to have source code readable on the filesystem independent of a Zope 
server, so that I can do things like CVS them, use any editor on them, grep 
them, etc. It seems that my only choice is to write products in Python 
itself, instead of using the web interface of Zope, which is one of the 
cool features of Zope.

This is unfortunate. If only Zope supports a "filesystem-natural" mapping 
for its entire object model, this would be very cool indeed.


Thanks.

Gerald.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 digest, Vol 1 #1151 - 61 msgs

2001-01-18 Thread ian . sealy

8


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

2001-01-18 Thread Geoffrey L. Wright

Steve Spicklemire [EMAIL PROTECTED] writes:

 Hmmm.. I use emacs/ange-ftp all the time with zope... many
 versions.. with no trouble. Have you tried that? Since my
 client is not 'X' (yet) I don't use xemacs... 

Nope.  But explicitly telling efs to use passive mode doesn't work,
I'll try that as a next step.

Thanks!

 -steve


//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] Upgrade woes and product import problems

2001-01-18 Thread Brian Lloyd

 That got both 2.2.5 and 2.3b1 to start up with my data. Only
 problem is that
 all instances of the ZClass I had created in my product (which I named
 ArticleProduct, btw) are broken in 2.3b1. The product itself
 appears in the
 Product Management menu, but even instances of ZClasses within the product
 are broken. Re-importing ArticleProduct.zexp does no good... I still get
 that "append" AttributeError (see traceback below). Is this a bug w/ 2.3b1
 or am I missing something?

This sounds like a bug that pre-dates 2.3 - have you tried
using Shanes 'ZGlobals Repair' utility?

http://www.zope.org/Members/hathawsh/ZGlobalsRepair

If not, can you give it a shot and let me know if it fixes the
problem? If so, I'm inclined to weave a version of Shane's
workaround into the core for 2.3 to mitigate this sort of problem.

Thanks!


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


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




Re: [Zope] Picture of the day product

2001-01-18 Thread Timothy Wilson

On Thu, 18 Jan 2001, Tres Seaver wrote:

 Subclassing Image might be useful, but you could certainly
 get by without if, if all you need is to add a property or
 two:  Images have a propertysheet to which you could add them.

But if I use the standard Image meta type, wouldn't I have to create a
'display_date' property by hand each time I upload an image? I suppose it
would be possible to create an HTML form that would add that property for
me. I'm not sure I want to catalog every image on my site so another for
creating a separate product would be that I could make it catalog-aware on
its own. Comments?

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] |   dtml-var pithy_quote | http://linux.com/


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




Re: [Zope] Picture of the day product

2001-01-18 Thread Timothy Wilson

On Thu, 18 Jan 2001, Tres Seaver wrote:

   This kind of thing is a "query-on-metadata" application;  I
   would put all these images into a single folder (maybe
   chunked into subfolders by month?), mark them each with an
   'effective' property (of type 'Date'), and then select the
   appropriate image via a catalog query, e.g.::
   
 dtml-in "Catalog( meta_type='Image'
  -- rest of example snipped --

Another followup: How 'bout using PIL to generate the thumbnail version that
displays on the homepage as link to the fullsize picture and the
archives? Would this be a logical place to begin experimenting with 2.3.0's
new caching mechanism? Comments?

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] |   dtml-var pithy_quote | http://linux.com/


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




Re: [Zope] Tools used for programming Zope

2001-01-18 Thread Ayhan Ergul

 I need to have source code readable on the filesystem independent of a
 Zope server, so that I can do things like CVS them, use any editor
 on them, grep them, etc. It seems that my only choice is to write
 products in Python itself, instead of using the web interface of Zope,
 which is one of the cool features of Zope

I just came accross a wintel utility ($) called webdrive
(http://www.webdrive.com) that could answer some of your needs like
grepping or using your editor of choice. It mounts an FTP/WebDAV server as
a drive in windows explorer. You can then edit the files with your tools,
etc. It would be of very limited use with CVS though. They have a 20-day
trial if you want to have a go at it.

Ayhan


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

2001-01-18 Thread Aaron Louie

It worked like a charm! Thanks for the tip!

As you suggested, perhaps this sort of ZGlobals corruption checking should
be built into the core... I'd also like to see some automatic garbage
collection in the default stop script -- like removing the temporary data
and pid files. I've modified mine to do this.

Thanks again,
ajl

 This sounds like a bug that pre-dates 2.3 - have you tried
 using Shanes 'ZGlobals Repair' utility?
 
 http://www.zope.org/Members/hathawsh/ZGlobalsRepair
 
 If not, can you give it a shot and let me know if it fixes the
 problem? If so, I'm inclined to weave a version of Shane's
 workaround into the core for 2.3 to mitigate this sort of 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] sendmail query (confirmation)

2001-01-18 Thread Lee

Hi,

Is there anyway to confirm that a message has been sent using sendmail
other than including your own email address in the cc list?

I've got some text at the bottom of my sendmail/sendmail just saying
"Mail sent". If it reaches this then is it *guaranteed* that the message
has been sent? Is there any sort of log file kept detailing (send)mail
activity that I could perhaps use?

Thanks very much for any info.

Lee

--
Lee Reilly
mailto:[EMAIL PROTECTED]

````

HAVE SKILLS; WILL TRAVEL.

I'm currently looking for an internship in the USA
in the field of web development. Ideally, I'm looking
for a placement for 3 to 18 months. Can you help?

More details, my resume, etc. @
http://homepages.strath.ac.uk/~aeu97172/

/shameless plug



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

2001-01-18 Thread Vincent Stoessel

Hello,
can Zope pages be exported as html pages. I want to burn some pages out
that do not change often and thus do not need to be dynamic.
Thanks.
-- 
Vincent Stoessel [EMAIL PROTECTED]
Internet Applications Engineer
IDEV http://www.idev.com
V: 301 495 7345 x129


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

2001-01-18 Thread Shane Hathaway

Vincent Stoessel wrote:
 can Zope pages be exported as html pages. I want to burn some pages out
 that do not change often and thus do not need to be dynamic.

May I suggest that you set up long-term caching instead?  That way you
get to retain the manageability of Zope while not consuming processor
resources or bandwidth.

Zope 2.3 has a new cache management architecture designed just for
this.  Create an "Accelerated HTTP Cache Manager" object and associate
pages and images with it.  Then set up Squid or Apache in front of
Zope.  You should be able to get as good or better performance than a
static pages solution.

Shane

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




Re: [Zope] sendmail / python list parameter - DTML method

2001-01-18 Thread Dieter Maurer

Lee writes:
  When a form is submitted the current REQUEST object's form data is cleared
  and repopulated using the new form input parameters, yeah? Is it possible
  to *not* clear it?
No.

As the name suggests "REQUEST" describes the current request.
A new request creates a new "REQUEST" object.

If you want to retain information between requests,
you use either

  *  a session product (recommended) -- zope.org
  *  hidden variables:
 to hold a list, one for each list element
 all with the same name and with ":list" suffix


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] [OT] Is it time for mandatory subject keys?

2001-01-18 Thread Dieter Maurer

Ausum writes:
  Maybe it's time for mandatory subject keys. Something like NEW: for
  newbies questions; OT: for off-topic (like this); DB: for database
  related stuff... you DC people name it.
What does "mandatory" mean?
Rejected by Ken, if it is missing?
Hope not ...


Many posts here are from newcomers.
Let them a chance to get acquainted with the list and its
nettiquettes.


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] Can't import anything decent on old machine.

2001-01-18 Thread Dieter Maurer

Darrin writes:
  Whenever I try to import a product I usualy get the following errors.
Are your sure, you import products only in "Control Panel - Product Management"?

Your hardware should not be a problem.


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] Adding to an XMLDocument through web forms

2001-01-18 Thread Ian Campbell


Hi,

I`m looking for a way to give a user the ability to add new data to an
XMLDocument through web forms, does anyone have experience of this or would
be able to point me in the direction of an example or howto?

I have a file similar to:

channel
  event
  ...
  /event
  announcement
  ...
  /announcement
/channel

So i`d have two web forms, one to add a new event and another to add an
announcement, taking the data from a form is obviously simple but adding
this to my XMLDocument has stumped me. Any help would be appreciated.

Ian


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

2001-01-18 Thread Brian Lloyd

 As you suggested, perhaps this sort of ZGlobals corruption checking should
 be built into the core... 

FYI - as of beta 2, Zope will inspect the global registry for 
problems and rebuild it if necessary on application startup. 
This should remove the need to have to get the ZGlobalsRepair
utility and run it manually.

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


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




Re: [Zope] [OT] Is it time for mandatory subject keys?

2001-01-18 Thread Ausum

Dieter Maurer wrote:
 (...)
 What does "mandatory" mean?
 Rejected by Ken, if it is missing?
 Hope not ...

Not at all. Mandatory keys are a commom practice in some very busy lists
I've been at before. The spirit is "if you are unsure about what key to
choose, use GEN: for generic stuff (or something like that); but if you
don't use any at all that means you don't want to be kind to every other
subscriber" (if you didn't forget it when you posted it). That would
also mean, "if you want to be paid attention, use them".

 Many posts here are from newcomers.
 Let them a chance to get acquainted with the list and its
 nettiquettes.
 
 Dieter

From a newbie perspective, it is also helpul: the use of proper keys
would help newcomers to associate certain new terms contained within a
mail's subject, to the key (and the topic) it is supossed to belong,
without having to read it (while at the firsts steps of the learning
curve). Anyhow, the most common use would be to filter the messages, in
order to save or discard them. The downside of not to prevent the
potencial problem, as I've seen at other crowded lists, is the loose of
interest in it by their senior users, and a feeling of infinite freedom
of the non-serious newcommers.

After all, as I said, this is just an idea.

Greetings,


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] Mental disconnect help: Zope objects vs. Python objects in ZODB

2001-01-18 Thread andres

Hello,

I'm designing a large e-commerce site with Zope. In the process I have also
designed an object API for the site. My problem is that I can't bridge my
conception of ZODB as a database for Zope objects and my conception of ZODB
as a container for Python objects. For the latter case I'm thinking of AMK's
ZODB/ZEO repackaging.

For example, I want to create a Python class for a Product object and store
the instances in the ZODB. I have looked at ZClasses and they don't seem to
support data structures that I'm comfortable with in Python like dictionaries.

Am I being dense in this mental disconnect and is it just trivial to write
Python scripts that create objects in the ZODB and have Zope dtml calls that
access the attributes in these objects?

--
Andres Corrada-Emmanuel   Email: [EMAIL PROTECTED]
--

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




Re: [Zope] Stopping a dtml-in

2001-01-18 Thread Jonothan Farr

Now just don't get me started on
 "_['index-whatever']" :-)

Funny. I patched that too, and I know I'm not the only one. It also "fell
through the cracks". *sigh*
--jfarr



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




RE: [Zope] Setting the sort var in dtml-in ...sort=sortVar

2001-01-18 Thread Max M

From: Dieter Maurer [mailto:[EMAIL PROTECTED]]

Max M writes:

  Does anybody know if it is possible to programatically set the sort
  parameter in something like: dtml-in getAllComments sort=fwd_thread

There is a product on zope.org that enhances sorting capabilities
drastically. Unfortunately, its name is difficult to remember
(at least for me), something with ZIE in it, I think.
I would try to search for "sort" on zope.org.

Thanks, but I think that I will do my own sort routine. Then I can also add
a few application specifik goodies.

I just though that there was a "simple" way that I had overlooked.

regards Max M


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

2001-01-18 Thread Curtis Maloney

On Thursday 18 January 2001 17:37, Dennis Nichols wrote:
 At 1/17/01 10:24 PM, Tres Seaver wrote:
 Some 8 months ago, I thought "break" was missing from dtml-in and wrote
 to this list. Within hours, clever solutions were suggested, the most
 impressive of which was Jonothan's patch mentioned above. I'm happy to see
 Tres saying that he doesn't buy the anti-DTML-scripting sentiment. To me,
 it makes little sense to create a language and then make it hard to
 use.  Even less so when refusing an offered change that is more of a
 correction than it is an extension. Now just don't get me started on
 "_['index-whatever']" :-)


Count me as another vote of support.  As much as people diss DTML, my first 
few sites were entirely DTML because, before PythonScripts or PythonMethods, 
it was the simplest solution when you needed TTW editing.

It would take just a little nudge (the sequence-* to sequence_* patch, and 
perhaps this dtml-break) to make DTML much easier to use.  I consider DTML as 
a relatively unthreatening step for people between newbie status and moving 
into full Python methods.

Now, if you'll excuse me, I've got to go back and start writing my first 
ZClass...

 --
 Dennis Nichols
 [EMAIL PROTECTED]


Have a better one,
Curtis Maloney

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

2001-01-18 Thread Marty Stitt


I've just noticed another thing on this 'how to backup Data.fs' issue.

Preparing to backup my work, I did a pack, and was then going to archive
the resulting Data.fs.old.  Because I'd added and deleted a bunch of
files earlier today, the Data.fs.old file was 22M in size, and the freshly
packed Data.fs was 4M.  For example:

-rw-r--r--1 zope WebAuths  4325257 Jan 18 15:30 Data.fs
-rw-r--r--1 zope WebAuths76750 Jan  8 08:43 Data.fs.in
-rw-r--r--1 zope WebAuths   129950 Jan 17 13:59 Data.fs.index
-rw-r--r--1 zope WebAuths4 Jan  9 11:33 Data.fs.lock
-rw-r--r--1 zope WebAuths 22026222 Jan 17 13:53 Data.fs.old
-rw-r--r--1 zope WebAuths   188416 Jan 18 15:43 Data.fs.pack
-rw-r--r--1 zope WebAuths  8656275 Jan 18 15:30 Data.fs.tmp

So, I tried running another pack, figuring that the .old file would then
be replaced with a copy of the 4M file.  But, it remained at 22M.

I then deleted the Data.fs.old file, and re-ran the pack.  At this
point, I noticed that there has been a Data.fs.pack file around, and
I don't get a new Data.fs.old.  For example:

-rw-r--r--1 zope WebAuths  4325257 Jan 18 15:30 Data.fs
-rw-r--r--1 zope WebAuths76750 Jan  8 08:43 Data.fs.in
-rw-r--r--1 zope WebAuths   129950 Jan 17 13:59 Data.fs.index
-rw-r--r--1 zope WebAuths4 Jan  9 11:33 Data.fs.lock
-rw-r--r--1 zope WebAuths  4079616 Jan 18 15:43 Data.fs.pack
-rw-r--r--1 zope WebAuths  8656275 Jan 18 15:30 Data.fs.tmp

I'm running 2.2.5, under redhat 7.0.

It seems like the idea of running a pack and then archiving Data.fs.old
may not always be giving me a valid archive.  Should I archive the
Data.fs.pack file instead?



Oleg Broytmann wrote:
 
 On Thu, 18 Jan 2001, Etienne  Labuschagne wrote:
  What is the best way to backup Zope's database whithout stopping Zope?  When
 
Pack + backup Data.fs.old.


-- 
Martin Stitt
Chief Software Engineer
Esker, Inc.
email: [EMAIL PROTECTED]
phone: (608) 273-6000 x331
fax:   (608) 273-8227
web:   http://www.esker.com

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




Re: [Zope] OT: Browsers

2001-01-18 Thread Curtis Maloney

On Thursday 18 January 2001 21:23, Phil Harris wrote:
 Chris,

 It's worse, Mozilla 0.7 also has some issues, Mozilla 0.6 is probably the
 best so far.

 I use it as my main browser.

 You might also want to check out the Beonex Communicator (based on Mozilla,
 but with bug/security fixes) http://www.beonex.com.


I tried to find out some months ago which browser people preferred.  Since I 
worked out how to stop the worst memory leak in NS4.x (disable Java script) 
it has been usable, but I'd rather more... I want to learn CSS, but it's not 
possible with a browser that is so broken.

Mozilla?  Just as bad, and even more bloaty.
Netscape 6?  No better than Mozilla, really... but that's hardly a suprise.
Amaya?  Wish it handled frames...
HotJava? .still waiting.. there's my page!
Opera?  Almost... almost...
Konqeror?  Yes... does CSS, HTML (and isn't tollerant of broken HTML), just 
has a small problem with their Password handling.  It's RFC compliant, but 
not 'user' compliant. (o8

So... I'm still using NS4.75.. and actually thinking IE under Linux wouldn't 
be such a bad thing...


 Phil


Yours not-throwing-the-baby-out-with-the-bathwater,
Curtis Maloney

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

2001-01-18 Thread Michael W. Homyack

Hi,

I've just run across something sort of odd...

Let's say I have a DTML Document 'x' in my site, and I am going to link to it with the 
following URL:

http://www.mysite.com/x?arga=oneargb=two

When Zope processes the URL, the query arguments arga and argb are stored in the 
REQUEST object, and I can refer to them in DTML like this:

dtml-var name="arga"


Now, let's say that I need to have the URL include a bookmark to a point deeper in the 
page.  The URL now becomes:

http://www.mysite.com/x#gotohere?arga=oneargb=two


On RedHat, using Netscape 4.76, the query arguments get passed into the REQUEST object 
properly.

On Windows, using either IE 5.x or Netscape 6, the query arguments seem to disappear 
entirely.  The same behavior is also apparent using Opera 4.0b4 on RedHat.  Since the 
query arguments don't make it into the REQUEST object, the dtml-var line above results 
in a KeyError.  Although I could protect myself from the KeyError easily enough, what 
I really need is the values passed in the URL.

This is using Zope 2.2.4 running on RedHat Linux, BTW.

Does anyone have an idea why adding the bookmark is causing Zope to fail in parsing 
the URL?
Is there an alternative syntax for the URL that will both pass the arguments and goto 
the right point on the page?

Thanks, Mike.

-- 
--  Michael W. Homyack
--  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  --  303.539.0045 -- 720.560.8772
--  "To make an apple pie from scratch, you must first invent the universe"
--  - Carl Sagan

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