Re: [Zope-CMF] Internationlisation question

2007-02-09 Thread Charlie Clark


Am 08.01.2007 um 16:59 schrieb Doyon, Jean-Francois:

Zope 3 provides all sorts of localization functionality, including  
numbers, currency and calendaring.


Look in zope.i18n.locales ...


Yes, I can see what's there but I do not seem to be able to call it  
from a page template. If I try the following example from


http://wiki.zope.org/zope3/ZPTInternationalizationExamples

  
Based on what the id specifies, the date time object is returned in
typical German format: Montag, 1. Januar 2001 (example)
  

I get the the error message

Module TAL.TALInterpreter, line 238, in __call__
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 749, in do_useMacro
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 780, in do_defineSlot
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 772, in do_defineSlot
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 457, in do_optTag_tal
Module TAL.TALInterpreter, line 442, in do_optTag
Module TAL.TALInterpreter, line 437, in no_tag
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 633, in do_insertTranslation
Module TAL.TALInterpreter, line 696, in translate
TypeError: iteration over non-sequence

The only thing I can think of is a missing message id "longDateTime"  
which would have the translation format information. Or am I way off  
the mark?


Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Re: Tools as local utilities

2007-02-09 Thread Philipp von Weitershausen

Jens Vagelpohl wrote:

On 9 Feb 2007, at 11:03, yuppie wrote:
Taking this into account, how should the five.localsitemanager thing 
be packaged?


Maybe we can use the same pattern as TextIndexNG3: The Python package 
is shipped in a 'src' subdirectory of the product. The product's 
__init__ adds 'src' to the sys.path. The code could check if 
five.localsitemanager already exists (e.g. in a Plone distribution) 
and modify sys.path only if necessary.


This is a hack, but maybe good enough as a temporary solution for CMF 
2.1.


That's certainly good enough for me.


I was about to suggest that: create a "pure" five.localsitemanager 
package for the "package zealots" and make a product that simply puts it 
on sys.path.


I don't think resorting to relative imports is an option. I personally 
think Python 2's import semantics are pretty much fubared and I can only 
recommend to always use absolute imports.


Also, whatever we create now will have to live under Seaver's law 
(Persistence means having to say I'm sorry) because 
five.localsitemanager will obviously have persitent objects (the 
LocalSiteManager implementation, which is a subclass of 
PersistentComponents).


Anyway, yay on the consensus for CMF 2.1!


--
http://worldcookery.com -- Professional Zope documentation and training
Next Zope 3 training at Camp5: http://trizpug.org/boot-camp/camp5

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] CMF Tests: 9 OK

2007-02-09 Thread CMF Tests Summarizer
Summary of messages to the cmf-tests list.
Period Thu Feb  8 12:00:00 2007 UTC to Fri Feb  9 12:00:00 2007 UTC.
There were 9 messages: 9 from CMF Unit Tests.


Tests passed OK
---

Subject: OK : CMF-1.5 Zope-2.7 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Thu Feb  8 21:39:47 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-February/004028.html

Subject: OK : CMF-1.5 Zope-2.8 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Thu Feb  8 21:41:17 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-February/004029.html

Subject: OK : CMF-1.5 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  8 21:42:47 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-February/004030.html

Subject: OK : CMF-1.6 Zope-2.8 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Thu Feb  8 21:44:17 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-February/004031.html

Subject: OK : CMF-1.6 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  8 21:45:47 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-February/004032.html

Subject: OK : CMF-2.0 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  8 21:47:17 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-February/004033.html

Subject: OK : CMF-2.0 Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  8 21:48:48 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-February/004034.html

Subject: OK : CMF-trunk Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  8 21:50:18 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-February/004035.html

Subject: OK : CMF-trunk Zope-trunk Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Feb  8 21:51:48 EST 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-February/004036.html

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Re: Tools as local utilities

2007-02-09 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 9 Feb 2007, at 11:03, yuppie wrote:
Taking this into account, how should the five.localsitemanager  
thing be packaged?


Maybe we can use the same pattern as TextIndexNG3: The Python  
package is shipped in a 'src' subdirectory of the product. The  
product's __init__ adds 'src' to the sys.path. The code could check  
if five.localsitemanager already exists (e.g. in a Plone  
distribution) and modify sys.path only if necessary.


This is a hack, but maybe good enough as a temporary solution for  
CMF 2.1.


That's certainly good enough for me.

jens



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFzEj1RAx5nvEhZLIRAkBlAKCfKlATCPmles60ihE3XAhDYWxd0QCfe8G8
tPqM6K8fjpnx7XVCMbP2aik=
=kmtO
-END PGP SIGNATURE-
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Re: Tools as local utilities

2007-02-09 Thread yuppie

Hi Jens!


Jens Vagelpohl wrote:
Let's get this discussion back from generic pie-in-the-sky to the simple 
situation where we just need this one package integrated into CMF 2.1, 
and quickly.


Wichert wants a Plone 3 beta very very soon, there is no time to switch 
the CMF to any other packaging/buildout mechanism before that. What 
happens on the trunk after the 2.1 branch is cut, I don't care. I do 
care about getting the 2.1 beta out quickly. All that's missing is 
merging the tool/utility stuff, which depends on having this new 
component registry.


Taking this into account, how should the five.localsitemanager thing be 
packaged?


five.localsitemanager will not be a CMF package and I doubt we can or 
should convince the Five and Plone people to create a product instead. 
So the canonical import will be from the Python path, not the Products path.


I don't think it would be a good idea to use different imports in CMF, 
particularly because we might change things after 2.1 and site managers 
are persistent objects.


Maybe we can use the same pattern as TextIndexNG3: The Python package is 
shipped in a 'src' subdirectory of the product. The product's __init__ 
adds 'src' to the sys.path. The code could check if 
five.localsitemanager already exists (e.g. in a Plone distribution) and 
modify sys.path only if necessary.


This is a hack, but maybe good enough as a temporary solution for CMF 2.1.


Cheers,

Yuppie


___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] CMF Collector: Open Issues

2007-02-09 Thread tseaver
The following supporters have open issues assigned to them in this collector
(http://www.zope.org/Collectors/CMF).

Assigned and Open


  mhammond

- "Windows DevelopmentMode penalty in CMFCore.DirectoryView",
  [Accepted] http://www.zope.org/Collectors/CMF/366


Pending / Deferred Issues

- "FSPropertiesObject.py cannot handle multiline input for lines, text 
attributes",
  [Deferred] http://www.zope.org/Collectors/CMF/271

- "Can't invalidate skin items in a RAMCacheManager",
  [Pending] http://www.zope.org/Collectors/CMF/343

- "workflow notify success should be after reindex",
  [Deferred] http://www.zope.org/Collectors/CMF/389

- "Possible bug when using a BTreeFolder Member folder",
  [Pending] http://www.zope.org/Collectors/CMF/441

- "Proxy Roles not Working/Applied to Worflow Transition Scripts",
  [Pending] http://www.zope.org/Collectors/CMF/449

- "safe_html filters some tags which should probably not be filtered",
  [Pending] http://www.zope.org/Collectors/CMF/452

- "purge_old in runAllImportSteps not working",
  [Pending] http://www.zope.org/Collectors/CMF/455

- "Danger from Caching Policy Manager",
  [Pending] http://www.zope.org/Collectors/CMF/460


Pending / Deferred Features

- "Favorite.py: queries and anchors in remote_url",
  [Pending] http://www.zope.org/Collectors/CMF/26

- "DefaultDublinCore should have Creator property",
  [Pending] http://www.zope.org/Collectors/CMF/61

- "Document.py: universal newlines",
  [Pending] http://www.zope.org/Collectors/CMF/174

- "portal_type is undefined in initialization code",
  [Pending] http://www.zope.org/Collectors/CMF/248

- "CMFTopic Does Not Cache",
  [Deferred] http://www.zope.org/Collectors/CMF/295

- "Wishlist: a flag that tags the selected action.",
  [Pending] http://www.zope.org/Collectors/CMF/301

- "CMFDefault should make use of allowCreate()",
  [Pending] http://www.zope.org/Collectors/CMF/340

- "Nested Skins",
  [Deferred] http://www.zope.org/Collectors/CMF/377

- "CatalogVariableProvider code + tests",
  [Pending] http://www.zope.org/Collectors/CMF/378

- "manage_doCustomize() : minor additions",
  [Pending] http://www.zope.org/Collectors/CMF/382

- "CMF needs View-based TypeInformation",
  [Pending] http://www.zope.org/Collectors/CMF/437

- "Marker attributes should be deprecated",
  [Pending] http://www.zope.org/Collectors/CMF/440

- "New getNextEvent Method",
  [Pending] http://www.zope.org/Collectors/CMF/462

- "Support 'based-on' attribute for  nodes in skins.xml",
  [Pending] http://www.zope.org/Collectors/CMF/464



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests