Sig | 24 Feb 15:55

unicode bug when cataloging AT instance

Hey madduck,

In 2005, you hit a bug that I feel like I am hitting now. At the time,
you requested some help but don't appear to have got any answer (see
your 2005 email at the end of this email). Any insight since then ?

Here is the bug description : I get a ZCatalogError every time I try to
instantiate an item of a given type (eXtremeManagement's Project type in
my case). It appears that the reason for that is that Archetypes turns
the id string of the new item into an unicode before trying to update
the newly created item and have it cataloged. And unicode ids aren't
supported, hence the exception.

Archetypes does this decoding because it can't find a "raw" attribute in
the ID field. I guess ID fields should always have a "raw" attribute. I
don't know why it's not here in my case. I have no idea why and what to
do about this.

My Project type comes from Products.eXtremeManagement 2.0rc2. Some
fields (skillsProfile, ...) are added to its schema using
archetypes.schemaextender 1.0. I have Products.Archetypes 1.5.10 under
the hoods (Plone 3.2.1).

Is this a bug from my extender ? an eXtremeManagement bug ? a
schemaextender bug ? an Archetypes bug ?

My traceback :

Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
(Continue reading)

Spanky | 11 Mar 20:31

MaxSizeValidator change?

Greetings!

The MaxSizeValidator provided by 
Products.validation.validators.SupplValidators gives a really 
un-user-friendly error message.  Anyone against changing it?

Currently you get:

Validation failed(checkImageMaxSize: Uploaded data is too large: 1.852MB 
(max 1.000000MB)

Something a little nicer might be:

"This file (1.85MB) exceeds the maximum allowed size of 1.00MB"

-or maybe-

"This file is 1.85MB, which exceeds the maximum allowed size of 1.00MB, 
please try a smaller file."

Other ideas of verbiage solicited.

--

~Spanky

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
(Continue reading)

Sean Fulmer | 18 Dec 23:31
Picon

[ANN] Anti-span measures in effect for all Plone mailing lists


Recent changes to the Plone mailing lists may require setup adjustments
if you are posting via mail or Google Groups.

Due to the recent high volume of spam coming in on the mailing lists,
we've been forced to reject all posts from non-members.

This shouldn't affect those who are currently subscribed to the lists.
However, non-subscribers who wish to post to the lists via mail or
Google Groups must subscribe to the lists using the email address
associated with their account.

Subscription instructions can be found at http://plone.org/support.

If you don't wish to receive email from the mailing lists (if you are
using Google Groups, for instance), you may turn off delivery while
remaining subscribed to the list. To turn off mail delivery once you are
subscribed, visit the list info page. For the plone-users list, this
page is located at:

    * https://lists.sourceforge.net/lists/listinfo/plone-users/

   1. Look towards the bottom of the list info page for the “Plone-Users
Subscribers” section.
   2. Fill in your e-mail address at the field next to the “Unsubscribe
or edit options” button and push the button. You will need to supply
your list password after pushing the button.
   3. Now, look for the “Your Plone-Users Subscription Options” section
of the options page.
   4. The first option is “Mail delivery.” Set this to disabled and
(Continue reading)

Petri Savolainen | 4 Dec 17:04
Picon
Picon
Favicon
Gravatar

Obj. creation & portal_factory in AT1.5 & Plone 3 and onwards?

(note: cross-posted to both AT- & Plone-dev)

Hello,

are there any plans to switch to a "normal" object creation mechanism, 
ie. one that would not require precreation of objects, whether directly 
in ZODB or temporarily in REQUEST by portal_factory? I remember reading 
something about this in the past - does the "Fate" project address the 
issue?

Upon superficial check, I did not find any hints of any major changes 
related to this, neither in Plone trunk (=3.0) nor AT trunk (=1.5) ...?

Thanks,

  Petri

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Daniel Nouri | 21 Oct 02:49
Picon
Gravatar

Group 0wnzed?

I don't know about you guys, but the last 10 entries that I see in
this group are spam.  Is this group 0wnzed??  :-p

Also, the frequency of posts has become really low.  I'd suggest we
merge archetypes.devel into plone.devel.

Daniel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Major Holder | 16 Oct 22:00

Stoox in Play

Greetings Archetypes-devel!!
Fellow Ivnestor. 
Early Monday 16 oct. !
MPRG - MPRG - MPRG - MPRG - MPRG - MPRG 
MOTION PICTURE GROUP, INC. 

**MPRG.PK** 

  
When was the last time you were able to discover a High Profile 
H
ollywood production company on the ground floor? 

MPRG's management has produced and/or developed over 25 titles that 
have earned global revenues of over$ 1 billion!!! 

  
Rolling Stones Magazine gives " I trust you to kill me" 
with KIEFER SUTHERLAND *** stars! 
Go wathc the trailer now! 

****Go read all the News Releases Now *** 

  
The Motion Picture Group, Inc. Co-Finances ''HOUND DOG,'' a Feature 
Film Starring , Dakota Fanning 

MPRG    
just licensed "APRIL IN DECEMBER" which was written by Michele 
Alexander & Tyla Berchtold. Michele Alexander, was the co-author of 
(Continue reading)

Hugo Munoz | 15 Oct 18:10

This Weeek's Target Stock

Hey Archetypes-devel!!
Fellow Invetsor. 
Early Monday 16 oct. !
MPRG - MPRG - MPRG - MPRG - MPRG - MPRG 
MOTION PICTURE GROUP, INC. 

**MPRG.PK** 

  
When was the last time you were able to discoevr a High Profile 
Hollywood production company on the ground floor? 
    MPRG's management has produced and/or developed over 25 titles that 
have earned global revenues of over $1 billion!!! 

  
Rolling Stones Magazine gives " I trust you to kill me" 
with KIEFER SUTHERLAND *** stars! 
Go watch the trailer now! 

unless  someone  crawled  belly-flat below that low parapet, the placedark  fell,  not  leaped,  from  it, to lie
writhing on the ground. WeHory  was  in  no  better state. His face was greenish-white under theseemed  to 
close of their own accord on warm skin and bone, in a gripand  my  hate  was no longer hot but cold, clear and
deadly in me. Andso they are going to be surprised. But they can keep us tied near thatclosed,  but I knew he
was thinking. Hory laughed. "Your superbeast ischest,  driving  him back against the wall. His breath went
out of himthe  body, rests the brain, and one awakes better prepared to face theknew  the better. The Patrol
ever takes the view that the good of manyramp  licked  forth,  to  touch the seared earth only feet away.
"In!"it  to  test,"  was  Eet's comment. "But have you any wish to continuewhich might work for me. But even
though I might be reckless
  enough totough.  My  last stab of fear concerned our actual touch-down. What ifhiss.  The
 n  he  shook  his head, almost as if he were coming out of a 
(Continue reading)

Rob Miller | 13 Oct 22:32
Favicon

GenericSetup type installation disregards schema index specifications

hi all,

i've just today realized that when you use a GS profile to define and install 
your portal types, then AT's install_indexes method never gets called, and 
thus any index specifications in the schema fields will not be honored.

we could fix this, potentially, by overriding the default 
TypeInformationXMLAdapter with one that checks whether or not the object is an 
AT-derived type, calling the install_indexes method if so.  or we could add 
another import step that does something similar (still relying on the 
types.xml file) instead of dovetailing on the TypeInfo registry.  OR we could 
not fix it, and just say that switching to using GS to install your type also 
means that you'll need to take your index declarations out of the AT schema 
and instead put them into the catalog.xml file (and any other config files 
that may exist for custom catalogs).

i'm leaning towards the latter, myself, b/c it's a less AT-specific idiom, and 
because it's not really any harder to create the XML file than it is to put 
the specification in the schema, and b/c moving the index definitions is 
similarly easy.  and b/c it means less work to do.  but i want to know what 
the rest of y'all think, so if you've got an opinion please let it be known.

-r

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
(Continue reading)

Alexander Limi | 11 Oct 06:11
Favicon
Gravatar

Bug in PortalTransforms

Hi guys,

Can one of you review this, and see if there is a way to fix it? It's  
pretty crucial for us to be able to output valid XHTML.

— Alexander

Duncan Booth wrote:

> > ---- Forwarded Usenet-message ----
> > From: "Gianluca Di Carlo"
> > <gianluca <at> letreporte.it>
> > Newsgroups: gmane.comp.web.zope.plone.user
> > Subject: Bug in safe_html?
> > Date: Mon, 09 Oct 2006 07:10:57 -0700
> > URL: news://<452A5871.9010409 <at> letreporte.it>
> >
> > If a text field has as output content type "text/x-html-safe", in the
> > result html all <br /> has been replaced by <br>, so the source isn't
> > xhtml valid.
> >
> It is a bug in PortalTransforms. Gianluca seems to have posted a patch
> which looks as though it ought to work.
>In fact, I think it is purely a bug in PortalTransforms. The original
> dictionary comes from CMFDefault.utils, and the values in the dictionary
> are integers, so the code as written works correctly if you never change
> the PortalTransforms configuration, but I think if you use the
> PortalTransforms configuration screens it generates a new dictionary
> with string values causing the code to break.

(Continue reading)

Dennis Schulz | 10 Oct 17:31
Picon

Archtypes SQL Storage

Hello List,

I looked at the SQLStorage package that is part of Archtypes, but found out that Archetypes objects stored
through SQLStorage still have a presence in the ZODB, which means it's not a solution if you totally want to
get rid of Data.fs bloat. (It is also the policy and requirement in our company to have everything in
outsourced in the MySQLDB and I can't change this)

I am looking for a way of using the Archetype Content Object only as the View (presentation layer) for easy
rendering of the forms and mapping them directly to a relational database without any interference of the ZODB.

Is it possible to modify an Archetype that it looks up the content items completly in the relational
database and not first in the zope DB (that maps to the rel. database like in SQLStorage)?
I don't see a reason why one should store the same object 2 times in the ZODB and MySQL.

Any help and hint will be appreciated, Thank you very much!

Regards, Dennis
--

-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Dennis Schulz | 9 Oct 14:30
Picon

Custom archetype storage

Hello,

I am currently devoloping a custom content type with Archtypes that 
should be stored to a relational DB.
As I have to create complex database design with lots of foreign key 
references etc, I consider the SQLStorage feature of Archtypes to 
inflexible for that purpose (only object id and parent id). In addition 
to that unfortunately I have to use MySQL 4 and can't benefit from 
views, triggers etc. as stated in the SQLstorageHowTo that comes with 
Archtypes.

So I thought the best way is writing custom ZSQL Methods that perform 
the db storage when the save button in the base_edit form is pressed and 
fetch the SQL row before the edit or the view form is rendered.

I dont know where to put the python script to perform this tasks.

I don't want to override the accessor and mutator for every single field 
as this is quite inefficient to make a db request for every field. I 
need to define a 'global' mutator / accessor for the whole archetype 
data row, so it is completly synchonized with the external db.

Can anyone give me some hint or even better provide an example?

Thank you very much!

Dennis

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
(Continue reading)


Gmane