[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

[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

[Zope] Newbie: manage_changeProperties and wrong permission

2000-12-19 Thread Milos Prudek
d to access manage_changeProperties." 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 -

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

2000-12-20 Thread Milos Prudek
e acquisition, without the need for having each method in many "language" versions, like I said above. I may figured it wrong. Is there a more clever way to do this? -- Milos Prudek ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailm

Re: [Zope] Newbie: manage_changeProperties and wrong permission

2000-12-20 Thread Milos Prudek
e 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 properties in subfolders "cz", "en&q

[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 this product or Z

[Zope] Zope Book: UniqueValuesFor

2000-12-21 Thread Milos Prudek
t 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! ** (Related lists -

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 easier to understand. -- Mi

[Zope] best practices Zope filesystem development

2005-04-08 Thread Milos Prudek
. 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.zope.org

[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

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
. -- 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/listinfo/zope-dev )

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
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! ** (Related

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
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
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 ___ Zope

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

[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.spoxdesign.com - your web usability testing

[Zope] non-undoable storage

2005-04-18 Thread Milos Prudek
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 ** No cross posts or HTML encoding

Re: [Zope] non-undoable storage

2005-04-18 Thread Milos Prudek
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 understand each other. -- Milos Prudek

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
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.spoxdesign.com

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 usability

Re: [Zope] Restart button in Control Panel

2005-04-19 Thread Milos Prudek
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/zope-announce http://mail.zope.org/mailman/listinfo/zope

[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

[Zope] ZCatalog and custom Product

2005-04-20 Thread Milos Prudek
, title=title) but the above looks 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

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 advice of 10.6.2004

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 maillist - Zope

[Zope] container and context for folderish objects

2005-05-10 Thread Milos Prudek
not provide that. The first 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 Prudek

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. Desired behaviour can

[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 - your web

[Zope] security for ZPT-based Product

2005-07-11 Thread Milos Prudek
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 usability testing

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] 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? -- Milos Prudek

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.org http

[Zope] unicode error in standard ZPT form

2006-03-28 Thread MIlos Prudek
* Module TAL.TALInterpreter, line 396, in attrAction_tal UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 0: ordinal not in range(128) -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

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: input type=text size=30 name=name tal:attributes=value request/name| nothing Unfortunately it throws a Unicode exception if a Czech accented character

[Zope] default_zpublisher_encoding not supported

2006-05-04 Thread MIlos Prudek
) -- 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/listinfo/zope

Re: [Zope] Re: default_zpublisher_encoding not supported

2006-05-04 Thread MIlos Prudek
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/listinfo/zope-announce http://mail.zope.org/mailman

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/listinfo/zope

Re: [Zope] [ANN] TextIndexNG 3.1.10 released

2006-07-03 Thread MIlos Prudek
... but 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 or HTML

[Zope] declarePublic function

2009-01-27 Thread Milos Prudek
): 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 ___ Zope maillist

Re: [Zope] declarePublic function

2009-01-27 Thread Milos Prudek
does the incorrect (paremeter-less) call near the top of the class do? -- 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

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 maillist

[Zope] TextIndexNG3 fails

2009-01-28 Thread Milos Prudek
, in createObject Module zope.component._api, line 207, in getUtility ComponentLookupError: (InterfaceClass zope.component.interfaces.IFactory, None) What does it mean? -- Milos Prudek ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman

[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-dev] Localizer and UnicodeError

2003-12-16 Thread Milos Prudek
] = {} for lang, v in v.items(): local_properties[id][lang] = unicode(v, 'cp1250') x._local_properties = local_properties log.append(log_line) return log -- Milos Prudek ___ Zope-Dev maillist - [EMAIL PROTECTED

[Zope-dev] PlacelessTranslationService syntax

2004-04-13 Thread Milos Prudek
. Is my syntax wrong? -- Milos Prudek ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope-dev] Re: PlacelessTranslationService syntax

2004-04-14 Thread Milos Prudek
/Members/lalo/PlacelessTranslationService and http://dev.zope.org/Members/efge/TranslationService. And it does not work. That's why I ask here. -- Milos Prudek ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev

Re: [Zope-dev] Re: PlacelessTranslationService syntax

2004-04-14 Thread Milos Prudek
. I've read all docs that I could find. I need this for straight Zope (no CMF, no Plone). -- Milos Prudek ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists

[Zope-dev] Placeless Translation Service

2004-06-02 Thread Milos Prudek
where can I discuss Placeless Translation Service development? The original author Lalo Martins does not respond to emails - current PTS bears a fork suffix - who's in charge now? -- Milos Prudek ___ Zope-Dev maillist - [EMAIL PROTECTED] http