<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.comp.web.zope.plone.archetypes.general">
    <title>gmane.comp.web.zope.plone.archetypes.general</title>
    <link>http://blog.gmane.org/gmane.comp.web.zope.plone.archetypes.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4991"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4990"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4989"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4988"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4985"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4982"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4981"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4979"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4976"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4975"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4973"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4971"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4967"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4966"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4965"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4964"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4960"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4957"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4952"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4951"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4991">
    <title>migrating from PhotoField to ImageField?</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4991</link>
    <description>I have a content type that uses PhotoField on Plone 2.5.x.  I want to change 
the field type to ImageField to be able resize images and set the max_size 
with PIL (it does not seem to work with PhotoField)

I tried a test simply swapping the PhotoField for ImageField in my custom 
content's .py file but I recieved an error when trying to view an existing 
content item.  Is it possible to change?  Is there something that needs to 
be done that I am missing?

Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 90, in 
__call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 31, in 
_call
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 195, in _exec
  Module Products.CacheSetup.patch_cmf, line 28, in FSPT_pt_render
  Module Products.CacheSetup.patch_utils, line 9, in call_pattern
  Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
  Module Products.CacheSetup.patch_cmf, line 74, in PT_pt_render
  Module Products.CacheSetup.patch_utils, line 9, in call_pattern
  Module Products.PageTemplates.PageTemplate, line 104, in pt_render
   - &lt;FSControllerPageTemplate at /myportal/atct_edit used for 
/myportal/Members/halfpass/a-stunning-imported-black-hannoverian&gt;
  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 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 728, in do_defineMacro
  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 728, in do_defineMacro
  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 749, in do_useMacro
  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 691, in do_loop_tal
  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 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 749, in do_useMacro
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 507, in do_setLocal_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: file:Archetypes/skins/archetypes/widgets/field.pt
   - Line 53, Column 6
   - Expression: &lt;PythonExpr getMethod and getMethod()&gt;
   - Names:
      {'container': &lt;PloneSite at /myportal&gt;,
       'context': &lt;Premium_Photo_Ad at 
/myportal/Members/halfpass/a-stunning-imported-black-hannoverian&gt;,
       'default': &lt;Products.PageTemplates.TALES.Default instance at 
0x8f3702c&gt;,
       'here': &lt;Premium_Photo_Ad at 
/myportal/Members/halfpass/a-stunning-imported-black-hannoverian&gt;,
       'loop': &lt;Products.PageTemplates.TALES.SafeMapping object at 
0xf37ed2c&gt;,
       'modules': &lt;Products.PageTemplates.ZRPythonExpr._SecureModuleImporter 
instance at 0x8f7828c&gt;,
       'nothing': None,
       'options': {'args': (),
                   'state': 
&lt;Products.CMFFormController.ControllerState.ControllerState object at 
0x1086e2ec&gt;},
       'repeat': &lt;Products.PageTemplates.TALES.SafeMapping object at 
0xf37ed2c&gt;,
       'request': &lt;HTTPRequest, 
URL=http://www.myportal.com/Members/halfpass/a-stunning-imported-black-hannoverian/atct_edit&gt;,
       'root': &lt;Application at &gt;,
       'template': &lt;FSControllerPageTemplate at /myportal/atct_edit used for 
/myportal/Members/halfpass/a-stunning-imported-black-hannoverian&gt;,
       'traverse_subpath': [],
       'user': &lt;PloneUser 'sean&gt;}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: getMethod and getMethod()
  Module Python expression "getMethod and getMethod()", line 1, in 
&lt;expression&gt;
  Module Products.Archetypes.ClassGen, line 68, in generatedEditAccessor
  Module Products.Archetypes.Field, line 693, in getRaw
  Module Products.Archetypes.utils, line 159, in mapply
  Module Products.Archetypes.ClassGen, line 58, in generatedAccessor
  Module Products.Archetypes.Field, line 961, in get
  Module Products.Archetypes.Field, line 1035, in _wrapValue
  Module Products.Archetypes.Field, line 955, in _make_file
  Module OFS.Image, line 125, in __init__
  Module OFS.Image, line 504, in _read_data
AttributeError: seek



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Sean K</dc:creator>
    <dc:date>2008-12-02T19:40:34</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4990">
    <title>problems with calling python scripts</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4990</link>
    <description>
Hi, I hope you can help me! I have some problems with the combination of
Archetype forms and python scripts. 

I've copied the base_edit files to my new Archetypes-based product and
modified base_edit.cpy.metadata: 
[actions]
action.success=traverse_to:string:myScript

Now it calls the script when the user clicks on the save button. But it
doesn't redirect the user to the "view" tab as it used to do without the
script. I also tried it with the portal_form_controller tool: 

a) Template/Script: base_edit, Status: success, Context type: newCT, Action
type: traverse_to, Action argument: string:myScript 
b) Template/Script: myScript, Status: success, Context type: newCT, Action
type: traverse_to_action, Action argument: string:view. 

I've tried this in various combinations - Either it redirects to the view
tab and doesn't call the script, or it calls the script but doesn't redirect
to the view tab. So where exactly am I wrong?

A second thing which doesn't work is calling a python script when the user
initializes the new document. You know what I mean? The user adds a new
document. At this moment the url of this object is
http://localhost:8080/FooFolder/portal_factory/Foo/foo.2008-11-29.7479322372/edit.
The user saves it. Now the url is http://localhost:8080/Foo/name_of_foo. 
I just can't find out which template I have to modify in order to add a
script while the object is still temporary. 

Thanks!
</description>
    <dc:creator>ruby042</dc:creator>
    <dc:date>2008-12-01T10:25:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4989">
    <title>Allowing only certain fields to be edited</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4989</link>
    <description>
I am having a problem trying to selectively enable certain fields for edit.

I have a certain class of users who are permitted to edit a single caption
field in my object type.

I have defined a permission named 'Edit Captions' and assigned it to that
class of users in the rolemap.xml file within my product.

I have specified the write_permission property in the field to be edited (it
is a TextField) and set it to the 'Edit Captions' permission.

When the user displays the default view of the object, he/she can
double-click on the field and the TextAreaWidget renders correctly in write
mode.  Other classes of user cannot do this, so the write_permission
property is apparently being set correctly.

The user can enter text in the widget but when he/she clicks the Save
button, nothing happens.  The Cancel button works correctly but the user can
click the Save button forever with no results.

I suspect that I need to set some other permissions for this class of user
in order for the Save button to work, but I cannot figure out what
permissions.

I have tried setting the Add permission for the content type, which I do not
really want to do since I want the user to be able to edit the caption field
for existing content but not create new content.  The Add permission made no
difference however.

I also tried setting the Modify portal content permission, again with no
luck.

Any suggestions would be greatly appreciated.

Thanks in advance,

Neil Stokes
</description>
    <dc:creator>Neil Stokes</dc:creator>
    <dc:date>2008-12-01T00:21:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4988">
    <title>LinguaPlone Translation during content creation with FTP/WEBDAV Upload</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4988</link>
    <description>
Hi everybody,

the code I am working on is subclassing ATImage to enable parsing of
embedded XMP metadata during the content creation TTW or with FTP/WEBDAV.
XMP metadata contains image description in a couple of languages. I extended
the schema with some fields to make the metadata editable and searchable in
Plone. Images are shown in a javascript gallerie where the description and
copyright information are shwon below the images in a javascript "lightbox"
modal_window (using jQuery/Thickbox).

I use "at_post_create_script()" and "manage_afterPUT()" to parse the
metadata after Plone stored the image in the ImageField.

For internationalization I enabled LinguaPlone in my content type, but now
there is the question "When and in which function I should add the
translatations of the canonical version of the image object itself. While
uploading a bulk of images, I get some "ConflictErrors" and some images get
skipped. I do not know a lot about zope transactions that may be important
in this case (I read about this for renaming file during creation). But my
question aims more to architectural help for my solution. Is it common to
translate while content creation??? Is LinguaPlone the right choice for my
purposes?

My intention:
I want to make multi-language metadata in images editable and searchable in
Plone. I had a look at ATPhoto, but there is only a view template showing
all metadata but not editable. 

Any advice for making this possible is appreciated. Thanks

excerpt  of manage_afterPUT()
#code
other_caption = xmp_data.get('CaptionNL','')
other_language = xmp_data.get('OtherCaptionLang','')
if other_caption and other_language:
                self.addTranslation(other_language) # translate 
                translation = self.getTranslation(other_language) # get
object 
                translation.setDescription(other_caption) # call method of
translated object
#code

</description>
    <dc:creator>Sascha Gottfried</dc:creator>
    <dc:date>2008-11-24T11:24:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4985">
    <title>Archetypes don't have editable DC metadata</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4985</link>
    <description>I have a really straightforward content type that I created for a 
training session.  I created it with ArchGenXML, but that hardly seems 
important.  It inherits from BaseContent, and afaict it should have the 
Dublin Core metadata - but I don't see a "Description" on the view or 
edit pages (though the Description() accessor appears to be present when 
I use Clouseau).

Am I doing something wrong?  Am I expecting something wrong?


from AccessControl import ClassSecurityInfo
from Products.Archetypes.atapi import *
from zope.interface import implements
import interfaces

from Products.CMFDynamicViewFTI.browserdefault import BrowserDefaultMixin

from Products.myProduct.config import *

##code-section module-header #fill in your manual code here
##/code-section module-header

schema = Schema((

    StringField(
        name='stringField',
        widget=StringField._properties['widget'](
            label='Stringfield',
            label_msgid='myProduct_label_stringField',
            i18n_domain='myProduct',
        ),
    ),
),
)

##code-section after-local-schema #fill in your manual code here
##/code-section after-local-schema

MyContent_schema = BaseSchema.copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
##/code-section after-schema

class MyContent(BaseContent, BrowserDefaultMixin):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.IMyContent)

    meta_type = 'MyContent'
    _at_rename_after_creation = True

    schema = MyContent_schema

    ##code-section class-header #fill in your manual code here
    ##/code-section class-header

    # Methods


registerType(MyContent, PROJECTNAME)
# end of class MyContent

</description>
    <dc:creator>Derek Broughton</dc:creator>
    <dc:date>2008-11-19T15:08:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4982">
    <title>ReferenceWidget checked by default</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4982</link>
    <description>
How could i forced the radio buttons checked by default in a ReferenceWidget
? 
Thanks for your advices
</description>
    <dc:creator>Benjamin Klups</dc:creator>
    <dc:date>2008-11-16T13:14:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4981">
    <title>Collections and Vocabulary Values</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4981</link>
    <description>Using ATVocabularyManager for my vocabulary fields.

By indexing fields in catalog and adding metadata to portal_atct the
fields are showing correctly as options in Collection types.

The problem is that they're displaying the Keys and not Values of my
vocabularies.

What's the best way to make Collections automatically return a more
friendly and useful value, instead of keys?





-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Khairil Yusof</dc:creator>
    <dc:date>2008-11-12T05:44:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4979">
    <title>Re garding tagged values in argouml</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4979</link>
    <description>
HI all,
         i have been working on ArgoUml-V0.24.i am getting a problem in
tagged values while assigning the following

aliases = {
        '(Default)'  : 'instantmessage_view',
        'view'       : 'instantmessage_view',
        'edit'       : 'base_edit',
        'properties' : 'base_metadata',
        }
to assign the above value i didn't find the tag so i created new tags
"base_aliases" and "aliases" and assign the value but while generating the
code the above change is not reflected.Please help me

Thanks&amp;Regards
RamaKrishna
</description>
    <dc:creator>ramakrishna</dc:creator>
    <dc:date>2008-11-07T11:26:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4976">
    <title>SelectionWidget</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4976</link>
    <description>
hello all
im using 'SelectionWidget' Archetype to populate field with Drop-down list
Following is code:

  StringField(
        name='organisation',
        #accessor='fetchmethod',
        widget=SelectionWidget(
            description="Select organisation",
            label="Select Organisation",
            label_msgid='masterentryform_activity_label_organisation',
            description_msgid='masterentryform_activity_help_Program',
            i18n_domain='masterentryform_activity',
        ),
        vocabulary=["aa","bb"]
    ),

But instead of showing drop-down, its showing options in radio-button
format.
I think im using right widget, 'SelectionWidget', for displaying drop down
!!
I know when there r few options, it gets displayed in radio button format,
but there should be some way or other to display drop-down

thanks
</description>
    <dc:creator>monks</dc:creator>
    <dc:date>2008-10-25T04:44:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4975">
    <title>SelectionWidget</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4975</link>
    <description>
hello all
im using 'SelectionWidget' Archetype to populate field with Drop-down list
Following is code:

  StringField(
        name='organisation',
        #accessor='fetchmethod',
        widget=SelectionWidget(
            description="Select organisation",
            label="Select Organisation",
            label_msgid='masterentryform_activity_label_organisation',
            description_msgid='masterentryform_activity_help_Program',
            i18n_domain='masterentryform_activity',
        ),
        vocabulary=["aa","bb"]
    ),

But instead of showing drop-down, its showing options in radio-button
format.
I think im using right widget, 'SelectionWidget', for displaying drop down
!!

</description>
    <dc:creator>monks</dc:creator>
    <dc:date>2008-10-25T04:42:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4973">
    <title>Subclassing ImageWidget</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4973</link>
    <description>
Hi folks, 

First of all, I'm new to Plone so please forgive me if I don't express this
too well. 

I need to do the following: 

Display an image on a page along with the supporting information (I have
subclassed ATImage to add additional fields/widgets and this works fine). 

When the user clicks on the 'Current Image - ...' link below the image, I
want to display the image at a different size, depending upon the user's
defined role.  Privileged users will see a full size image while others will
see a scaled down image.  I have the sizes defined in the ImageField. 

One way to do this would be to create a method in my subclassed ATImage
class that returns a different-sized image using a test based on
user.hasRole() - image_large, image_mini etc.  However, I notice that the
image.pt file (in Archetypes/skins/archetypes/widgets) includes a link to
the image file's absolute URL so I need to modify this. 

A brute force approach would be simply to modify image.pt to call my method
but that's a bad idea since it will affect all images. 

I can subclass ImageWidget, which is a more elegant approach, and simply
specify the new widget for my existing ImageField.  However, I can't see
where to define the link between the widget and the page template.  Any
pointers would be greatly appreciated. 

On the other hand, I may be approaching this from completely the wrong
direction, so suggestions on alternative approaches would also be welcome. 

Many thanks in advance, 

Neil Stokes
</description>
    <dc:creator>Neil Stokes</dc:creator>
    <dc:date>2008-10-13T23:17:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4971">
    <title>Copy - Paste with PostgreSQLStorage doesn't work</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4971</link>
    <description>
Hello,

I've defined a new object class with storage into a relational database of
some fields.
All works fine, except if I try to copy and paste an instance of this class.

I get the following error message:

      Paste could not find clipboard content.

In addition: Cut and Paste works fine.

Probably I need to add some methods for storing data from the external
storage but I don't know what to do.
Has anyone an idea or a good advice ?

Regards, Fritz
</description>
    <dc:creator>floseries</dc:creator>
    <dc:date>2008-10-13T10:50:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4967">
    <title>Image Field Jpeg Problem</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4967</link>
    <description>
Hey I'm having problem with my image field in a custom content type. Uploaded
Jpegs look wrong, color is faded and the image looks stripped. Gifs and Pngs
look fine it is just a problem with Jpegs.

The images are being resized so im thinking there may be the problem with
the resizing. It reminds me alot of an php problem i had with adding slashes
to imaging content. and not removing them. . But im not certain.

Any information on how to fix this would be great

Cheers Glen

I've added an example image below.

http://n2.nabble.com/file/n1321936/picture_normal.jpg 
</description>
    <dc:creator>furgle</dc:creator>
    <dc:date>2008-10-12T09:33:31</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4966">
    <title>How hide items for anonymous users only?</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4966</link>
    <description>
Hi,

I already asked this question at add-on product developers, but this might a
more appropriate place.

I have a problem that I have some content which must be directly accessible
via URL for anonymous users, but should not come up in any listing/search
results. This is draft content which must be previewable via a direct link.
The site administrators must be see this content normally.

What kind of permission/index magic I must do to make this possbile? Can I
overwrite exclude_nav() on per role basis? Can I utilize Access content
information permission.

Cheers,
Mikko

</description>
    <dc:creator>Mikko Ohtamaa</dc:creator>
    <dc:date>2008-10-10T07:29:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4965">
    <title>ArchGenXml: ZCTextIndex info missing fromcatalog.xml</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4965</link>
    <description>I am generating code for Plone 2.5 with AGX 2.1.

When i set the index:catalog and index:metadata tageged values on a field, a 
ZCTextIndex is created in catalog.xml, but when i import the profile from 
Generic Setup, it complains of a null ("") value for lexicon_id. Manually inserting
     &lt;extra name="index_type" value="Okapi BM25 Rank"/&gt;
     &lt;extra name="lexicon_id" value="plone_lexicon"/&gt;
into catalog.xml does work.

Is there another way to get this to work?

Regards,

Kees

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Kees Hink</dc:creator>
    <dc:date>2008-10-07T08:03:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4964">
    <title>ArchGenXML: how to set index:extras</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4964</link>
    <description>I am generating code for Plone 2.5 with AGX 2.1.

I am using a ZCTextIndex for which the catalog.xml needs the lines:
     &lt;extra name="index_type" value="Okapi BM25 Rank"/&gt;
     &lt;extra name="lexicon_id" value="plone_lexicon"/&gt;

What can i put in the index:extras tagged value for this field so that it will 
add the lines? The manual 
http://plone.org/documentation/manual/archgenxml2/reference/tagged-values says 
"Provide a comma separated list." but if have tried these forms and they fail:

'lexicon_id=plone_lexicon','index_type=Okapi BM25 Rank' ,
lexicon_id=plone_lexicon,index_type='Okapi BM25 Rank' and
lexicon_id=plone_lexicon,index_type=Okapi BM25 Rank

fail with TypeError: string indices must be integers

'lexicon_id':'plone_lexicon' and
{'lexicon_id':'plone_lexicon'}

fail with InError: Strings are not allowed as input to the in tag.

Thanks in advance,

Kees

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Kees Hink</dc:creator>
    <dc:date>2008-10-07T08:05:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4960">
    <title>Update Schema for attributes modes and visible does not work</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4960</link>
    <description>
I have created a schema for a new archetype object and afterwards created an
instance.

Then I changed for a StringField the attributes modes = ('view',) and
visible = {'view': 'invisible', 'edit': 'invisible'} for the according
StringWidget.

Now I called base_edit and base_view for the instance. Still the StringField
was visible and editable.

Then I made a Update Schema on the old objects of that schema and started
Plone again.
Again: no effect.

Only when I am creating a new instance, the changes work perfectly. But this
is not the idea, or am I wrong ?

I'm using Plone 2.5.3 and as storage for this Field PostgreSQLStorage.

Any hints on this ?

Best regards,

      Fritz
</description>
    <dc:creator>floseries</dc:creator>
    <dc:date>2008-09-14T13:55:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4957">
    <title>ATVocabularyManager - Vocabulary per instance of product</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4957</link>
    <description>
Hi,

I would like for logged in users with the required rights (eg. manager) to
be able to select a vocabluary for each instance of my product. The
vocabulary is linked to a LinesField. I only know how to statically declare
a default vocabulary for all instances of the product - this works fine! But
I need the user beeing able to choose the vocab!


Thanks,
tragor

</description>
    <dc:creator>tragor</dc:creator>
    <dc:date>2008-09-11T16:00:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4952">
    <title>Problems with PostgreSQLStorage()</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4952</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/_______________________________________________
Archetypes-users mailing list
Archetypes-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org
https://lists.sourceforge.net/lists/listinfo/archetypes-users
</description>
    <dc:creator>floseries</dc:creator>
    <dc:date>2008-09-09T10:23:04</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4951">
    <title>archgenxml does not register custom permissionin CMFCore.permissions</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4951</link>
    <description>When defining a custom permission on an action in the UML, the action is 
protected by that permission. But the permission is not created in the site by 
the agx-generated product, is that right?

I noticed that if i tried to add the permission to a role in rolemap.xml, for 
example, GenericSetup would complain about an invalid permission: it was not 
defined yet.

So i added the permission in the product's init.py like this: 
CMFCore.permissions.setDefaultRoles('MyProduct: My custom permission', ())

Is there a way to get agx to do this? If no, would it be a useful feature?

Kees

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Kees Hink</dc:creator>
    <dc:date>2008-09-09T09:20:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4946">
    <title>UML modeling: extending many classes obscuresmodel</title>
    <link>http://comments.gmane.org/gmane.comp.web.zope.plone.archetypes.general/4946</link>
    <description>Hi,

I quite often find my UML model cluttered by many generalizations.
For example:
In the case where many content types have to have the same field, 
which i put in a stub class, there are a lot of lines from that 
class to the classes that extend it. This makes the diagram harder
to read.

Is there a way to subclass a custom content type in such a way that 
you do not have to have a line in your model? 

Regards,

Kees

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Kees Hink</dc:creator>
    <dc:date>2008-08-29T12:46:50</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.web.zope.plone.archetypes.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.web.zope.plone.archetypes.general</link>
  </textinput>
</rdf:RDF>
