[Zope-dev] pdbtrack.el - track source file whenever runing pdb in an emacs buffer

2000-07-16 Thread Ken Manheimer

I've put together an alternative, pared down approach to doing python
debugging inside emacs - pdbtrack:

  http://www.zope.org/Wikis/klm/PDBTrack

Once loaded, pdbtrack watches your (comint) process interaction
buffers for the pdb stacktrace.  When it sees it, and can find the
file containing the current stacktrace focus, it pops the file up in a
separate emacs buffer, centered on the current debug line.  This way
you continue to interact with pdb, stepping into and out of functions,
moving up and down stack frames, anything that changes focus - and
emacs displays the right place in the source in a companion buffer.

Of course, pdbtrack works just fine with the zope interactive debugger 
(reachable, for example, via:

  % cd $SOFTWARE_HOME/lib/python
  % python
   import Zope; app = Zope.app()
   Zope.debug('Zope.app().whatever', d=1)
  [debug...]

)

The big difference between pdbtrack.el and pdb.el is that you don't
need to start your debugging session in a GUD (Grand Unified Debugger)
buffer.  I often have to arrange a lot of state in the interpreter
before i can jump into debugging.  This generally defeats switching to
a GUD session, with its separate process - while pdbtrack just jumps
in whenever i go into the python debugger, within the accumulated
context. 

pdbtrack lacks a number of things that GUD does have.  It doesn't
highlight the current source line other than centering it in the
source buffer, and it doesn't provide nicities like stepping and
setting breakpoints from within the source buffer.

However, pdbtrack is much much more lightweight than gud - and it
might be interesting to see about providing some of the gud features,
like debug keybindings in the source file buffers involved in the
debug session, with this more open, decentralized model.

In the meanwhile, pdbtrack goes a long way towards doing what i want -
i hope it's useful to others.  I've submitted an entry for vaults of
parnassus, not sure how long it takes to show.  To repeat from above,
you can find it at:

  http://www.zope.org/Wikis/klm/PDBTrack

Ken Manheimer
[EMAIL PROTECTED]

___
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] Question: circumventing the full fishbowl for small changes...?

2000-07-16 Thread Jon Franz

Hello,
I've reviewed the introduction to the fishbowl process 
and its description of creating a project proposal wiki 
document and such, and the full process a project should 
take.  However, I have 2 very small but useful additions 
to Zope I wish to make.  Both additions are already available 
for download on zope.org - and have been tested extensively.  
However, the larger of the two changes is perhaps 80 lines of 
code.  It seems cumbersome, to me at least, to go through 
this whole process of "Inception, Elaboration, Construction, 
and Transition" for small code snippets which are already 
created and tested... So, my question is, could a side-line 
process be created for the integration of already existent, 
tested, and somewhat small, code changes?  My fear, which I 
have already seen come to life through use of the collector, 
is that without such a lightwieght process for occasional 
small changes - many already existent (and many future) small
 changes to Zope will be bypassed rather then integrated due 
to the time needed to go through all stages of the process.  
I don't have all the answers, and I know this isn't a common 
problem, but it is something I know I'm experiencing right 
now at this second...

Please keep in mind that I am not trying to be critical,
nor am I attempting to change the fishbowl process for normal
projects - I only wish a parallel process to exist for very
small changes, so that the changes are not forgotten or passed
up.

~  Jonathan M. Franz ~ Senior Developer/Technical Leader  ~
~ SW-Dev Division, Springdale, Ohio Office ~ 513.618.2248 ~ 
~ OneNet Communications (A USNet/MDM Company) www.one.net ~



Message: 1
From: Brian Lloyd [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED],
"'[EMAIL PROTECTED]'"
[EMAIL PROTECTED],
"'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: [Zope-dev] Announcing dev.zope.org
Date: Fri, 14 Jul 2000 16:36:28 -0400

Hello all,

For some time now, it has been a goal of ours to open up 
the Zope development process. Some of you may have heard 
me promise this at the Zope track back in January. Well, 
it took a little longer than I had hoped it would, but 
I'm happy to announce an important step in making that 
a reality: http://dev.zope.org.

dev.zope.org is the place for discovering, initiating, 
and contributing to work on the core Zope platform and 
related Zope technologies. You can think of it as the 
rough equivalent of what Mozilla.org is to Mozilla.

Why has it taken so long? Because there is much more to 
"opening the development process" than simply doling out 
CVS access. Evolving a relatively large and complex 
piece of software like Zope is a non-trivial task, and 
doing it in a highly distributed environment is harder 
still. The dev.zope.org site will provide the background 
materials and tools to ensure that work on Zope is 
consistent in organization and execution. It will also 
help those new to Zope development to come up to speed 
and get involved quickly.

There is still plenty to do be done on the site, but it 
is done enough to start using it so I want to start 
learning by doing. If you have questions or comments on 
the dev site, please send them to me at [EMAIL PROTECTED] 
and CC the zope-dev list (which is where I expect traffic 
related to dev.zope.org should go in the near term).


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.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 )




Re: [Zope-dev] Errors causing half rendered pages

2000-07-16 Thread Dieter Maurer

Chris Withers writes:
  I'm still debugging and writing the navtree code I've mentioned before
  and I've noticed that not infrequently, when rendering a page that
  causes and error, I get a half rendered page rather than a nice Zope
  error page.
  
  This is a bit waffly to put into the collector so I was wondering if
  anyone else has had similar experiences?
I saw this only when buggy HTML was generated.
When I viewed the HTML source my Netscape browser sometimes
showed me blinking parts that located the errors.


Dieter

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




Re: [Zope-dev] Errors causing half rendered pages

2000-07-16 Thread Chris Withers

Dieter Maurer wrote:
 I saw this only when buggy HTML was generated.
 When I viewed the HTML source my Netscape browser sometimes
 showed me blinking parts that located the errors.

Nope, this was with IE...

I viewed source and sure enough, it ended after a few lines.

I guess it might have something to dop with streaming HTTP output, but I
don't think Zope uses that...

Ideas anyone?

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] Making ZClasses AutoForm Generate

2000-07-16 Thread Kapil Thangavelu

I was reading over on linuxworld about some of Nick's complaints against
zope. one of them was the lack of ZClasses being able to autogenerate
forms for their property sheets. i wrote up some dtml methods which do
just that, see

 http://lists.zope.org/pipermail/zope/2000-July/029325.html

(i would have cross-posted but i was expecting a spanish inquisition:)

any DC people want to comment about folding something akin to this into
Zope's ZClass Machinery.

Cheers

Kapil

___
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] Building A MailMan Search Interface

2000-07-16 Thread Kapil Thangavelu

I've come across an itch. I'm tired of having to go through the mailing
archives to find what i need. The search interface at egroups, is a bit
slow and cumbersome. The one at ntlpd is much nicer, but i'd like to
have my own so i can point an archiver/search interface at any mailman
mailing list.

So i decided i'd like to make a generic mailman search interface in
zope. i've got a cronable retrieval script working that grabs archives.
the next step is pretty crucial and i thought i'd ask around for advice.

My question than becomes one of storage and parsing. I'm looking for
suggestions on how to do this in an efficient and speedy manner. I'm
willing to use linux/nix specific stuff if it helps performance.

options:
first question that applies to most of these approaches is whether to
store mails an individual items or in default format of the text
archive.

flat file:
this gives me a couple of parsing/searching options. like using grep or
the c regexp library or the camel library (from helix code's evolution)
any other options for this format?

downside, this introduces some minor hurdles with presentation. 

zodb - btree folder
for parsing/indexing this basically forces me to use zcatalog, which i
don't think will scale to the amount of raw text without lotsa of ram. i
could be wrong (i haven't gone through the Catalog code), but this is my
working understanding of it. 

if i store the emails as archives i could probably whip up a reasonably
speedy external method that would search through them.

one benefit will be the ease of the presentation logic. but this is
secondary to a speedy system.

rdbms (probably postgres - maybe mysql)
i'd prefer postgres since i'll probably be doing some other work with
it. but %like% is probably one of the most expensive operations you can
use on a db and its pretty limited in syntax. if i had a spare oracle
system than i'd drop it in a heartbeat and use Intertext Media jaunx for
searching. But i'd hate to tie this to a very expensive closed system.
mysql seems to excel at speed (perhaps because it was designed for it:)
but again the limitations of sql search syntax pop up. if anyone knows
of any good ways to search through text in a db i'd love to hear about
em.


right now, i'm leaning slightly towards a flat file storage, but i'd
love to hear some suggestions.

Cheers

Kapil

___
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] CalendarTag fix for Zope 2.2

2000-07-16 Thread Tres Seaver

Here is a small patch to make the lovely calendar tag play nice with
DT_Util.namespace() in Zope 2.2:

 $ diff -c lib/python/Products/Calendar/CalendarTag.py \
lib/python/Products/Calendar/CalendarTag.py.org
*** lib/python/Products/Calendar/CalendarTag.py  Sun Jul 16 21:39:27 2000
--- lib/python/Products/Calendar/CalendarTag.py.org  Sun Jul 16 21:41:40 2000
***
*** 248,254 
  __call__ = render

  def render_day_(self, md, date, firstday):
! ns = namespace(md,
  date = date,
  mode = self.mode,
  firstday = firstday,
--- 248,254 
  __call__ = render

  def render_day_(self, md, date, firstday):
! ns = namespace(self,
  date = date,
  mode = self.mode,
  firstday = firstday,

namespace() now insists that its self argument be an InstanceDict,
which caused it to barf.
 
-- 
=
Tres Seaver  [EMAIL PROTECTED]
Digital Creations   "Zope Dealers"   http://www.zope.org

___
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] 2.2 installation problem on Linux

2000-07-16 Thread Meeting Maker Webmaster

Hello,

At 19:26 15.07.2000 +, Ragnar Beer wrote:
Zope 2.2 (linux2) installs and works fine using ZServer but for
whatever reason there is no pcgi-wrapper built in the pcgi dir so
that I cannot call Zope.cgi. I checked again and again but ./install
doesn't give an error message. What am I doing wrong?

It seems they forgot to compile the PCGI wrapper... here is what you should 
do to make it work:
--
cd pcgi
sh ./configure
make
-

Worked fine for me.

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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] upgrade to 2.2 zsql authentication problem

2000-07-16 Thread Gerard Mulot

Hello,

I have also the problem with the W32 version

Work fine with Gadfly DB

Not with ZOBDCDA and sql Server

Thanks


- Original Message -
From: Brian Lloyd [EMAIL PROTECTED]
To: 'Júlio Dinis Silva' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 14, 2000 3:30 PM
Subject: RE: [Zope] upgrade to 2.2 zsql authentication problem


  I create a zsql method in 2.2b4, using the test tab the zsql
  method works
  ok. The problem is when I use a dtml method or document
  (executable objects)
  to call the zsql method with a IN statment, a not authorized
  browser box
  appears. I'm aware of the ownership changes but on my port
  I'm having this
  problems only with zsql methods so I wonder if this is only
  related with
  this product before diving into the ownership issues.

 Julio -

 I can't reproduce this here (using the Gadfly db connection
 and DTML that looks like:

 dtml-in getdata
 dtml-var item_id, dtml-var item_name, dtml-var item_desc
 br
 /dtml-in

 Can you tell me:

   o What db connection you are using

   o What the dtml of your in statement looks like

   o the permissions on the DTML method, the DB connection
 and the SQLMethod you are calling

   o and the ownership settings of each of the above?

 Thanks!


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



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



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




[Zope] Re: Re: [Zope] ZStylesheet

2000-07-16 Thread Guest User

Thanks for the encouragement George. By the way, my director uses Netscape 4 :-(

Neil

 try http://www.w3.org/StyleSheets/Core/
 
 dont give up on css yet! frankly i woudnt even worry about netscape 4.x,
 
 Regards,
 GEORGE DONNELLY
 [EMAIL PROTECTED]
 http://cyklotron.com/
 The one who tells the stories rules the world. --Hopi proverb
 
 
  Warning: This is a 'get it off my chest' e-mail.
  
  Well, I am going to give up with CSS. I am sure ZStylesheet is a fine
  product, its just that CSS implementations lets it down.
  
  I have struggled for ages to get anything more sophisticated than
  font-family* to work on both IE5 and Netscape 4.6 - no chance. It seems
  they have both implemented CSS from a different hymn sheet :-( Basically,
  nothing to do with sizes works the same, and it boils down to Netscape
  ignoring the inheritance model of CSS. table rows and cells are a
  particular mystery.
  
  If anyone has cracked it and has developed a ZStylesheet which can second
  guess both browsers, please let me know. Until then, I will go back to
  using font sizeng
  things to worry about.
  
  Regards
  
  Neil
  
  *even font-family doesn't work for the BODY selector. Tables in Netscape
  ignore it so you have to use BODY TR TD as the selector.
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 
---
WorldPilot - Get Synced - http://www.worldpilot.org
The Open Source Personal Information Manager Server
Powered by Python and 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] 2.2 installation problem on Linux

2000-07-16 Thread Joachim Schmitz

Hi,

this seams to be a bugglet in the final distribution, the pcgi_wrapper is
not build by the install script. This worked in beta 4. You can fix it by
running it manally in the pcgi-directory like:

cd pcgi
sh configure
make



On Sat, 15 Jul 2000, Ragnar Beer wrote:

 Howdy!
 
 Zope 2.2 (linux2) installs and works fine using ZServer but for 
 whatever reason there is no pcgi-wrapper built in the pcgi dir so 
 that I cannot call Zope.cgi. I checked again and again but ./install 
 doesn't give an error message. What am I doing wrong?
 
 --Ragnar
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 
 

Mit freundlichen Grüßen

Joachim Schmitz  

  
AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven  
Telefon: +49-2464-8851, FAX: +49-2464-905163


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

2000-07-16 Thread Firestar

http://www.linuxworld.com/linuxworld/lw-2000-07/lw-07-penguin_2.html

Hmm...what is your opinion on the article above? I'm interested to see the
author's comparison btwn Enhydra and Zope.

regards,
firestar


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


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




Re: [Zope] Re: Re: [Zope] ZStylesheet

2000-07-16 Thread George Donnelly

h. thats too bad. you should upgrade him to mozilla at least ... :-)

seriously tho i think (havent tried it) that the stylesheets at w3c will get
as muuch mileage out of nn4 as possible ( tho you probably knew this
already)

well hth

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
Government is the people's business and every man, woman  and child becomes
a shareholder with the first penny of tax paid. --Ronald Reagan


 Thanks for the encouragement George. By the way, my director uses Netscape 4
 :-(
 
 Neil
 
 try http://www.w3.org/StyleSheets/Core/
 
 dont give up on css yet! frankly i woudnt even worry about netscape 4.x,


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

2000-07-16 Thread George Donnelly

this is a smear and a cowardly one. one small complaint about the default
dtml methods produced when creating a zclass does not an intelligent
criticism make!

zope is not perfect  but he failed to describe any serious problems. imo


Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
The truly and deliberately evil men are a very small minority; it is the
appeaser who unleashes them on mankind; it is the appeaser`s intellectual
abdication that invites them to take over. --Ayn Rand


 http://www.linuxworld.com/linuxworld/lw-2000-07/lw-07-penguin_2.html
 
 Hmm...what is your opinion on the article above? I'm interested to see the
 author's comparison btwn Enhydra and Zope.
 
 regards,
 firestar


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

2000-07-16 Thread Gijs Reulen

Hi

I think the author is right about the interface of Zope. Take a look at what
Enhydra has to offer:
http://www.enhydra.org/software/ScreenShots.html
What the author especially is missing in Zope is something line Enhydra DODS
(Data Object Design Studio), an grafical interactive way to combine objects
and relational data. And 'coming soon' an interactive app-builder...
Zope Studio depends on Mozilla, but how long will that all take to complete
?

Besides laking a slick interface, Zope is missing the real interactivity
Enhydra can offer; Java apps on the server and on the client can communicate
directly and therefore make a lot more visually possible in terms of
administration, debugging, etc.

A solution ?

Has anyone at Digital Creations yet taken a look at Beehive's MetaPublisher
? I think that is the way to go for the short term (Studio being long term)
! Nice looking browser interface, combining data and databases, wizards,
etc.

Python and Zope has momentum NOW, but if we fail to deliver at least some of
the features other platforms have (and the number will increase; for example
with Borland Delphi comming to Linux, so will WebHUB, a webplatform for
Delphi !) new users will be disappointed and go somewhere else.
Zope deserves better then being a temporary hype :-(

 http://www.linuxworld.com/linuxworld/lw-2000-07/lw-07-penguin_2.html

 Hmm...what is your opinion on the article above? I'm interested to see the
 author's comparison btwn Enhydra and Zope.

 regards,
 firestar


 __
 FREE Personalized Email at Mail.com
 Sign up at http://www.mail.com/?sr=signup


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

2000-07-16 Thread Gijs Reulen

Hi there

I tried to install LoginManager 0.8.6 owith Zope 2.1.6 but that failed. Zope
reports:

LoginManager Import Traceback
Traceback (innermost last):
  File "C:\PROGRA~1\ZOPE_216\lib\python\OFS\Application.py", line 387, in
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "C:\Program
Files\Zope_216\lib\python\Products\LoginManager\__init__.py", line 1, in ?
import LoginManager, LoginMethods, UserSources
  File "C:\Program
Files\Zope_216\lib\python\Products\LoginManager\LoginManager.py", line 7, in
?
from Products.ZPatterns.PlugIns import PlugInGroup
ImportError: No module named ZPatterns.PlugIns

Any solutions ? Does it need Zope 2.20 ?!

Gijs Reulen


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Starting Zope v2.2.0 with daemontools etc. - problem starting!

2000-07-16 Thread Jrgen Skogstad

Hi there.. 

I've just tried to install the new Zope with daemontools .. but I seem
to get an error after I initiate zope through dameontools with "svc -u
/service/zope" .. here what it continues to output;

16:52 zope@nexus [ /usr/local/zope/Zope-2.2.0-solaris-2.6-sparc  more temp.txt 
Traceback (innermost last):
  File "/usr/local/zope/Zope-2.2.0-solaris-2.6-sparc/z2.py", line 289, in ?
here=os.path.join(os.getcwd(), os.path.split(program)[0])
OSError: [Errno 13] Permission denied

16:52 zope@nexus [ /usr/local/zope/Zope-2.2.0-solaris-2.6-sparc  

.. zope is suposed to run as uid zope .. and gid zope .. and therefore
I start it in the run script with "setuidgid zope" .. and I've
tested the run script alone = it works!

.. though when starting under daemontools it complains about the above.
stuff.. 

.. anyone seen this .. or know why?

.. need input from you other zopeaistas!

Kindest,
Jorgen Skogstad


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




Re: [Zope] 2.2 installation problem on Linux

2000-07-16 Thread Ragnar Beer

I tried, but got a segmentation fault in the ./configure step. Never 
happened to me so far. Anybody else?

--Ragnar

Hello,

At 19:26 15.07.2000 +, Ragnar Beer wrote:
Zope 2.2 (linux2) installs and works fine using ZServer but for
whatever reason there is no pcgi-wrapper built in the pcgi dir so
that I cannot call Zope.cgi. I checked again and again but ./install
doesn't give an error message. What am I doing wrong?

It seems they forgot to compile the PCGI wrapper... here is what you 
should do to make it work:
--
cd pcgi
sh ./configure
make
-

Worked fine for me.

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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] DTML Problem (from the newbie hair ripper category)

2000-07-16 Thread Darin Lee

Greetings,

I have created a custom Zclass called "Category." This object is based on
the "objectManager" template. Essentially this object is a container with a
few properties attached; "navigation_name" and "description."

Essentially, the gist of this is to create a navigation menu with a
dtml-in loop that displays all of the Category('s) in a given directory.
However, I want the property "navigation_name" to show up as the hyperlink
text. Does this make sense?

So, if I simply call the dtml-in "objectValues(['Category'])" and then
print the name with dtml-var navigation_name, everything works fine!!

Here is the proverbial rub. If I want to *test* for the presence of
"navigation_name" so I can print "title_or_id" if it's not defined, Zope
simply skips the "navigation_name" property. It's like it always evaluates
to false!

Example for "left navigation" dtml method:

dtml-in "objectValues(['Category'])"
 dtml-if "hasProperty('navigation_name')"
  dtml-var navigation_name
dtml-else
 dtml-var title_or_id
/dtml-if
/dtml-in

Okay, I think to myself "self, maybe acquisition is getting in the way," so
I try:

dtml-in "objectValues(['Category'])"
 dtml-with sequence-item
 dtml-if "hasProperty('navigation_name')"
  dtml-var navigation_name
dtml-else
 dtml-var title_or_id
/dtml-if
/dtml-with
/dtml-in

Doesn't work!

Could this have something to do with the definition of my own Zclass? Do I
have to read into the property sheet specifically? Is there a command for
that?

I took the example from the excellent "Breadcrumb Navigation Trail Howto"
and that works fine, as long as I use a supplied Zope object (like
"folder"). As soon as I use my own ZClasses, this breaks. (I'd like to get
my "navigation_name" into the breadcrumbs as well.

Thanks in advance,
-Darin Lee



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




Re: [Zope] ZStylesheet

2000-07-16 Thread Chris Withers

Neil Burnett wrote:
 Well, I am going to give up with CSS. I am sure ZStylesheet is a fine
 product, its just that CSS implementations lets it down.

I find the following page really useful:
http://webreview.com/wr/pub/guides/style/mastergrid.html

It lists exactly what does and doesn't work in CSS on all the major
browsers.

Of course Luis made a very valid point, validate your HTML first before
you worry about CSS. I find Dreamweaver 3's checks for browser
compatability quite useful here as well.

Of course, nothing beats plain checking all your pages on loads of
different browsers ;-)

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] Zope docs ??

2000-07-16 Thread jholland

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Anynoe recommend any documentation on Zope; esp. extending it with Python
methods; besides the ZOpe.org stuff?

  
John Holland
- ---

Email:   [EMAIL PROTECTED]
Web: http://jbhsoft.linuxave.net
Public key : finger -s or
 http://jbhsoft.linuxave.net/pubkey.html


-BEGIN PGP SIGNATURE-
Version: PGP 6.5.2

iQA/AwUBOXH6QRPWCCE2yAKHEQKt2gCfTznCOJZJieQ1RaGjyhgcHQWUQI0AnAsL
2RmxS71Q3JoPrFs9tNreX+Da
=glHf
-END PGP SIGNATURE-


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




[Zope] Re: Zope 2.2.0 Startup

2000-07-16 Thread Chris Withers

Indra Gunawan wrote:
 I've just install Zope 2.2.0 from 2.1.6 but when I run the start.bat it
 seems the startup process took a very2 long time compared to the usual, is
 it normal?

I don't know...

Maybe the patch to the port checking algorithm never made it into the
2.2 code:
http://classic.zope.org:8080/Collector/1260/view

Anyway, this sort of question is probably better asked to the
[EMAIL PROTECTED] mailing list...

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] PIL on Win32 for the Photo Product

2000-07-16 Thread Alexander Limi

Hi,

I need PIL in my Zope install to get the Photo product working. I downloaded
the win32 version of PIL from http://starship.python.net/crew/da/PIL/ and
tried unpacking it in the bin\python dir of my Zope install. Photo reports
the following:

Traceback (innermost last):
  File "C:\PROGRA~1\Zope\lib\python\OFS\Application.py", line 387, in
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "C:\Program Files\Zope\lib\python\Products\Photo\__init__.py", line
42, in ?
import Photo
  File "C:\Program Files\Zope\lib\python\Products\Photo\Photo.py", line 87,
in ?
from PIL.Imageimport BICUBIC, BILINEAR, NEAREST
ImportError: No module named PIL.Image

The web pages say something about a pil.pth file, I can't find that anywhere
in the archive either.

Can anybody give me some hints on what to do?


Alexander.


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




[Zope] Re: PIL on Win32 for the Photo Product

2000-07-16 Thread Alexander Limi

 The web pages say something about a pil.pth file, I can't find that
anywhere
 in the archive either.

Should of course have checked the Photo tarball for this... Got it working
two minutes after the mail was sent.

Sorry :)

Alexander.



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

2000-07-16 Thread Erik Myllymaki

The following code works well from the command line, but produces the
following error when run from zope as an external method:

Error Type: AttributeError
Error Value: odbc

---
def testit():
 import dbi, odbc
 s = odbc.odbc('zopeSQL/zserver/***')
 cur = s.cursor()
cur.execute('select * from DBF_Import..purchdoc')
print cur.description
for tup in cur.description:
print tup[0],
print
while 1:
rec = cur.fetchmany(10)
if not rec: break
print rec
---

Any help greatly appreciated.


Erik Myllymaki
[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] Off Topic... ;-)

2000-07-16 Thread Chris Withers

I saw this in someone's sig. and thought of Zope:

 "The more I learn, the more I realize I don't know,
 and the more I realize I don't know, the more I want to learn."
 --Einstein

;-)

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 Knowledge Base on www.faqts.com?

2000-07-16 Thread Dieter Maurer

Fiona Czuczman writes:
  Hi,
  
  I've been working on a Python knowledge base for the last couple of
  months.
  
  http://python.faqts.com
Very good!

  Recently I've been thinking about incorporating content from this
  mailing list in a folder dedicated to Zope.  And sending out my daily
  summary to this list as well.
Would be great.

However, I would prefer a longer posting period, maybe a weekly
summary.



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] MetaPublisher DB - was linuxworld article

2000-07-16 Thread Mark Pratt

hi,

Gijs Reulen wrote:

 Has anyone at Digital Creations yet taken a look at 
 Beehive's MetaPublisher ? I think that is the way to go 
 for the short term (Studio being long term) ! Nice 
 looking browser interface, combining data and
 databases, wizards, etc.

before people get confused when gijs is referring to 
"databases" in the above statement he`s referring to a 
MetaPublisher version which he and a few other brave members 
of the MetaPublisher mailinglist are currently testing. 
this version gives users a choice whether to store data in 
the ZODB or in an external relational DB. this version will
come with a few other goodies --- but we prefer to keep some 
things a surprise.

regards,

mark

--
mark pratt  (managing director) [EMAIL PROTECTED]
beehive elektronische medien GmbH   http://www.beehive.de
phone: +49 30 847-82 0  fax: +49 30 847-82 299


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

2000-07-16 Thread Neil Burnett

Chris

Thanks for that. I know and use their (much shorter) safe list:

http://webreview.com/wr/pub/guides/style/safegrid.html

I do use styles to get rid of font face color from throughout my pages
although I try and use small and big for font sizes. Anything more
sophisticated than that seems to cause all sorts of problems. (View
http://neil.efc.be:8080/test/test.html in more than one browser for a
couple of simple examples of oddities.)

Thanks to all for the tip on broken html - syntax errors can always mislead.

I guess I'll just have to cope with the real world :-)

Regards

Neil
At 19:56 16/07/2000 +0100, Chris Withers wrote:
Neil Burnett wrote:
 Well, I am going to give up with CSS. I am sure ZStylesheet is a fine
 product, its just that CSS implementations lets it down.

I find the following page really useful:
http://webreview.com/wr/pub/guides/style/mastergrid.html

It lists exactly what does and doesn't work in CSS on all the major
browsers.

Of course Luis made a very valid point, validate your HTML first before
you worry about CSS. I find Dreamweaver 3's checks for browser
compatability quite useful here as well.

Of course, nothing beats plain checking all your pages on loads of
different browsers ;-)

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] MetaPublisher DB - was linuxworld article

2000-07-16 Thread Chris Withers

Mark Pratt wrote:
  Sorry if that's a dumb question ;-)
 
 no, it`s not a dumb question. MetaPublisher is open source.

Written in Zope?

Where can I find out more?

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] MetaPublisher DB - was linuxworld article

2000-07-16 Thread George Donnelly

 this version will come with a few other goodies --- but we prefer to keep some
 things a surprise.

might i hope that one of these goodies will be an improvement in the way
metapublisher interacts with zcatalogs?

see my post in june to the mp list below:


i have several MP instances in subfolders and need to present the most
recent mp entries from any/all of the these MP instances on my index_html
page in the zope root.

when i add a Z search interface in the zope root it only offers me the
Catalog in the zope root as a searchable object and does not seem to be
aware of any mp_catalog's.

alternatively i could find all meta entry's to the Catalog in the zope root
but the meta entry meta type does not show up in the selection list. how
could i find the meta entrys without finding all objects? can anybody
recommend an expression? i tried something like meta type==meta entry but
this was a no go -- it returned ALL objects

the only way i could do it is by adding each individual mp entry's id into
the find to catalog mechanism. for a site with any traffic this could be a
major bummer!

then the next problem was that when i used the getpath directive to get a
url for the records returned by the Catalog i got a url like this
mpfolder/mp_entries/9995757.435 which plays all kinds of havoc with my
carefully crafted directory structure ;-|

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
Destiny is not a matter of chance, it is a matter of choice. It is not a
thing to be waited for, it is a thing to be achieved. --William J Bryan



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

2000-07-16 Thread peter be

Well Gijs, you've got some points right in what you're saying BUT...
If you know some HTML and Stylesheets why don't you revamp the interface yourself. I 
have.
Look for dtml files in your Zope root. When you open them you'll see that it's good 
old HTML.

I, for example, have a small monitor and not much space for long lists of objects, so 
I changed that in one single line of HTML. Neither did I like the boring white 
background. 
Change: body to body bgcolor="color"

I used to think that Linux was ugly and Windows was nicer. Then I realized that if I 
spend a couple of mins on customizing Enlightment or KDE, I can have it exaclty the 
way I want it. Even better than Windows!

Isn't Open Source software cute?

- Original Message - 
From: Gijs Reulen [EMAIL PROTECTED]
To: Mailinglist Zope [EMAIL PROTECTED]
Sent: Sunday, July 16, 2000 2:27 PM
Subject: RE: [Zope] linuxworld article


 Hi
 
 I think the author is right about the interface of Zope. Take a look at what
 Enhydra has to offer:
 http://www.enhydra.org/software/ScreenShots.html
 What the author especially is missing in Zope is something line Enhydra DODS
 (Data Object Design Studio), an grafical interactive way to combine objects
 and relational data. And 'coming soon' an interactive app-builder...
 Zope Studio depends on Mozilla, but how long will that all take to complete
 ?
 
 Besides laking a slick interface, Zope is missing the real interactivity
 Enhydra can offer; Java apps on the server and on the client can communicate
 directly and therefore make a lot more visually possible in terms of
 administration, debugging, etc.
 
 A solution ?
 
 Has anyone at Digital Creations yet taken a look at Beehive's MetaPublisher
 ? I think that is the way to go for the short term (Studio being long term)
 ! Nice looking browser interface, combining data and databases, wizards,
 etc.
 
 Python and Zope has momentum NOW, but if we fail to deliver at least some of
 the features other platforms have (and the number will increase; for example
 with Borland Delphi comming to Linux, so will WebHUB, a webplatform for
 Delphi !) new users will be disappointed and go somewhere else.
 Zope deserves better then being a temporary hype :-(
 
  http://www.linuxworld.com/linuxworld/lw-2000-07/lw-07-penguin_2.html
 
  Hmm...what is your opinion on the article above? I'm interested to see the
  author's comparison btwn Enhydra and Zope.
 
  regards,
  firestar
 
 
  __
  FREE Personalized Email at Mail.com
  Sign up at http://www.mail.com/?sr=signup
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   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] ZStylesheet

2000-07-16 Thread Loren Stafford

I found the series of articles on CSS compatibility at www.webreview.com
helpful in sorting out the incompatibilities and finding a middle ground
that would work.

-- Loren

- Original Message -
From: "Neil Burnett" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: July 15, 2000 12:40 PM
Subject: [Zope] ZStylesheet


 Warning: This is a 'get it off my chest' e-mail.

 Well, I am going to give up with CSS. I am sure ZStylesheet is a fine
 product, its just that CSS implementations lets it down.

 I have struggled for ages to get anything more sophisticated than
 font-family* to work on both IE5 and Netscape 4.6 - no chance. It seems
 they have both implemented CSS from a different hymn sheet :-( Basically,
 nothing to do with sizes works the same, and it boils down to Netscape
 ignoring the inheritance model of CSS. table rows and cells are a
 particular mystery.

 If anyone has cracked it and has developed a ZStylesheet which can second
 guess both browsers, please let me know. Until then, I will go back to
 using font size="12pt" or whatever. Shame, but I have more interesting
 things to worry about.

 Regards

 Neil

 *even font-family doesn't work for the BODY selector. Tables in Netscape
 ignore it so you have to use BODY TR TD as the selector.

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




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




[Zope] Re: [Zope-dev] CalendarTag fix for Zope 2.2

2000-07-16 Thread Darrell Gallion

Speaking of the calendar tag, which I'm very grateful for.
I noticed that changing the mode setting in one browser was seen in all
others.

calendar.py
line ~323:
def render(self, md):
self.mode = 'month'

Forcing the mode to month seems to work. The view will be month unless the
url contains a mode.

Also changed it to give me access to the td tags of each day.
dtml-calendar
dtml-call "setCalendar('valign','top')"
dtml-let d="date.timeTime()"
td bgcolor="da"
  a href="db/view/editDayDTML?day=dtml-var d"
  dtml-var "date.dd()"
  /a
br
/td
/dtml-let
/dtml-calendar

The td bgcolor=  will be replaced with DTML.
Plan to use color coding to represent how full a days events are.

Well this was Web/DB/Zope project #1, and it was fun.

--Darrell


From: "Tres Seaver" [EMAIL PROTECTED]
 Here is a small patch to make the lovely calendar tag play nice with
 DT_Util.namespace() in Zope 2.2:




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




[Zope] ZCatalog

2000-07-16 Thread Jonathan Desp

if you know the answer just email me at [EMAIL PROTECTED] (my site
is almost ready at www.atomasoft.com , there are 2 pages to write + the
search engine to fix, is it possible for zope to use -
http://www.htdig.org/  ?)

I'd like to know something:

In the article here:

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

they are talking about this:

In the source of report, find the following line::

tr!--#var title--/tr


Replace it with this::

tr
 a href="!--#var "catalog.getpath(data_record_id_)"--"
  !--#var title--
 /a
/tr



What can happen when I don't have this "tr!--#var title--/tr" ? In my
management view at "report"

Also, where I can edit "getpath", where is this file ?


"Fortunately, ZCatalog provides a utility function for going from result
objects to the object's path. It is called, aptly enough, getpath. getpath
expects to be passed the unique integer identifier of the cataloged object.
Results store that id as data_record_id_."

Commit this change, and perform another search. Now the title can be clicked
on to take you to the full page.

"I cannot commit this change because I don't find "tr!--#var
title--/tr"  first of all, secondly I cannot find "getpath", and I don't
know what to do inside the file "getpath", what  I need to edit etc..



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

2000-07-16 Thread Kapil Thangavelu

I played around with some auto-form generating ZClasses a couple months
ago. Just thought i should share since it seems to be something people
want, and i saw it used as a feature-lack against zope on linuxworld.
basically it just spits out an html page where you pick a property sheet
and then it spits up an edit form for that sheet. i use em for quick
testing of a zclass and as a template(ala view source) for more
customized forms.

i generally use it a base zclass on a project and just make my other
zclasses inherit from it. to view the forms after you've created the
methods (in your the Products folder of your ZClass) just go to
http://YourZopeSite.zope/YouObject/edit_properties


this stuff will be on my members page, soon:)
http://www.zope.org/Members/k_vertigo

standard_disclaimer -ie it works for me. use at your own risk.

raw dtml - sorry i'm sure the formatting blows

edit_properties :: dtml_method

dtml-var standard_html_header
centerbPlease Pick A Property Category/b/center
table align="center"
form action="edit_propertyCategory" method="POST"
trtd
SELECT name="PropertyCategory"
dtml-in "propertysheets.items()"
OPTION value="dtml-var sequence-key"dtml-var
sequence-key/OPTION
/dtml-in
/SELECT
/tr/td
trtdINPUT TYPE="SUBMIT" value="Edit Properties"/td/tr
/form
/table
dtml-var standard_html_footer

edit_propertyCategory :: dtml_method

dtml-var standard_html_header


dtml-if "REQUEST.has_key('PropertyCategory')"

dtml-in "propertysheets.items()"
dtml-let y=sequence-key

dtml-if "REQUEST.PropertyCategory==y"
dtml-let x=sequence-item

table border="1" align="center" cellspacing="0" cellpadding="4"
trth colspan="2" align="center"Edit dtml-var y
Properties/th/tr

form action="edit_propertiesChange" method="POST"
dtml-in "x.propertyItems()"
trtd
dtml-var sequence-key
/tdtd
input type="text" name="dtml-var sequence-key" value="dtml-var
sequence-item"
/td/tr
/dtml-in

trtd colspan="2" align="center"input type="SUBMIT" value="Change
Properties"/td/tr
input type=hidden name="PropertyCategory" value="dtml-var
PropertyCategory"
/form
/table
/dtml-let
/dtml-if

/dtml-let
/dtml-in

dtml-else
You have reached this page in error
/dtml-if

dtml-var standard_html_footer


edit_propertiesChange :: dtml_method

dtml-var standard_html_header

dtml-if "REQUEST.has_key('PropertyCategory')"

dtml-in "propertysheets.items()"
dtml-let y=sequence-key

dtml-if "REQUEST.PropertyCategory==y"
dtml-let x=sequence-item
dtml-call "x.manage_changeProperties(REQUEST)"
dtml-var PropertyCategory Properties Changedbr
a href="dtml-var URL1"Back To Object/abr
a href="dtml-var URL2"Back To Container/a
/dtml-let
/dtml-if

/dtml-let
/dtml-in

dtml-else
You have reached this page in error
/dtml-if

dtml-var standard_html_footer


Cheers

Kapil
http://lostworld.imeme.net

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




Re: [Zope] ZCatalog

2000-07-16 Thread Chris McDonough

Jonathan Desp wrote:
 
 if you know the answer just email me at [EMAIL PROTECTED] (my site
 is almost ready at www.atomasoft.com , there are 2 pages to write + the
 search engine to fix, is it possible for zope to use -
 http://www.htdig.org/  ?)

I don't think HTDig can index Zope content because Zope content isn't
available via the filesystem.

 
 I'd like to know something:
 
 In the article here:
 
  http://www.zope.org/Documentation/How-To/ZCatalogTutorial
 
 they are talking about this:
 
 In the source of report, find the following line::
 
 tr!--#var title--/tr
 
 Replace it with this::
 
 tr
  a href="!--#var "catalog.getpath(data_record_id_)"--"
   !--#var title--
  /a
 /tr
 
 
 
 What can happen when I don't have this "tr!--#var title--/tr" ? In my
 management view at "report"

The tutorial still uses the old DTML "SSI-style" syntax.  This syntax
has been replaced with another that would make this line look like:

dtml-var title

You would replace it with:

a href="dtml-var "catalog.getpath(data_record_id_)""
dtml-var title

 Also, where I can edit "getpath", where is this file ?

It's not a file.  It's a method of the catalog object.  In Python.  You
don't need to edit it. 

 
 "Fortunately, ZCatalog provides a utility function for going from result
 objects to the object's path. It is called, aptly enough, getpath. getpath
 expects to be passed the unique integer identifier of the cataloged object.
 Results store that id as data_record_id_."
 
 Commit this change, and perform another search. Now the title can be clicked
 on to take you to the full page.
 
 "I cannot commit this change because I don't find "tr!--#var
 title--/tr"  first of all, secondly I cannot find "getpath", and I don't
 know what to do inside the file "getpath", what  I need to edit etc..
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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] ZCatalog

2000-07-16 Thread Chris McDonough

Jonathan Desp wrote:
 
 Hi Chris,
 
 thanks alot for your help,
 
 You said:
 
  dtml-var title
 
  You would replace it with:
 
  a href="dtml-var "catalog.getpath(data_record_id_)""
  dtml-var title
 
 But there is no dtml-var title
 
 I think it's the right file "Report" though, he said:
 
 "To fix this, go to the management view of report. report is called by
 search to display the results from catalog. "
 
 do you know what I should change if dtml-var title is  not there ?

You've got the right method.  Replace

dtml-var raw

with

a href="dtml-var "catalog.getpath(data_record_id_)""dtml-var
title/a

The tutorial is getting a little long in the tooth.

 here is my source for the "Report" file:
 
 _
 
 dtml-var standard_html_header
 dtml-in s size=50 start=query_start
dtml-if sequence-start
 
   dtml-if previous-sequence
 
 a href="dtml-var URLdtml-var sequence-query
  query_start=dtml-var
  previous-sequence-start-number"
 (Previous dtml-var previous-sequence-size results)
 /a
 
   /dtml-if previous-sequence
 
   table border
 tr
   thRaw/th
 /tr
 
/dtml-if sequence-start
 
 tr
   tddtml-var raw/td
 /tr
 
dtml-if sequence-end
 
   /table
   dtml-if next-sequence
 
  a href="dtml-var URLdtml-var sequence-query
 query_start=dtml-var
 next-sequence-start-number"
  (Next dtml-var next-sequence-size results)
  /a
 
   /dtml-if next-sequence
/dtml-if sequence-end
 
 dtml-else
 
   There was no data matching this dtml-var title_or_id query.
 
 /dtml-in
 
 dtml-var standard_html_footer


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

2000-07-16 Thread Tres Seaver

Here is a small patch to make the lovely calendar tag play nice with
DT_Util.namespace() in Zope 2.2:

 $ diff -c lib/python/Products/Calendar/CalendarTag.py \
lib/python/Products/Calendar/CalendarTag.py.org
*** lib/python/Products/Calendar/CalendarTag.py  Sun Jul 16 21:39:27 2000
--- lib/python/Products/Calendar/CalendarTag.py.org  Sun Jul 16 21:41:40 2000
***
*** 248,254 
  __call__ = render

  def render_day_(self, md, date, firstday):
! ns = namespace(md,
  date = date,
  mode = self.mode,
  firstday = firstday,
--- 248,254 
  __call__ = render

  def render_day_(self, md, date, firstday):
! ns = namespace(self,
  date = date,
  mode = self.mode,
  firstday = firstday,

namespace() now insists that its self argument be an InstanceDict,
which caused it to barf.
 
-- 
=
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 )