[Zope-dev] PlugIns: new .dtml files for 2.3 CVS

2001-02-06 Thread Steve Alexander

The Zope 2.3 CVS has had the file main.dtml updated to fix problems with 
objects that don't do "get_size" properly (collector #1900).

I've updated the following files from PlugIns accordingly.

   lib/python/Products/PlugIns/www/PlugInGroup.dtml
   lib/python/Products/PlugIns/www/main.dtml

You can find copies here:

   http://www.cat-box.net/steve/PlugInGroup.dtml
   http://www.cat-box.net/steve/main.dtml

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


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



Re: [Zope-dev] The field converters (:int, :text, etc.)

2001-02-06 Thread ender

my alpha quality dtml-contract tag does allows custom field converters much 
as has been requested here, its meant as a generic form processing engine 
with the ability to define per variable error pages. its got some other 
features. its modeled on the arsdigita (acs) ad_page_contract.

due to my stupidity you have to add a custom filter directly to the filter 
dictionary defined in Filters.py.

fyi for the license impaired its gpl'd

available at www.zope.org/Members/k_vertigo/PageContract.tgz

kapil



  On 4 Feb 2001, at 15:59, Morten W. Petersen wrote:
   IIRC, there was some talk about modularizing the field
   converters (checkers) so that they could be easiliy modified
   and added to.  Is there currently any efforts to solving
   this problem?  If not, there's definently a need for it,
   IMO..
 
  I agree. Each time I get a Zope update I have to edit Converters.py
 
  What I want is something like :empty_as_none
 
  So a float, int or date field will be passed as None if the fields are

 blank,

  rather than having the converter raising an exception.
 
  ignore_empty doesn't work, because then the field isn't passed in the
  Record at all.
 
  I use SQLDict as the backend for all my forms (wow, it's great), so None
  really is needed for every field if its blank. If I have ignore_empty,

 then that

  field doesn't get updated in the database, so if someone wants to blank
  out a field, they can't do it.
 
 
 
  Brad Clements,[EMAIL PROTECTED]   (315)268-1000
  http://www.murkworks.com  (315)268-9812 Fax
  netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements
 
  ___
  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 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 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 and java

2001-02-06 Thread Mike Blake
Title: zope and java





Hi all,


We're considering zope as a front-end publishing and web-app development solution 
for a project which has already developed a complex underlying layer of servlets for 
secure client/server transactions against their host.


Since we haven't been able to find any add-on products for zope providing an interface
to java environments, we thought we'd ask:


Can zope work wtih Java yet? If so, please point us in the right direction.


Thanks,
Mike Blake



--
[[EMAIL PROTECTED] chikoon]$ whoami

[whoami]  Mike Blake  Web Developer / CellNetwork, Spain
[e-mail]  [EMAIL PROTECTED] [icq]  103631268
[mobile]  678 642 392 [direct office phone]  91 761 4913
[office]  Plaza Alonso Martinez 3, 4ยช Planta, 28004 Madrid






[Zope-dev] zope and java

2001-02-06 Thread Spicklemire, Jerry

Mike asked:

 Can zope work with Java yet? If so, please point us in the right
direction.

Phil responded:

 I'll recap.  There is a piece of software under development called JPE.
 This is supposedly going to be or even is a Jave-Python gateway in effect.

 It should allow you to use Java classes in Python and Vice-versa.

FYI, more details here:

 http://www.arakne.com/jpe.htm

The actual interface seems to be based on JNI, which should be
cross-platform, 
at least that's the intention.

Discalimer: After you hit the link above you will know as much as I do.

Later,
Jerry S.


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



Re: [Zope-dev] ZPatterns for Zope 2.3 convenience release

2001-02-06 Thread Itai Tavor

Steve Alexander wrote:

Itai Tavor wrote:

Steve,

This release breaks access to the management screens of ZClasses 
stored on Racks.

In Zpatterns-0.4.2a3, Specialist/item_id/manage returns the ZClass 
management screen. In your release it returns the Specialist 
Methods screen.

Thanks. I'll look into this.

As a workaround, you can use Specialist/item_id/manage_workspace instead.

Yeah, that works. Thanks.


What version of Zope have you seen the desired 
Specialist/item_id/manage behaviour with?

2.3, release version. item_id/manage gets redirected to 
item_id/manage_main which shows the ZClass management screen.

BTW, this might be a good time to mention a related problem in the 
stock ZPatterns - even there item_id/manage doesn't work as expected 
- it brings up the ZClass management tabs with the first one 
selected, but the page content is actually an empty Methods screen. 
So a click on the first tab is required to actually get to the ZClass 
info. item_id/manage_workspace gets around that. Perhaps you can 
investigate this while you're looking at the other problem?


This looks to me more like something in Zope has changed, (probably to
do with how __bobo_traverse__ works) as I don't think any of my changes
to ZPatterns would cause the change you're reporting.

It must be related to something you changed in your release because 
the behavior changes when I switch between the original ZPatterns and 
your release, on the same Zope.


I'm definitely seeing what you describe on Zope 2.3 from CVS, with the
ZPatterns convenience release.

To check this, I'll try an unpatched ZPatterns-0.4.3b2 with Zope 
2.3, and see if I can reproduce the bug with that.

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

--
Itai Tavor  -- "Je sautille, donc je suis."--
[EMAIL PROTECTED]--   - Kermit the Frog --
-- --
-- "Every day, once a day, give yourself a present"  - Dale Cooper --


___
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] zope and java

2001-02-06 Thread Chris McDonough

zope and javaHi Mike,

If it fits your situation, it might be worth your while to check out XML-RPC
(http://www.xmlrpc.org) to get a Java application talking to Zope at a
protocol level. On customer projects, we have successfully used XML-RPC as a
Java-Zope bridge, and Zope can (quite effectively) act as an XML-RPC server,
while Python has good XML-RPC client support.

- Original Message -
From: Mike Blake
To: '[EMAIL PROTECTED]'
Sent: Tuesday, February 06, 2001 11:16 AM
Subject: [Zope-dev] zope and java


Hi all,
We're considering zope as a front-end publishing and web-app development
solution
for a project which has already developed a complex underlying layer of
servlets for
secure client/server transactions against their "host".
Since we haven't been able to find any add-on products for zope providing an
interface
to java environments, we thought we'd ask:
Can zope work wtih Java yet? If so, please point us in the right direction.
Thanks,
Mike Blake


--
[[EMAIL PROTECTED] chikoon]$ whoami

[whoami]  Mike Blake  Web Developer / CellNetwork, Spain
[e-mail]  [EMAIL PROTECTED][icq]  103631268
[mobile]  678 642 392 [direct office phone]  91 761 4913
[office]  Plaza Alonso Martinez 3, 4 Planta, 28004 Madrid



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



Re: [Zope-dev] Re: FTP PUT'ing images doesn't create Image objects? (it does)

2001-02-06 Thread Joachim Werner

Zope 2.3 and creating the correct object types (has been discussed 
earlier, I think):

There is a bug with this that only becomes visible with some FTP clients 
like the KDE2 Konqueror: If the clients do partial uploads and renaming 
(which finally works), the type is not recognized correctly. This 
applies for images, but also DTML Documents. If someone has the time to 
doublecheck with Konqueror and put it into the collector, I'd be 
grateful ...

Joachim


___
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] SearchIndex / Lexicon bug

2001-02-06 Thread richard

I just submitted a bug report to the collector, and didn't supply a patch.
I really should have, and here it is.

*** /tmp/Lexicon.py Wed Feb  7 17:09:20 2001
--- lib/python/SearchIndex/Lexicon.py   Wed Feb  7 17:09:32 2001
***
*** 158,164 
  
  def get(self, key, default=None):
  """Return the matched word against the key."""
! return [self._lexicon.getWordId(key, default)]
  
  
  def __getitem__(self, key):
--- 158,164 
  
  def get(self, key, default=None):
  """Return the matched word against the key."""
! return [self._lexicon.get(key, default)]
  
  
  def __getitem__(self, key):


I won't supply a patch for the other bug reported - ZCatalog/Catalog.py
being to munchy with the exceptions - because I'm not entirely sure what
the original purpose of the try/except clause is. As I mentioned in the bug
report, I'm pretty sure it wasn't supposed to catch AttributeErrors. It's
no longer in our code at all, and I'll let you know if that causes
problems...


Richard

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

___
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] Umlaut in ZCatalog as break character

2001-02-06 Thread Arno Gross

I'm trying to index german news items with 
ZCatalog. But ZCatalog seems to take german Umlaute 
as separator characters. 
Any pointers or switches?
Thanks
   Arno, [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 )