[Zope] PlacelessTranslationService

2010-03-22 Thread Milos Prudek
Hi, is this the right place to post question about PlacelessTranslationService? -- Milos Prudek ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https

[Zope] TextIndexNG3 fails

2009-01-28 Thread Milos Prudek
createObject Module zope.component._api, line 207, in getUtility ComponentLookupError: (, None) What does it mean? -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding

Re: [Zope] declarePublic function

2009-01-28 Thread Milos Prudek
> As the bottom of my email stated, use declareObjectPublic() in this > case. The rest of the security calls are then somewhat redundant, Yes, I used your advice and it seems to have resolved the issue. Thank you! -- Milos Prudek ___ Zope ma

Re: [Zope] declarePublic function

2009-01-27 Thread Milos Prudek
eric',globals()) generic._owner=None So, since there are many correct calls of declarePublic(), what does the incorrect (paremeter-less) call near the top of the class do? -- Milos Prudek ___ Zope maillist - Zope@zope.org http://

[Zope] declarePublic function

2009-01-27 Thread Milos Prudek
me, *names): therefore I understand that one parameter is obligatory. But I cannot guess what parameter it should be for JMZPTMacros. I tried to look how declarePublic is used inside Zope but it gave me no clue. Please help. -- Milos Prudek ___ Zop

Re: [Zope] [ANN] TextIndexNG 3.1.10 released

2006-07-03 Thread MIlos Prudek
an instance of TextIndexNG cannot be added, because it is not among addable types. Is this normal? Does TextIndexNG3 have a web interface? -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts

Re: [Zope] Re: default_zpublisher_encoding not supported

2006-05-05 Thread MIlos Prudek
> The spelling in my 2.8 branch checkout is 'default-zpublisher-encoding'. Wow, not I see it. Dashes instead of underscores. Now it works. Thank you. -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/

Re: [Zope] Re: default_zpublisher_encoding not supported

2006-05-04 Thread MIlos Prudek
lisher-encoding' and the error is the same as before. -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listi

[Zope] default_zpublisher_encoding not supported

2006-05-04 Thread MIlos Prudek
/zope.conf) -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/lis

Re: [Zope] unicode error in standard ZPT form

2006-03-29 Thread MIlos Prudek
On Tuesday 28 of March 2006 23:48, MIlos Prudek wrote: > I have a typical ZPT form that redisplays entered data if invalid data is > entered: > > > > Unfortunately it throws a Unicode exception if a Czech accented character > is entered. Such as "s" with a hacek

[Zope] unicode error in standard ZPT form

2006-03-28 Thread MIlos Prudek
* Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 308, in do_startTag * Module TAL.TALInterpreter, line 396, in attrAction_tal UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in positi

Re: [Zope] change ATImage metadata

2006-02-24 Thread MIlos Prudek
> The language attribute is a standard Archetypes field, and as such youcan ask such fields what it's accesor and mutator are: Cool, now I know how to do it for any other attribute. Thank you. -- Milos Prudek ___ Zope maillist - Zope@zope.

[Zope] change ATImage metadata

2006-02-22 Thread MIlos Prudek
Hi, how can I programatically change the Language attribute in Standard Resource Metadata of ATImage? I tried: for item in context.objectValues('ATImage'): print item.Language() This works perfectly. How do I assign value to Language? -- Mi

Re: [Zope] security for ZPT-based Product

2005-07-28 Thread Milos Prudek
Right, checked an old (wrong) file in my product. Sorry for the mistake. Yes, it works. Problems solved. Thank you Andreas and Jens. -- Milos Prudek http://www.spoxdesign.com - your web usability testing ___ Zope maillist - Zope@zope.org http

[Zope] security for ZPT-based Product

2005-07-11 Thread Milos Prudek
access to comment_add_form to the Authenticated role only. comment_add_form is on the filesystem, in my Product's zpt directory. How can I achieve this? I understand zilch about ClassSecurityInfo... (My Product is based on JMBoring template) -- Milos Prudek http://www.spoxdesign.com - your web us

[Zope] code completion for ZPT

2005-05-18 Thread Milos Prudek
Hi, is there an editor that would support code completion for Page Templates and maybe even code completion for Zope3 new technologies? Currently I use ViM on Linux - but a lot of typing is required, like "tal:attributes" - 14 keystrokes. -- Milos Prudek http://www.spoxdesign.com

Re: [Zope] container and context for folderish objects

2005-05-11 Thread Milos Prudek
Milos Prudek wrote: I created a very simple folderish product. Everything works fine. But I was surprised that "context" and "container" seem to behave differently for folderish object than for normal Folder. To answer my own question: I misunderstood what container does. De

[Zope] container and context for folderish objects

2005-05-10 Thread Milos Prudek
line shows nothing, and the second line shows content of the parent Folder! I would have expected that "container" is the "a", the folderish object. Why does it not work? I \know that I can get my list by calling /a/lst, but unfortunately I cannot do that. -- Milos Prude

Re: [Zope] Organisational vs. Functional hierarchies

2005-04-20 Thread Milos Prudek
Ta. I'll check it out, although I suspect a ZClass may be more what I want... need to do some more reading up. Don't use ZClasses. They have been deprecated for more than a year and they are poorly supported. -- Milos Prudek ___ Zope maillis

Re: [Zope] ZCatalog and custom Product

2005-04-20 Thread Milos Prudek
Milos Prudek wrote: > Hi, > > I need to convert a ZClass cataloged in multiple ZCatalogs into a > Product. I know how to create a Product. But I have trouble > understanding how to create a proper ZCatalog and manage it in a Product. To answer myself, simply follow Garito's ad

[Zope] ZCatalog and custom Product

2005-04-20 Thread Milos Prudek
s fishy because I would have an isolated catalog for each new instance of my class... To support manage_editCataloger and reindex_object, do I need to import both ZCatalog from Products.ZCatalog and CatalogAware from Products.ZCatalog.CatalogAwareness ? -- Milos Prudek ___

[Zope] Writing products (was: Organisational vs. Functional hierarchies)

2005-04-19 Thread Milos Prudek
/gtk/Boring and finish with JMBoring http://www.zope.org/Members/jmeile/JMBoring You then do not need to write your product from scratch. You can easily modify JMBoring. Thanks to Paul Winkler and Cliff Ford who pointed these excellent docs to me. -- Milos Prudek http://www.spoxdesign.com - your

Re: [Zope] Restart button in Control Panel

2005-04-19 Thread Milos Prudek
have a "Restart" button. Correct again. Thank you JCC. -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/z

Re: [Zope] non-undoable storage

2005-04-18 Thread Milos Prudek
It's designed to be a counter and does automatic conflict resolution. It was mentionned a number of times in the past on the zope and zodb-dev lists. Thank you. I found detailed info in the mailing list archive, just like you said. -- Milos Prudek http://www.spoxdesign.com - your web usab

Re: [Zope] non-undoable storage

2005-04-18 Thread Milos Prudek
Probably not. If you had an SQL solution, and some client code said someArticle.NumberOfReaders += 1, how would you get that assignment to fire off your SQL code? I would have to "calculate" the key, so simple assignment would not work, that's true. -- Milos Prudek http://www

Re: [Zope] non-undoable storage

2005-04-18 Thread Milos Prudek
A better candidate, rather than PersistentList, would be a BTrees.Length. Never heard about this. Why is it better? What does it do? Where can I find more info about it? -- Milos Prudek http://www.spoxdesign.com - your web usability testing ___ Zope

Re: [Zope] non-undoable storage

2005-04-18 Thread Milos Prudek
for my use case? So client code can't write "someArticle.NumberOfReaders += 1". But then, you wouldn't be able to do that with a SQL-based solution either. Why not? It's easy to write ZSQL method to update data. Probably we do not unde

[Zope] non-undoable storage

2005-04-18 Thread Milos Prudek
r moving Articles in the directory structure to maintain the connection between ZODB and SQL table. Is there an obvious elegant solution that I am missing? -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope **

[Zope] Restart button in Control Panel

2005-04-18 Thread Milos Prudek
Is it possible to have the "Restart" button in ZMI Control Panel? I only have "Shutdown". What controls this? I start my Zope instance with "instance/bin/runzope &". I use Zope 2.7.4. -- Milos Prudek http://www.spoxdesig

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
Rather, I would look at the venerable old Boring and Minimal example products. (But be aware that Boring (last time I looked) Oh yes, I will look at those. Thanks for the supporting documentation in your post. -- Milos Prudek http://www.spoxdesign.com - your web usability testing

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
Yes. In Zope X3.0 you can only develop filesystem-based Python packages, so in Well, then your book debuted at number 1 on my book shopping list. -- Milos Prudek http://www.spoxdesign.com - your web usability testing ___ Zope maillist - Zope@zope.org

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
I don't know about best documents! There is a minimal Product How To: http://www.zope.org/Members/maxm/HowTo/minimal_01/ That's exactly what I was looking for. Thanks! -- Milos Prudek http://www.spoxdesign.com - your web usability testing __

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
book contain all info required to develop products (or whatever are they called in Zope 3) for Zope 3? -- Milos Prudek http://www.spoxdesign.com - your web usability testing ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope **

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
ntioned. I do not feel I can contribute to ZDG at this time. Is there any other resource you can recommend, please? -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
. That is all. -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/list

[Zope] developer docs

2005-04-12 Thread Milos Prudek
than ZDG and contains all required information for building products? -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman

[Zope] best practices Zope filesystem development

2005-04-08 Thread Milos Prudek
ively. Instead of ZMI/External editor I need vim, grep, mv and cp to manipulate Zope ZODB. -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zop

Re: [Zope] Stupid Newbie: Define permissions

2000-12-21 Thread Milos Prudek
Dieter Maurer wrote: > > Milos Prudek writes: > > ... "Define permissions" tab for ZClasses ... > I found that the respective description in the upcoming Zope book > was not bad. Thanks, that's true. The explanation is brief, but much easie

[Zope] Zope Book: UniqueValuesFor

2000-12-21 Thread Milos Prudek
I wish that the ZB is coherent in the "explanation - example - reference" trio. -- Milos Prudek ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Relate

[Zope] Stupid Newbie: Define permissions

2000-12-20 Thread Milos Prudek
ave to go to the containing Z Class, click on Permissions and add the desired permission in the 'Class permissions' list box." Frankly, the sentence "The second column specifies the permissions that should have this permission in th

Re: [Zope] Newbie: manage_changeProperties and wrong permission

2000-12-20 Thread Milos Prudek
ir ZClass. It is a simple property of 'cz' subfolder of Fir ZClass. If lstName were inside a property sheet of Fir ZClass, there could not exist multiple 'lstName' properties in different property sheets, because all property sheets have common namespace. Therefore I have my

[Zope] Re: [Zope]Newbie: manage_changeProperties and wrong permission

2000-12-20 Thread Milos Prudek
s that once a new user selects her preferred language (and a Cookie is set for her), she is transferred to a starting url "http://www.website.org/de/start.htm" and from there she can access the database in her language by simple acquisition, without the need for having each method in

[Zope] Newbie: manage_changeProperties and wrong permission

2000-12-19 Thread Milos Prudek
geProperties." I'm running this script as a "manager" defined at Zope root, in other words with the default setup. Normally I can do anything in Zope with this authorization. -- Milos Prudek ___ Zope maillist - [EMAIL PROTECTED] http

[Zope] tree traversing & publishing

2000-11-28 Thread Milos Prudek
I do not quite understand how Zope traverses a tree. I created "ZooExhibit" Z Class within ZooExhibit factory, and "ExhibitProperties" prop.sheet within that class, with an "animal" property. I made association between "Edit" name and propertysheets/ExhibitProperties/manage. I made an instance o

[Zope] Zope mailing list doesn't work

2000-11-28 Thread Milos Prudek
abled delivery a few days ago and now I can't enable it due to the above mentioned problem. Thanks for any help, and please mail me directly -- Milos Prudek ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No c

[Zope] How to checkout PythonMethod from CVS

2000-11-24 Thread Milos Prudek
mbinations) -- Milos Prudek ___ 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/lis