[Zope-dev] RE: [Zope] ImportError with unlrelated and obsolete module

2002-06-23 Thread Jay, Dylan

 -Original Message-
 From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
 Jay, Dylan writes:
   ..
   ZSQLMethods has nothing to do with PTKBase. When I try to 
 access any
   advanced tab from an ZQLMethod I get the following error. 
 (PTKBase is no
   longer installed and I have to need to install it)
   ...
   (Object: manage_advancedForm)
 File 
 C:\PROGRA~1\Zope\25228D~1.1\lib\python\Shared\DC\ZRDB\DA.py, line
   476, in manage_product_zclass_info
   (Object: qryGetPersonInfoSQL)
 File 
 C:\PROGRA~1\Zope\25228D~1.1\lib\python\ZODB\Connection.py, line 472,
   in setstate
   ImportError: (see above)
 You know the custom classes you can use in the ZSQL Advanced tab?
 You can use ZClasses to implement such classes.
 
 The method Shared.DC.ZRDB.DA.DA.manage_product_zclass_info
 runs through all ZClasses and tries to build a list of
 ZClasses that can be used for this purpose.
 
 Thereby, it hits a ZClass that is dependent on a product that 
 is no longer
 installed.
 
 Your options:
 
   *  find the ZClass that produces the problem and delete it.
 
  It is probably an old Portal Toolkit ZClass.

I'm pretty sure that no longer exists either. Something must be wrong with
the code that cleans out this registry. This email shows the problem quite
clearly
http://mail.python.org/pipermail/zope/2001-August/097435.html 

If I could somehow readd the appropriate classes and then delete them so it
removes the classes properly then that might clear it out but I havn't
managed to do that yet. This registry looks like a real bodgy piece of work.
Shouldn't it use more indirection or be able to refresh itself or something
 
   *  add a try ... except round line 476 of Shared/DC/ZRDB/DA.py
 
  File a bug report to http://collector.zope.org with your
  patch

I filed a bug report but wasn't confident in patching it since I wasn't sure
sideeffects catching those errors might have. Personally I think there is a
more robust solution possible but I'd like to here someone closer to the
code offer an opinion on this.

http://collector.zope.org/Zope/438



___
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: [ZC] 365/ 2 Reject metadata in Catalog is space inefficient

2002-04-26 Thread Jay, Dylan

I specifically stated a FieldIndex, not TextIndex. It is a special case, but
when your talking a huge Catalog this could be a lot of extra data. If you
want to make it more general, perhaps a PluginIndex could advertise itself
as metadata capable. When someone adds a metadata field it checks to see
if an existing index supports returning of metadata for an RID.

 -Original Message-
 From: Collector: Zope Bugs, Features, and Patches ...
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 25 April 2002 6:32 PM
 To: djay; chrisw; klm; Brian; chrism; Caseman; _Rejected_ recipient
 Subject: [ZC] 365/ 2 Reject metadata in Catalog is space inefficient
 
 
 Issue #365 Update (Reject) metadata in Catalog is space inefficient
  Status Rejected, Catalog/bug low
 To followup, visit:
   http://collector.zope.org/Zope/365
 
 ==
 = Reject - Entry #2 by chrisw on Apr 25, 2002 4:31 am
 
  Status: Pending = Rejected
 
 You're making a huge assumption there.
 
 In many cases, I'm thinking TextIndex being the primary 
 example here, it's not actually possible, let alone feasible, 
 to retrieve the originally indexed information from the index itself.
 
 So your point is kidna invalid ;-)
 
 cheers,
 
 Chris
 
 = Request - Entry #1 by djay on Apr 25, 2002 3:52 am
 
 If I create a metadata to be stored so that it is availalbe 
 in my results, and this metadata is the same as a FieldIndex, 
 then the data is effectively being stored twice for no 
 reason. The value of the metadata should just be retrieved 
 from the index to save space
 ==
 
 


___
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] ZTables and/or Catalog plugable brains?

2001-10-07 Thread Jay, Dylan

 -Original Message-
 From: Casey Duncan [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 5 October 2001 10:55 PM
 To: Jay, Dylan; '[EMAIL PROTECTED]'
 Subject: Re: [Zope-dev] ZTables and/or Catalog plugable brains?
 
 
 On Thursday 04 October 2001 07:34 pm, Jay, Dylan allegedly wrote:
 
  I tried using ZClasses but it seems to run slow and take up 
 space. Instead
  I'm  using Catalog (without ZCatalog) to contain the data. 
 I'm presuming
  this will be quite efficient (comments welcome).
 
 Yup that should be pretty efficient. Plus you can index and 
 query the thing 
 fairly easily.
 
  Now to my question, How do Catalog plugable brains work? 
 I've looked but
  can't see what the brain class has to look like to work. My 
 first attempts
  don't seem to work. The classes are created but don't 
 contain the data. Is
  the record data passed into the constructor?
 
 I'm not an expert on brains per se, but my understanding is 
 that they allow 
 you to wrap functionality from a particular class around data 
 stored in a 
 table (such as a Catalog or an external database) without 
 making each record 
 an instance of the class.
 
 This is how, when the Catalog returns data, you get the 
 getURL and getObject 
 methods for each record (among others). TinyTable and Z SQL 
 Methods also 
 support this functionality, and it is exposed in the 
 management interface.
 
 This would allow you to store the actual data as regular 
 metadata elements in 
 the Catalog, and get objects out when you query it. It would 
 avoid storing 
 the data twice, once in the objects and again in the metadata 
 and all of the 
 disadvantages this causes in terms of storage and synchronization.

But what is the API? I understand that for SQLMethods you just have a class
that assumes the existance of attributes that have the same name as you
result fields. I tried doing this with the Catalog code but it seem to
doesn't work. Am I doing it right or the the Catalog brains work
differently?
 

___
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] ZTables and/or Catalog plugable brains?

2001-10-04 Thread Jay, Dylan

(resent to here from [EMAIL PROTECTED] due to complete lack of resoonse. Perhaps
there should be three levels of mailing list. zope-use, zope-app-dev,
zope-dev or something)

I'm in the process of of write a zope product that will deal with a lot
numerical data (records with a few ids and a few float values). Rightly or
wrongly (comments welcome) I've decided to do this inside the ZODB rather
than rely on a relation database. This is largely because this data will 

- not be high-write
- I want to do processing on all this of this data on multiple servers
- and I am presuming that at some point in the not too distant future zope
will let me replicate this data very easily to make it even more highly
available.

I tried using ZClasses but it seems to run slow and take up space. Instead
I'm  using Catalog (without ZCatalog) to contain the data. I'm presuming
this will be quite efficient (comments welcome).

Now to my question, How do Catalog plugable brains work? I've looked but
can't see what the brain class has to look like to work. My first attempts
don't seem to work. The classes are created but don't contain the data. Is
the record data passed into the constructor?

Also in my searches I came across lots of references to something called
ZTables. This seems to be a Catalog with a UI that is about lots of tabular
information (rather than a ZCatalog which is specialized to replicating and
indexing existing objects). Is this dead? If not where is it? If so, why? It
seems like a really good idea to me. It seems to be there are times when
objects (esp ZClasses) are too heavy? 

Anyone with comments about how ZPatterns fits into all of this would also be
welcome.

___
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: Barriers to Zope popularity: Part 2: source control

2001-09-24 Thread Jay, Dylan

 -Original Message-
 From: Kenichi Sato
 Sent: Monday, 24 September 2001 5:49 PM
 To: djay
 Subject: Barriers to Zope popularity: Part 2: source control
 
 
 Dear Mr. Jay, Dylan,
 
 I am Ken Sato, a manager of software development projects. I'm now
 taking a look at Zope as a tool to publish project related
 information internally.
 
 Zope looks nice but I found it has two potential problems.
 
  1. WYSIWYG editing
  2. Source control (by ClearCase)
 
 Then, I found that you pointed out exactly same things in the
 zope-dev mailing list.
 (http://lists.zope.org/pipermail/zope-dev/1999-September/001602.html)
 
 Because the post was two years ago, I wonder if you have already
 solved the above problems. It would be very helpful for me if you
 could give me some information on this issue, please.

Hope you don't mind me CC'ing this to zope-dev. I still see both these
issues as important and still see the lack of progress towards Zope working
well in traditional development environments being a real outage. Plus
others may have different opinions about the current state of affairs

1. I have not used Zope Page Templates but these are supposed to solve the
wysiwyg problem. They are an alternative to DMTLDocuments. They allow for
much better seperation of code and presentation. Get you graphics people to
use webdav to edit the html with whatever editor they want and the coding
people argment the html rather than rip it appart.
http://www.zope.org/Documentation/Articles/ZPT1

Personally I like DTML and back then I did suggest a way DTML could used in
a similar way to Page Templates (basically have a view mode of a DTML
document that incorparates the rendered content as well as the DTML code
such that when the page is edited and saved back, it will save all the
changed parts back to the where they came from, i.e. the different
DTMLMethods that made up the page). but like most of my ideas I din't have
the ability or time to implement it.


2. Hasn't really been solved. There are sort of attempts that work now with
CVS (I havn't tried it)
http://www.zope.org/Members/sspickle/ZCVSMixin
This 

but there are proposals that will better solve this problem, but no
implementation on the way that I can see.
The problem is really one of synchronization. You want two different
representations that are both kept upto date. One for zope to use, one for
all the reasons we have things under source control. You may or may not want
control of when the synchronization occurs.

Here are some related proposals

http://www.zope.org//Wikis/DevSite/Proposals/SynchronizationMechanismZCVSMix
in

http://www.zope.org/Wikis/DevSite/Proposals/SynchronizationTab

http://www.zope.org/Wikis/DevSite/Proposals/RepresentingObjectsOnTheFilesyst
em

I also see a lot of parallels with the work going on with ZODB replication.
If you had replication between a normal ZODB and some filesystem source
control ZODB then you would have the source control synchronization problem
solved maybe?

http://dev.zope.org/Wikis/DevSite/Projects/ZEOReplicatedStorage/FrontPage



___
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] ZClass not in a Product

2001-06-21 Thread Jay, Dylan

Is there any good reason why a Product inside the ControlPanel is the only
place a ZClass can exist? Why can't I have one in any folder?


Dylan Jay   mailto:[EMAIL PROTECTED]
Avaya Communication Tel:   +61 2 9886-8961
Level 3, 123 Epping RoadFAX:   +61 2 9352 9224
Nth Ryde NSW 2113   Mobile: 0409 606 171
AUSTRALIA

___
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] ZClass not in a Product

2001-06-21 Thread Jay, Dylan

 -Original Message-
 From: Chris McDonough [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 22 June 2001 2:42 PM
 To: Jay, Dylan; 'Joachim Werner'; [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] ZClass not in a Product
 
 
 
  Now is there a technical reason why I can't have a ZClass inside any
 folder?
 
 No.  There is not code to allow this to happen in Zope, 
 however.  I think at

I know there is no code to do this. I'm asking how much code would be
needed. Is it a major re-architecture? Is it something I could do?

 some point, Lalo came up with a local factory product that 
 did something
 like this.

Not quite the same thing. I want local factory for local class. 

___
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] Fishbowl not problem centered enough

2001-06-20 Thread Jay, Dylan

 -Original Message-
 From: Ken Manheimer [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 21 June 2001 2:53 AM
 To: [EMAIL PROTECTED]
 Cc: Casey Duncan; Jay, Dylan; Paul Everitt; Jim Fulton
 Subject: Re: [Zope-dev] Fishbowl not problem centered enough
 
 
 On Wed, 20 Jun 2001 09:24:40 -0600, Casey Duncan [EMAIL PROTECTED]
 wrote:
 
  Jay, Dylan wrote:
   
   Fishbowl is a great idea but it seems to be that its 
 solution focused rather
   than problem focus. Perhaps if you had a page that listed 
 all the problems
   with zope or problems that need to be solved that isn't 
 as easy as it could
   be with zope. 
 
 I think it would be helpful to have a big picture, with goals and
 objectives, into which to fit the pieces - would that address 
 the kinds of
 things you're talking about?

big picture is good but its not what I mean.
What I mean is a list like this

--

ZODB is not fault tolerent

 - ZODBReplication

No way to use Zope with source control

 - DirectoryStorage - ZODB 

 - CVSStorage

 - ZODBFileSystemSynchronization

Need clearer seperation between presentation and code

 - HiperDOM

etc etc

-

What I'm suggesting is turning the focus on its head. If every day your
looking at problems rather than proposed solutions it promotes the following

 - Ideas about alternative solutions

 - Focused debate about tradeoffs between alternatives

 - a clear way to determine priority of proposed solutions by determining
priority of the problems they solve. People can vote on the problems to
gauge the need in the community. This is something that you guys need. eg No
one at work will take zope seriously if they can't use source control to
intergrate into our existing processes. If I'm alone then thats cool, but if
lots of people are in the same boat but arn't about mailing the dev list to
tell everyone then you'll never know and lose all those potential zopisters.

Voting could be done by giving each problem a page with a special tag.
Every user gets 5 votes to place on any page with the tag. When ever the
problem changes status then everyone who voted gets notified. When the
problem is solved all those votes get refunded. If someones priorities
change then they just move their votes around. (The java bug parage was an
inspired idea IMHO)
 
  The fishbowl is also pull technology, and so it is 
 time-consuming to
  keep up with the developments. I personally find it to be 
 cumbersome,
  limiting and not really conducive to actually getting stuff done.
 
 I've really wanted to enable people to subscribe to notification about
 changes to wiki pages, and to notifications about additions 
 to the wiki.  
 Unfortunately, i didn't have time to get to that in the WikiForNow
 project.  As soon as i'm clear form a current project i *may* 
 be able to
 concentrate on at least formulating a reasonable 
 quick-and-dirty way to do
 notifications, and getting it done for the short term.  Whether or not
 it's me doing it, i think we're going to be bringing more attention to
 these issues.

I wrote a quick and dirty one for this. I'll include the code at the bottom
of the email. 

However someone recently suggested something better. The idea that you can
send email to a wiki page. To take this futher imagine if every wikipage is
a mailing list. Everyone who adds to it becomes a subscriber or you can
subscribe manually to become a lurker. Then every update gets mailed to
everyone. Then every reply becomes a comment at the end of the page. Perhaps
every wikipage created from the original page inherits its subscribers.  Of
course you can unsubscribe at any time (have to be real easy to do like one
click at bottom of email). Email addresses would be something like
[EMAIL PROTECTED] or something.

So what problem does this solve?
 - Lack of awareness of wiki changes
 - Email discussion is easier than wiki discussion but essentially the same
thing however they get recorded in different places with no connection
between each other
 - No more good idea, but record it on the wiki comments




Anyway the code I wrote (just for stright subscription) went like this. It
relies on an XML document to keep the subscribers but that can be replaced
by some kind of map. It also relies of ZCron to do the checks every 5min or
so. If you guys added a flexible change notification hook (Listener talker
pattern) it would make like much easier. eg The idea of subcribing to events
on any object like change and add events.

add_subscriber(self, user, page_name)

doc = self.subscribers
body  = doc.getElementsByTagName('subscriptions')[0]
n = doc.createElement('Notify')
body.appendChild(n)
p = doc.createElement('Page')
p.appendChild(doc.createTextNode(page_name))
n.appendChild(p)
u = doc.createElement('User')
u.appendChild(doc.createTextNode(user))
n.appendChild(u)

remove_sbscriber(self, user, page_name)

doc = self.subscribers.getElementsByTagName('subscriptions')[0]
sub = []
for e

RE: [Zope-dev] Fishbowl not problem centered enough

2001-06-20 Thread Jay, Dylan



 -Original Message-
 From: Casey Duncan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 21 June 2001 3:30 AM
 To: Ken Manheimer
 Cc: [EMAIL PROTECTED]; Jay, Dylan; Paul Everitt; Jim Fulton
 Subject: Re: [Zope-dev] Fishbowl not problem centered enough
 
 
 I agree that the fishbowl is beneficial, if for nothing else than a
 sounding board for the possible directions of Zope. But, like I
 mentioned before, I think the community needs more 
 involvement directly
 with the development of its own tools like the fishbowl. I 
 realize there
 is a risk to DC of loosing some level of direct control, but I suggest
 that a democratic development approach although less decisive and
 centralized is superior to a despotism.

I'm not so sure about this idea. Benevolent dictators are always going to be
10 times more efficient than democracy. I just think we need to improve the
consultitive process and have some focus on what is really trying to be
achieved. I aggree that the changes to Zope have been way to slow but then
again Zope is going in 5 directions at once which is not a good idea esp if
none of those ways work togeather. 

Perhaps more transparency of the DC's strategies for where zope is going
would be good. Also transparency of the criteria by which we should be
evaluating new proposals.

___
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: [SmartObjects] Zope Object Query Language (ZOQL) Proposal

2001-06-19 Thread Jay, Dylan


 -Original Message-
 From: Olivier Deckmyn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 19 June 2001 6:47 PM
 To: Stephan Richter; SmartObjects Mailing List
 Subject: RE: [SmartObjects] Zope Object Query Language (ZOQL) Proposal
 
 
 A ) Devil lawyer :
 --
 Why not reuse a existing standard query language ?

First I'll have to say I'm bit to busy to follow the whole thread and see
what the details of the query languages being discussed are. For a long time
however I have believed that there is a need for a strong queury language
for Zope.
One that gives a powerful and consistant API and also allows for things like
transparent indexing. We need something that combines the power of
relational joins but also the heirachical queries like XPath. 

Such a query language is not a new idea and is activly being devoloped for
XML. XML and ZODB are very similar. I think the gains made by reusing an XML
query language would be huge. 

XQuery seems to be the most powerful and the most applicable and has a lot
of smart people working on it.

http://www.w3.org/TR/xquery/

XML is an extremely versatile markup language, capable of labeling the
information content of diverse data sources including structured and
semi-structured documents, relational databases, and object repositories. A
query language that uses the structure of XML intelligently can express
queries across all these kinds of data, whether physically stored in XML or
viewed as XML via middleware. Because query languages have traditionally
been designed for specific kinds of data, most existing proposals for XML
query languages are robust for particular types of data sources but weak for
other types. This specification describes a new query language called
XQuery, which is designed to be broadly applicable across all types of XML
data sources.

Can I suggest that someone have a closer look and see if this language can
cover all the needs of a general ZODB query language? such as I think was
suggested at the beginning of this thread

http://imail.iuveno-net.de/pipermail/smartobjects/2001-June/000116.html

___
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] Fishbowl not problem centered enough

2001-06-19 Thread Jay, Dylan

Fishbowl is a great idea but it seems to be that its solution focused rather
than problem focus. Perhaps if you had a page that listed all the problems
with zope or problems that need to be solved that isn't as easy as it could
be with zope. Problems could then be organized according to priority due to
severity or strategy, or even voting via the comunity (ala Java bug parade
developer.java.sun.com/developer/bugParade/)
Then under each problem could be listed the proposals that form solutions to
the problem. Of course some solutions may solve many problems and therefore
appear more than once.

I just see lots of solutions many of which attack some of the same problems
and no clear way to get those people comunicating and making informed
trade-offs



Dylan Jay   mailto:[EMAIL PROTECTED]
Avaya Communication Tel:   +61 2 9886-8961
Level 3, 123 Epping RoadFAX:   +61 2 9352 9224
Nth Ryde NSW 2113   Mobile: 0409 606 171
AUSTRALIA

___
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: Problems with ZmxODBC_0_0_2

2001-03-25 Thread Jay, Dylan



I 
don't know. Try changing the default representation of your dates on the server 
machine.

  -Original Message-From: Isaac Salsberg 
  [mailto:[EMAIL PROTECTED]]Sent: Saturday, 24 March 2001 5:14 
  AMTo: [EMAIL PROTECTED]Cc: [EMAIL PROTECTED]; 
  [EMAIL PROTECTED]Subject: Problems with 
  ZmxODBC_0_0_2Hello djay, 
  I have been using the ZmxODBC with SQL Server ver 6.5 and 7. 
  With SQL Server 6.5 it works just fine, however with version 7 it can not 
  retrieve datetime fields giving the following error: 
  Error Type: Invalid Date-Time String Error Value: 22/03/2001 
  12:00:00 a.m.  
  Could You help me with this please? 
  Thanking in advance, Isaac  


[Zope-dev] WikiName Overloading (RE: [Zope-Annce] ZWiki 0.8.1 released)

2001-01-08 Thread Jay, Dylan

Here's the beef:
Want to use ZWiki but have a slightly different version of what you want a
wikiname to be? In my case I wanted to include TLAs as wikinames as my
industry is full of them and its really handy to have to automatically
hyperlinked so anyone can give the definition and references easily.
To enable this I created a patch to ZWiki that will look for a property in
the aquisition path called WikiNameDefinition. If found, this string
property is treated as a regexp that is "or"ed with the standard wikiname
regexp. This is done at runtime so you can change the wikiname over a pages
lifetime.
I would like this patch included so that I can take advantages of new ZWiki
releases without rehacking the source each time.

I'd like to motivate the author to include this feature in the next release.
How much interest by others is there for such a feature?


 -Original Message-
 From: Simon Michael [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 8 January 2001 9:29 PM
 To: Jay, Dylan
 Subject: Re: [Zope-Annce] ZWiki 0.8.1 released
 
 
 "Jay, Dylan" [EMAIL PROTECTED] writes:
  What are the disadvantages that you see?
 
 Nothing specific with your patch - just a general concern with feature
 bloat and preserving simplicity and generality which makes me want to
 consider how each new feature fits into the overall picture.  I
 haven't yet had time to do that for this particular enhancement.  
 Feel free to cc this thread on zwiki.org or the mailing lists;
 discussion of this issue from you and others can help me get to the
 "ready to integrate" stage.
 
 Regards,
 -Simon
 

___
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] Zope, 4Zope and XML???

2000-12-03 Thread Jay, Dylan

I've been considering using XML within Zope as a kind of XML repository with
versioning etc. I've been trying to follow what the developments with XML
with regard to Zope are and I'm becoming very confused. There seems to have
been some really good stuff coming up with regard to integration between
fourthought XML tools and Zope but that was 6 months back. What has
happened? From the looks of it fourthought have back out and are now
creating their own persistent XML storage and 4Suite application server. 

I've read all the xml-wiki stuff but there doesn't seem to have been any
actual code produced to improve support for XML in Zope for over 6 months.
What there is is pretty behind the times. I'd really like to see XPath, XQL,
XLink, XPointer all being well supported with some kind of heavy duty
XMLRepository storage in Zope. I see Zope as the perfect place to put this
sort of thing since it provides all the undo, versioning, transparent
persistence to make it easy to work with XML. What's needed is support for
more powerful query languages. I want to be able to use a Zope XML
repository as an alternative to an RDBMS i.e. to store data for use in
applications. I want to do this because RDBMS's are not so nice when it
comes to the kind of structured information that XML is good at. I don't
want to use straight Zope objects because I want a very loose coupling
between my data and my interface (something that I see as a deficit in the
default way Zope seems to promote development). I want to be able to examine
my data in an independent way and take it out and use something else as the
interface if necessary. XML lets me do that. RDBMS lets me do that.

Anyway, what's the story with Zope and XML?


Dylan Jay   mailto:[EMAIL PROTECTED]
Avaya Communication Tel:   +61 2 9886-8961
Level 5, 15 Talavera Road   FAX:   +61 2 9352 9224
Nth Ryde NSW 2113   Mobile:0409 606 171
AUSTRALIA

___
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: XHTML Templates comments from the peanut gallery

2000-09-28 Thread Jay, Dylan


  However, the focus of the new Template architecture will be a new
  format based on XHTML.  This XHTML Template will be focused on
  giving Site Designers round trip presentation authoring using the
  dominant tools such as Dreamweaver.

  XHTML Templates will be complete, well-formed HTML that look like a
  resource will look when the XHTML Template is applied to it.  There
  will be no "source vs. rendered" issue.

  In this Presentation Architecture, Site Designers can start mocking
  up a Zope site by editing real HTML and graphics in Zope from the
  very beginning.  There will be nothing Zope-ish in what they are
  doing.

  As the mockups turn into live content, certain regions of the XHTML
  Template will be "connected" to the live content.  This is done by
  indicating the object data that will be inserted when the XHTML
  Template is applied to content.

This all seems like a good idea but its hard its not very concrete. I
proposed something very similar about a year ago.

http://lists.zope.org/pipermail/zope-dev/1999-September/001624.html

It was an extension to DTML that enabled the use of documents that were
rendered html and dtml source combined. This gives you round trip wysiwyg
editing without "doing away" with the whole DTML scripting thing. A designer
might make a mockup, the coder would then zopify it by putting in iterations
etc in DTML as they normally would. The designer could then view the
document in "design-mode" that would render the DTML but keep special tags
in place around the rendered content that contained the code. Whent the
designer saved back this version there would be a spcial "design-mode"
compiler that would work out all the DTML objects etc the relevent bits of
content (and code) belonged to. Content relating to any object that the
designer doesn't have permission to edit or the content was dynamic like
from a database, just gets discarded.

This solution seems to achieve most of your aims for XHTML but without some
of the weird architecture changes.

Dylan Jay
Avaya Communication.

___
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] Proposal: Local ZClasses

2000-09-26 Thread Jay, Dylan

Problem:
  Encapsulation for plugable brains and other purposes are too hard.
ZClasses are a global kind of thing that requires going into a separate area
of the site which you have to have permission to use. 

  Also I find that I evolve my solutions. I will produce something in
folders that works for what I want and then try and generalize it into
ZClasses later. However if my solution in the folders itself wants to use
classes then the only choice I have is external methods or ZClasses.

Solution:

  Local ZClasses:

   A ZClass that can be created in any folder and is available with the
acquisition path. It can then be used for pluggable brains with sql methods
also where the Class can be reached in the acquisition path.

  e.g. I have a few fancy display methods that I use for display results of
a sql query for getting phone contact info e.g. create a vCard for each
entry. I create a ZClass with a property sheet matching those returned by
the sql method. I create my display methods within this ZClass. I associate
the sql method with the ZClass. I call the query with dtml-in. Within the
loop I have access to the ZClasses methods.

Second solution:

  Prototype objects:

   A folder is an object with methods etc. A ZClass is not much different
except that it has a constructor and a list of the properties that are
always there. With a bit of syntax we could make a local folder into a local
ZClass. We just need a method that says, using this folder as a prototype,
create me a new object. e.g. dtml-call
"REQUEST.set('myobj',_.new(users_class, name='Dylan'))".
This would effectively make a new non persistent object that inherits from
the prototype folder I guess. This could be done with plugable brains as
well by just specifying the folder as if it was a class and then new objects
would created for each row.
 
   If you enable the ability to make these prototype objects persistent then
you get the side effect that you can create symbolic links. You can access a
whole other acquisition path using inheritance. In fact you could have a
property of a folder which is its inheritance objects which you could change
over its life time. In fact any object could have this property could affect
an objects behavior without moving the object or modifying its underlying
classes. Also it would mean overload any kind of object. Just create a
folder that inherits from an object or class and add methods. 


Personally I think the second solution has a lot of merit. What do others
think?

___
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] Call for a creation_datetime property!

2000-09-05 Thread Jay, Dylan

It is really a painful thing to do without.  I realize I can add this
capability to factories of my own objects but I don't want to have to create
my own versions of dtml-document and everything else just to ensure that a
creation date is kept. I've tried using transaction logs but this is very
dodgy for the following reasons. 1) An object can be created by many
different methods. Its guess work working out which created the object. 2)
The odb can be packed and then you've just lost your creation date.

Can anyone give a good reason not to include this property as a standard for
all ZODB objects?



Dylan Jay   Tel:   +61 2 9886-8961
Avaya Communication FAX:   +61 2 9352 9224
Level 5, 15 Talavera Road   Mobile:+61 409 606 171
Nth Ryde, NSW, 2113 ICQ:   520341
AUSTRALIA   


___
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] What should be done with Nulls in Database result sets?

2000-08-11 Thread Jay, Dylan

I have been having all sorts of trouble upgrading from ZODBCDA to ZmxODBC.
The ZODBCDA users RDB.DatabaseResults and ZmxODBC (modified from ZOracleDA)
uses Results.Results. These two classes seem to do exactly the same purpose
and so I suppose one shouldn't exist. The important point is that handle
NULL values very differently. Results let them pass through as None values
whereas DatabaseResults change them to the special value MissingValue.
MissingValue is nice becuase its string representation is an empty string
which is nice on html forms etc. Why doesn't Results do this too? What is
the official word on what a DA should be returning for NULLs?




Dylan Jay   Tel:   +61 2 9886-8961
Avaya Communication FAX:   +61 2 9352 9224
Level 5, 15 Talavera Road   Mobile:+61 409 606 171
Nth Ryde, NSW, 2113 ICQ:   520341
AUSTRALIA   


___
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] OFS.objectManager checking object Ids

2000-08-10 Thread Jay, Dylan

 -Original Message-
 From: Jim Fulton [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 10, 2000 9:51 PM
 To: David C. Kankiewicz
 Cc: Jay, Dylan; '[EMAIL PROTECTED]'
 Subject: Re: [Zope-dev] OFS.objectManager checking object Ids
 
 "David C. Kankiewicz" wrote:
  
  "Jay, Dylan" wrote:
  
   As I said, when the url is quoted there is no problem.
  
   
 http://azonia.auslabs.lucent.com/Auslabs/AuslabsFAQ/Where%20is%20X%3f
  
   causes no problems. The above object is sitting happily 
 inside Zope with a
   question mark at the end. I had to let the bad_id check 
 let it pass but is
   there any reason why it shouldn't?
  
  bad_id=ts_regex.compile('[^a-zA-Z0-9-_~\,\. ]').search #TS
  
  The .search was .match
  Changing it back restores the behavior, who changed it and 
 why is the
  question?
 
 I don't know who changed it, but the why is obvious.
 'match' was clearly a bug, since it only found an 
 invalid character if it was at the beginning of an id.
 
 I think that it's a bad idea to allow '?'s in ids
 and am sorry if it was allowed. In general, I don't
 like to see characters in ids that need to be quoted.
 I'm not happy that ' ' was added, although 
 I understand why.

It may seem like a wise idea not to allow such chars into an id but I'd to
explore this issue a little more as I think it is not quite as trivial as it
sounds. 

The proposition I'm putting forward is that, if Zope copes with it why not
let it. In dtml your already have to quote things like sequence-item becuase
its not valid python but people cope with that. What we are talking about is
have a sensible match between what an item is and what its called. I know
that that is what the title property is for however look at the example that
lead me to this problem in the first place.

I want an FAQ that people in my department can all add too. None of the
existing FAQ's are good enough. They arn't flexible or customizable enough.
So I decided to use ZWiki which is flexible and customizable. But ZWiki
needs WikiNames which become the object ids. A FAQ contains questions.
Questions don't make good wiki names but structured text lets me make
anything into a WikiName eg [How do I turn a ZWiki into a collaborative
FAQ?]
So I create a dtml method that appends this text to the end of a wiki page
and create the resulting question page (with the question mark in the id).
This makes it a reasonably usable FAQ system with all the benifits of a
ZWiki. People can move questions around my cutting and pasting. I can let
people see who is editing what with a little bit of coding here and there.

So without the question directly in the id I'm left with the "how to create
a unique id" and then I have reference it within pages using the title
anyway becuase I don't want people seeing the random ID. Why should I have
to go to so much trouble when I can just call the object by the title anyway
and Zope has no problem with it. It makes it easier for me and I'm sure it
will make it easier for other uses to. Resorting to random names in urls is
ugly and unneccerily complicated. If Zope fundumentally can't cope with
strange ids then say so but I've seen no evidence of this.

Anyway, thats my 2c worth.

___
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] OFS.objectManager checking object Ids

2000-08-09 Thread Jay, Dylan

This seems to be a new thing in Zope 2.2, however it is breaking
functionality that I had before. I was able to add objects with ids that had
a "?" in them. This gets quoted in links and seems to be handled fine by
zope (both 2.2 and older versions). Why can't I have question marks in my
objects then? Should I submit the inclusion of a the "?" as a valid char in
and id as a bug?


Dylan Jay   Tel:   +61 2 9886-8961
Avaya Communication FAX:   +61 2 9352 9224
Level 5, 15 Talavera Road   Mobile:+61 409 606 171
Nth Ryde, NSW, 2113 ICQ:   520341
AUSTRALIA   


___
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] OFS.objectManager checking object Ids

2000-08-09 Thread Jay, Dylan

As I said, when the url is quoted there is no problem.

http://azonia.auslabs.lucent.com/Auslabs/AuslabsFAQ/Where%20is%20X%3f

causes no problems. The above object is sitting happily inside Zope with a
question mark at the end. I had to let the bad_id check let it pass but is
there any reason why it shouldn't?

 -Original Message-
 From: David C. Kankiewicz [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 10, 2000 3:52 PM
 To: Jay, Dylan
 Subject: Re: [Zope-dev] OFS.objectManager checking object Ids
 
 
 "Jay, Dylan" wrote:
  
  This seems to be a new thing in Zope 2.2, however it is breaking
  functionality that I had before. I was able to add objects 
 with ids that had
  a "?" in them. This gets quoted in links and seems to be 
 handled fine by
  zope (both 2.2 and older versions). Why can't I have 
 question marks in my
  objects then? Should I submit the inclusion of a the "?" as 
 a valid char in
  and id as a bug?
 
 The reason is related to the URL to your object could be
 misinterpreted as a 'get' method...
 
 Server/path_to_object/object?name=foo
 
 The '?' means place the names:values in REQUEST, if the object has a
 '?' in its id anything after it would be interpreted has such and zope
 would try to publish a object with the id minus the '?' and anything
 after it (which probably doesn't exist...).
 
 
 Did you ever run into the above problem with the id 'names?'?  No pun
 intended ;).
 I curious, maybe you were using for just this reason?
 
 
 David
 
  
  
  Dylan Jay   Tel:   +61 2 9886-8961
  Avaya Communication FAX:   +61 2 9352 9224
  Level 5, 15 Talavera Road   Mobile:+61 409 606 171
  Nth Ryde, NSW, 2113 ICQ:   520341
  AUSTRALIA
 

___
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] mxODBC, ExtensionClass.Missing and Results puzzle???

2000-07-24 Thread Jay, Dylan

I've compiled up a mxODBC DA for use under windows so that multi-threaded
odbc drivers can be me used in a  multi-threaded way.

This works good so far except for one aspect. NULL values are being returned
as "None" objects. This seems reasonable but it is not how ZODBC returns
results. It will return a NULL as a "Missing" object (whatever that is?). I
can't find any documentation to find out what this object is or means. 
My biggest problem is that the UserDB product doesn't like None objects
being return for passwords. It seemed to handle the Missing objects fine.

To add to the mystery I noticed that the result object returned by an sql
method connected to first ZODBC and then ZmxODBC was of two different types.
ZmxODBC was returning a ZRDB.Results object. ZODBC was returning a
ZRDB.RDB.DatabaseResults object. The latter is apparently a "Class for
reading RDB files" but as this is the only documentation I can find I have
no idea how it differs from the ZRDB.Results class or rather why ZODBC
returns it and thus has NULL's replaced Missing objects.

Can anyone shed any light on any of this?


Dylan Jay   mailto:[EMAIL PROTECTED]
Avaya Communication Tel:   +61 2 9886-8961
Level 5, 15 Talavera Road   FAX:   +61 2 9352 9224
Nth Ryde NSW 2113   Mobile:+61 409 606 171
AUSTRALIA   ICQ:   520341


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