Re: Enums with WOXMLDecoder

2011-04-21 Thread Pascal Robert
Le 2011-04-21 à 13:59, Pascal Robert a écrit : > Anyone had any luck with using WOXMLDecoder with enums? I can get them to > encode properly, but I can't decode them since it's looking for a public > constructor, and enums can't have public constructors. > > Any tricks beside trying to overri

Enums with WOXMLDecoder

2011-04-21 Thread Pascal Robert
Anyone had any luck with using WOXMLDecoder with enums? I can get them to encode properly, but I can't decode them since it's looking for a public constructor, and enums can't have public constructors. Any tricks beside trying to override WOXMLDecoder.decodeObjectForKey() to call another metho

Re: Session EC Exception

2011-04-21 Thread Ken - Watermark Studios
I think I might have found the problem. I'm checking my EOModel and I notice that all of my boolean fields are set as Custom Data Type with NSNumber Value Class. Any time I set the Data Type to Boolean and save, as soon as I re-open the EOModel, it is changed back to NSNumber. I know that FrontBase

Re: Session id generation - how is it done?

2011-04-21 Thread Jon Nolan
Thanks Chuck. Exactly what I need. On 4/21/11 8:48 AM, Chuck Hill wrote: It is a securely hashed GUID. It contains no session or user information. It is a hash code to look up the session on the server. Chuck On Apr 21, 2011, at 6:09 AM, Jon Nolan wrote: I don't have the source handy at

Re: isEntityDeletable being cached in D2WContext in ERMODListPage

2011-04-21 Thread David LeBer
On 2011-04-21, at 11:05 AM, Ramsey Gurley wrote: > Create a logger for isEntityDeletable and see when the rule is firing/caching. > > http://wiki.objectstyle.org/confluence/display/WO/How+to+debug+a+D2W+application > > Add > > log4j.logger.er.directtoweb.rules.ERD2WTraceRuleFiringEnabled = DE

Re: isEntityDeletable being cached in D2WContext in ERMODListPage

2011-04-21 Thread Ramsey Gurley
Create a logger for isEntityDeletable and see when the rule is firing/caching. http://wiki.objectstyle.org/confluence/display/WO/How+to+debug+a+D2W+application Add log4j.logger.er.directtoweb.rules.ERD2WTraceRuleFiringEnabled = DEBUG to your properties file. Once you've done that, you can cre

Re: Session id generation - how is it done?

2011-04-21 Thread Chuck Hill
It is a securely hashed GUID. It contains no session or user information. It is a hash code to look up the session on the server. Chuck On Apr 21, 2011, at 6:09 AM, Jon Nolan wrote: > I don't have the source handy at the moment and I need some basic info on how > a session id is created for

Session id generation - how is it done?

2011-04-21 Thread Jon Nolan
I don't have the source handy at the moment and I need some basic info on how a session id is created for a security analysis (you know the drill, is it unique, is it resistant to reverse engineering, etc.) If you're in the know and wouldn't mind, please reply with a quick sentence or two. Th

Re: Session EC Exception

2011-04-21 Thread Amedeo Mantica
On 21/apr/2011, at 10.14, Philippe Rabier wrote: > EOF can't update a user because it's likely that the same user has been > updated by another instance between the moment where the user has been > fetched and the moment where is's saved. You should see that if you set > EOAdaptorDebugEnabled

isEntityDeletable being cached in D2WContext in ERMODListPage

2011-04-21 Thread Freddie Tilley
Hi, I'm using D2W with the ERModernLook framework. When displaying items in a list page I use a ERDDelayedBooleanAssignment with a conditionKey of session.isAdmin to set the isEntityDeletable property. Logging into the site as an either an admin or a regular user will set the isEntityDeletable

Re: Session EC Exception

2011-04-21 Thread Philippe Rabier
EOF can't update a user because it's likely that the same user has been updated by another instance between the moment where the user has been fetched and the moment where is's saved. You should see that if you set EOAdaptorDebugEnabled to true (log4j.logger.er.transaction.adaptor.EOAdaptorDebug

Re: Session EC Exception

2011-04-21 Thread Mark Wardle
I think that is an optimistic locking failure. I've been caught out with dates for this (floats ate dodgy too) The exception should have additional information including an array of properties that have changed. Good luck! Mark -- Dr. Mark Wardle Specialist registrar, Neurology (Sent from my