Re: [OT] Restoring a FrontBase DB
On Sep 28, 2010, at 10:37 PM, Tim Worman wrote: On Sep 28, 2010, at 2:41 PM, Chuck Hill wrote: On Sep 28, 2010, at 2:27 PM, Mike Schrag wrote: He's active on Twitter, @tuparev Dude. I don't twitter. i don't believe it -- http://twitter.com/chillatgvc ms :-) Well, you gotta admit that I am not very prolific. That's 'cause you're chill. rimshot/ -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
database concept help
I am altering a project (adding a relation) and I don't understand the Flatten relationship option. this will be a many to many. I just don't understand what flattening does. I started googling and so far the answers don't click. what's happening in a flattened vs an un-flattened relationship. Ted ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: database concept help
Le 2010-09-29 à 06:42, Theodore Petrosky a écrit : I am altering a project (adding a relation) and I don't understand the Flatten relationship option. this will be a many to many. I just don't understand what flattening does. I started googling and so far the answers don't click. what's happening in a flattened vs an un-flattened relationship. Flattened means that the table in the middle (that only holds the keys to join the two other tables) is hidden in the EOs, and when you create a new object in one of the two tables, the join table will automatically be populated. So let's say you have a People and a Job tables, and the join table is People_Job, to add a new job to a person, you do : aPerson.setRelationJob(newJob) No need to do aPerson.setRelationshipPeopleJob(new PeopleJob). ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
REST routes in JavaMonitor
Good morning! Yesterday, I committed REST routes inside JavaMonitor, this is the stuff that was demonstrated at WOWODC 2010. With those routes + the direct actions Anjo added last year, you can control almost everything remotely (make sure JavaMonitor is not open to the world!). The code was added to the trunk of Wonder (the Wonder53 build) so if you want to play with it, make sure you get it from this build. Below is a couple of call examples. Please note that if JavaMonitor requires a password, you need to append ?passwd=X at the end of the URLs. Fetching the details of all applications : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json Adding a new application : curl -X POST -d {id: 'AjaxExample',type: 'MApplication', name: 'AjaxExample',unixOutputPath: '/opt/Local/Library/WebObjects/Logs', unixPath: '/opt/Local/Library/WebObjects/Applications/AjaxExample.woa/AjaxExample'} http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json Adding a new instance : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/addInstancehost=localhost Delete an application : curl -X DELETE http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample.json Delete an instance : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/deleteInstance?id=1 Adding a new host : curl -X POST -d {id: 'otherserver.com',type: 'MHost', osType: 'MACOSX',address: '192.168.20.5', name: 'otherserver.com'} http://127.0.0.1:56789/apps/WebObjects/JavaMonitor.woa/ra/mHosts.json -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: REST routes in JavaMonitor
On Sep 29, 2010, at 6:55 AM, Pascal Robert wrote: Good morning! Yesterday, I committed REST routes inside JavaMonitor, this is the stuff that was demonstrated at WOWODC 2010. With those routes + the direct actions Anjo added last year, you can control almost everything remotely (make sure JavaMonitor is not open to the world!). The code was added to the trunk of Wonder (the Wonder53 build) so if you want to play with it, make sure you get it from this build. Whoo hoo! Please note that if JavaMonitor requires a password, you need to append ?passwd=X at the end of the URLs. I think Joe Little just turned over in his grave. I mean, he would have if he were dead. He's not dead, is he? I haven't seen him around much lately. *sob* He never writes, I guess we're not important to him anymore. He's probably off single-signing-on with a Ruby developer. Dave Fetching the details of all applications : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json Adding a new application : curl -X POST -d {id: 'AjaxExample',type: 'MApplication', name: 'AjaxExample',unixOutputPath: '/opt/Local/Library/WebObjects/Logs', unixPath: '/opt/Local/Library/WebObjects/Applications/AjaxExample.woa/AjaxExample'} http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json Adding a new instance : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/addInstancehost=localhost Delete an application : curl -X DELETE http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample.json Delete an instance : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/deleteInstance?id=1 Adding a new host : curl -X POST -d {id: 'otherserver.com',type: 'MHost', osType: 'MACOSX',address: '192.168.20.5', name: 'otherserver.com'} http://127.0.0.1:56789/apps/WebObjects/JavaMonitor.woa/ra/mHosts.json -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: database concept help
so I am creating a little test. I have a People and a Job entity. attributes: People has a personName attribute and Job has a jobtitle I created the many to many selecting the Flatten Relationship option. I get a new entity: PeopleJob so far so good. I see in _Job.java a method: addToPeoplesRelationship but no 'set'. Was that a typo on your part? I am going to continue playing with my test app and see where it leads me. thanks for the help. Ted --- On Wed, 9/29/10, Pascal Robert prob...@macti.ca wrote: From: Pascal Robert prob...@macti.ca Subject: Re: database concept help To: Theodore Petrosky tedp...@yahoo.com Cc: webobjects-dev@lists.apple.com Date: Wednesday, September 29, 2010, 6:47 AM Le 2010-09-29 à 06:42, Theodore Petrosky a écrit : I am altering a project (adding a relation) and I don't understand the Flatten relationship option. this will be a many to many. I just don't understand what flattening does. I started googling and so far the answers don't click. what's happening in a flattened vs an un-flattened relationship. Flattened means that the table in the middle (that only holds the keys to join the two other tables) is hidden in the EOs, and when you create a new object in one of the two tables, the join table will automatically be populated. So let's say you have a People and a Job tables, and the join table is People_Job, to add a new job to a person, you do : aPerson.setRelationJob(newJob) No need to do aPerson.setRelationshipPeopleJob(new PeopleJob). ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
UNIQUE constraint on Entity Modeler
Hi! I had the idea I saw, in some W(O)W(O)DC, someone talking about having a unique checkbox on Entity Modeler for a property. That would make the generated SQL have the UNIQUE constraint to the DB. Did I dream about this, or is it real? I can not find it anywhere. Regards, Miguel Arroz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: database concept help
Ted Conceptually, if the association entity (PeopleJob) is just that an association between the two EO's and no other attributes are on the the association then Flatten is good. However, if you have another attribute such as isPrimary on the PeopleJob or startDate then flatten would not be the right approach. Paul On Sep 29, 2010, at 9:14 AM, Theodore Petrosky wrote: so I am creating a little test. I have a People and a Job entity. attributes: People has a personName attribute and Job has a jobtitle I created the many to many selecting the Flatten Relationship option. I get a new entity: PeopleJob so far so good. I see in _Job.java a method: addToPeoplesRelationship but no 'set'. Was that a typo on your part? I am going to continue playing with my test app and see where it leads me. thanks for the help. Ted --- On Wed, 9/29/10, Pascal Robert prob...@macti.ca wrote: From: Pascal Robert prob...@macti.ca Subject: Re: database concept help To: Theodore Petrosky tedp...@yahoo.com Cc: webobjects-dev@lists.apple.com Date: Wednesday, September 29, 2010, 6:47 AM Le 2010-09-29 à 06:42, Theodore Petrosky a écrit : I am altering a project (adding a relation) and I don't understand the Flatten relationship option. this will be a many to many. I just don't understand what flattening does. I started googling and so far the answers don't click. what's happening in a flattened vs an un-flattened relationship. Flattened means that the table in the middle (that only holds the keys to join the two other tables) is hidden in the EOs, and when you create a new object in one of the two tables, the join table will automatically be populated. So let's say you have a People and a Job tables, and the join table is People_Job, to add a new job to a person, you do : aPerson.setRelationJob(newJob) No need to do aPerson.setRelationshipPeopleJob(new PeopleJob). ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com This email sent to p...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UNIQUE constraint on Entity Modeler
inline: NEwEntityIndex.jpg Constraint setting on the index can then be set to 'Distinct' (which I assume is unique in database speak). Not sure if this works for all database platforms though. On Sep 29, 2010, at 9:35 AM, Miguel Arroz wrote: Hi! I had the idea I saw, in some W(O)W(O)DC, someone talking about having a unique checkbox on Entity Modeler for a property. That would make the generated SQL have the UNIQUE constraint to the DB. Did I dream about this, or is it real? I can not find it anywhere. Regards, Miguel Arroz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UNIQUE constraint on Entity Modeler
Hi! Thanks! Doesn't seem to work on PostgreSQL. :( Regards, Miguel Arroz On 2010/09/29, at 14:43, Kieran Kelleher wrote: NEwEntityIndex.jpg Constraint setting on the index can then be set to 'Distinct' (which I assume is unique in database speak). Not sure if this works for all database platforms though. On Sep 29, 2010, at 9:35 AM, Miguel Arroz wrote: Hi! I had the idea I saw, in some W(O)W(O)DC, someone talking about having a unique checkbox on Entity Modeler for a property. That would make the generated SQL have the UNIQUE constraint to the DB. Did I dream about this, or is it real? I can not find it anywhere. Regards, Miguel Arroz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UNIQUE constraint on Entity Modeler
http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/eoaccess/EOEntityIndex.html EOEntityIndex is new in 5.4.x and would require plugin support for it to work. I assume that is at least one of the reasons why it does not work with Wonder's Postgres plugin. When I asked on list about this earlier, Chuck Hill said Uh, if it was a beef roast, it would still be mooing. Nothing to do with Wonder. Consider it an API design sketch. It is a very good idea, just not ready for use. (^_^) Ramsey On Sep 29, 2010, at 9:48 AM, Miguel Arroz wrote: Hi! Thanks! Doesn't seem to work on PostgreSQL. :( Regards, Miguel Arroz On 2010/09/29, at 14:43, Kieran Kelleher wrote: NEwEntityIndex.jpg Constraint setting on the index can then be set to 'Distinct' (which I assume is unique in database speak). Not sure if this works for all database platforms though. On Sep 29, 2010, at 9:35 AM, Miguel Arroz wrote: Hi! I had the idea I saw, in some W(O)W(O)DC, someone talking about having a unique checkbox on Entity Modeler for a property. That would make the generated SQL have the UNIQUE constraint to the DB. Did I dream about this, or is it real? I can not find it anywhere. Regards, Miguel Arroz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com This email sent to ram...@xeotech.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UNIQUE constraint on Entity Modeler
I am guessing is needs to be implemented in the appropriate db platform plugin or SQLHelper class in Wonder. it is probably implemented in FB since that probably would have been what Mike S was using when he added that feature. On Sep 29, 2010, at 9:48 AM, Miguel Arroz wrote: Hi! Thanks! Doesn't seem to work on PostgreSQL. :( Regards, Miguel Arroz On 2010/09/29, at 14:43, Kieran Kelleher wrote: NEwEntityIndex.jpg Constraint setting on the index can then be set to 'Distinct' (which I assume is unique in database speak). Not sure if this works for all database platforms though. On Sep 29, 2010, at 9:35 AM, Miguel Arroz wrote: Hi! I had the idea I saw, in some W(O)W(O)DC, someone talking about having a unique checkbox on Entity Modeler for a property. That would make the generated SQL have the UNIQUE constraint to the DB. Did I dream about this, or is it real? I can not find it anywhere. Regards, Miguel Arroz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UNIQUE constraint on Entity Modeler
OK, well in that case, the new WO54 wonder branch is an opportunity for someone with time on their hands to implement it ;-) -Kieran On Sep 29, 2010, at 10:00 AM, Ramsey Gurley wrote: http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/eoaccess/EOEntityIndex.html EOEntityIndex is new in 5.4.x and would require plugin support for it to work. I assume that is at least one of the reasons why it does not work with Wonder's Postgres plugin. When I asked on list about this earlier, Chuck Hill said Uh, if it was a beef roast, it would still be mooing. Nothing to do with Wonder. Consider it an API design sketch. It is a very good idea, just not ready for use. (^_^) Ramsey On Sep 29, 2010, at 9:48 AM, Miguel Arroz wrote: Hi! Thanks! Doesn't seem to work on PostgreSQL. :( Regards, Miguel Arroz On 2010/09/29, at 14:43, Kieran Kelleher wrote: NEwEntityIndex.jpg Constraint setting on the index can then be set to 'Distinct' (which I assume is unique in database speak). Not sure if this works for all database platforms though. On Sep 29, 2010, at 9:35 AM, Miguel Arroz wrote: Hi! I had the idea I saw, in some W(O)W(O)DC, someone talking about having a unique checkbox on Entity Modeler for a property. That would make the generated SQL have the UNIQUE constraint to the DB. Did I dream about this, or is it real? I can not find it anywhere. Regards, Miguel Arroz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com This email sent to ram...@xeotech.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UNIQUE constraint on Entity Modeler
the bigger issue is that the 5.3 and 5.4 schema generation API's aren't compatible, so if you use the 5.3 API's, you hit these weird API paths that bypass certain features. it's kind of a mess. currently migrations and entity modeler both use the 5.3 API's. now that we have a 5.4 branch, we can actually call through the 5.4 API's and these features can be turned on. On Sep 29, 2010, at 10:00 AM, Ramsey Gurley wrote: http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/eoaccess/EOEntityIndex.html EOEntityIndex is new in 5.4.x and would require plugin support for it to work. I assume that is at least one of the reasons why it does not work with Wonder's Postgres plugin. When I asked on list about this earlier, Chuck Hill said Uh, if it was a beef roast, it would still be mooing. Nothing to do with Wonder. Consider it an API design sketch. It is a very good idea, just not ready for use. (^_^) Ramsey On Sep 29, 2010, at 9:48 AM, Miguel Arroz wrote: Hi! Thanks! Doesn't seem to work on PostgreSQL. :( Regards, Miguel Arroz On 2010/09/29, at 14:43, Kieran Kelleher wrote: NEwEntityIndex.jpg Constraint setting on the index can then be set to 'Distinct' (which I assume is unique in database speak). Not sure if this works for all database platforms though. On Sep 29, 2010, at 9:35 AM, Miguel Arroz wrote: Hi! I had the idea I saw, in some W(O)W(O)DC, someone talking about having a unique checkbox on Entity Modeler for a property. That would make the generated SQL have the UNIQUE constraint to the DB. Did I dream about this, or is it real? I can not find it anywhere. Regards, Miguel Arroz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com This email sent to ram...@xeotech.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com This email sent to msch...@pobox.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: REST routes in JavaMonitor
Good job Robert, er, sorry I meant Elvis ;-) On Sep 29, 2010, at 6:55 AM, Pascal Robert wrote: Good morning! Yesterday, I committed REST routes inside JavaMonitor, this is the stuff that was demonstrated at WOWODC 2010. With those routes + the direct actions Anjo added last year, you can control almost everything remotely (make sure JavaMonitor is not open to the world!). The code was added to the trunk of Wonder (the Wonder53 build) so if you want to play with it, make sure you get it from this build. Below is a couple of call examples. Please note that if JavaMonitor requires a password, you need to append ?passwd=X at the end of the URLs. Fetching the details of all applications : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json Adding a new application : curl -X POST -d {id: 'AjaxExample',type: 'MApplication', name: 'AjaxExample',unixOutputPath: '/opt/Local/Library/WebObjects/Logs', unixPath: '/opt/Local/Library/WebObjects/Applications/AjaxExample.woa/AjaxExample'} http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json Adding a new instance : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/addInstancehost=localhost Delete an application : curl -X DELETE http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample.json Delete an instance : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/deleteInstance?id=1 Adding a new host : curl -X POST -d {id: 'otherserver.com',type: 'MHost', osType: 'MACOSX',address: '192.168.20.5', name: 'otherserver.com'} http://127.0.0.1:56789/apps/WebObjects/JavaMonitor.woa/ra/mHosts.json -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: REST routes in JavaMonitor
Le 2010-09-29 à 10:10, Kieran Kelleher a écrit : Good job Robert, er, sorry I meant Elvis ;-) Just a note, it's not for Elvis the singer, it's for Elvis Gratton : http://www.youtube.com/watch?v=FVHs12e-Fgc On Sep 29, 2010, at 6:55 AM, Pascal Robert wrote: Good morning! Yesterday, I committed REST routes inside JavaMonitor, this is the stuff that was demonstrated at WOWODC 2010. With those routes + the direct actions Anjo added last year, you can control almost everything remotely (make sure JavaMonitor is not open to the world!). The code was added to the trunk of Wonder (the Wonder53 build) so if you want to play with it, make sure you get it from this build. Below is a couple of call examples. Please note that if JavaMonitor requires a password, you need to append ?passwd=X at the end of the URLs. Fetching the details of all applications : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json Adding a new application : curl -X POST -d {id: 'AjaxExample',type: 'MApplication', name: 'AjaxExample',unixOutputPath: '/opt/Local/Library/WebObjects/Logs', unixPath: '/opt/Local/Library/WebObjects/Applications/AjaxExample.woa/AjaxExample'} http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json Adding a new instance : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/addInstancehost=localhost Delete an application : curl -X DELETE http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample.json Delete an instance : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/deleteInstance?id=1 Adding a new host : curl -X POST -d {id: 'otherserver.com',type: 'MHost', osType: 'MACOSX',address: '192.168.20.5', name: 'otherserver.com'} http://127.0.0.1:56789/apps/WebObjects/JavaMonitor.woa/ra/mHosts.json -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UNIQUE constraint on Entity Modeler
i don't think FB does it either ... if entity modeler just called the 5.4 generation method, it would magically appear, probably. ms On Sep 29, 2010, at 10:03 AM, Kieran Kelleher wrote: I am guessing is needs to be implemented in the appropriate db platform plugin or SQLHelper class in Wonder. it is probably implemented in FB since that probably would have been what Mike S was using when he added that feature. On Sep 29, 2010, at 9:48 AM, Miguel Arroz wrote: Hi! Thanks! Doesn't seem to work on PostgreSQL. :( Regards, Miguel Arroz On 2010/09/29, at 14:43, Kieran Kelleher wrote: NEwEntityIndex.jpg Constraint setting on the index can then be set to 'Distinct' (which I assume is unique in database speak). Not sure if this works for all database platforms though. On Sep 29, 2010, at 9:35 AM, Miguel Arroz wrote: Hi! I had the idea I saw, in some W(O)W(O)DC, someone talking about having a unique checkbox on Entity Modeler for a property. That would make the generated SQL have the UNIQUE constraint to the DB. Did I dream about this, or is it real? I can not find it anywhere. Regards, Miguel Arroz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com This email sent to msch...@pobox.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UNIQUE constraint on Entity Modeler
On Sep 29, 2010, at 7:00 AM, Ramsey Gurley wrote: http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/eoaccess/EOEntityIndex.html EOEntityIndex is new in 5.4.x and would require plugin support for it to work. I assume that is at least one of the reasons why it does not work with Wonder's Postgres plugin. When I asked on list about this earlier, Chuck Hill said Uh, if it was a beef roast, it would still be mooing. Nothing to do with Wonder. Consider it an API design sketch. It is a very good idea, just not ready for use. I don't think anything has changed since then. IIRC (and it has been a while now), from peeking it appeared that even part inside of WO was incomplete. It would be a good thing to fix in Wonder. Chuck On Sep 29, 2010, at 9:48 AM, Miguel Arroz wrote: Hi! Thanks! Doesn't seem to work on PostgreSQL. :( Regards, Miguel Arroz On 2010/09/29, at 14:43, Kieran Kelleher wrote: NEwEntityIndex.jpg Constraint setting on the index can then be set to 'Distinct' (which I assume is unique in database speak). Not sure if this works for all database platforms though. On Sep 29, 2010, at 9:35 AM, Miguel Arroz wrote: Hi! I had the idea I saw, in some W(O)W(O)DC, someone talking about having a unique checkbox on Entity Modeler for a property. That would make the generated SQL have the UNIQUE constraint to the DB. Did I dream about this, or is it real? I can not find it anywhere. Regards, Miguel Arroz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com This email sent to ram...@xeotech.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UNIQUE constraint on Entity Modeler
On Sep 29, 2010, at 11:41 AM, Chuck Hill wrote: On Sep 29, 2010, at 7:00 AM, Ramsey Gurley wrote: http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/eoaccess/EOEntityIndex.html EOEntityIndex is new in 5.4.x and would require plugin support for it to work. I assume that is at least one of the reasons why it does not work with Wonder's Postgres plugin. When I asked on list about this earlier, Chuck Hill said Uh, if it was a beef roast, it would still be mooing. Nothing to do with Wonder. Consider it an API design sketch. It is a very good idea, just not ready for use. I don't think anything has changed since then. IIRC (and it has been a while now), from peeking it appeared that even part inside of WO was incomplete. It would be a good thing to fix in Wonder. Chuck Sounds impossible. I don't think anyone could pull that off. Not even Mike (^_~) Ramsey On Sep 29, 2010, at 9:48 AM, Miguel Arroz wrote: Hi! Thanks! Doesn't seem to work on PostgreSQL. :( Regards, Miguel Arroz On 2010/09/29, at 14:43, Kieran Kelleher wrote: NEwEntityIndex.jpg Constraint setting on the index can then be set to 'Distinct' (which I assume is unique in database speak). Not sure if this works for all database platforms though. On Sep 29, 2010, at 9:35 AM, Miguel Arroz wrote: Hi! I had the idea I saw, in some W(O)W(O)DC, someone talking about having a unique checkbox on Entity Modeler for a property. That would make the generated SQL have the UNIQUE constraint to the DB. Did I dream about this, or is it real? I can not find it anywhere. Regards, Miguel Arroz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com This email sent to ram...@xeotech.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: UNIQUE constraint on Entity Modeler
http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/eoaccess/EOEntityIndex.html EOEntityIndex is new in 5.4.x and would require plugin support for it to work. I assume that is at least one of the reasons why it does not work with Wonder's Postgres plugin. When I asked on list about this earlier, Chuck Hill said Uh, if it was a beef roast, it would still be mooing. Nothing to do with Wonder. Consider it an API design sketch. It is a very good idea, just not ready for use. I don't think anything has changed since then. IIRC (and it has been a while now), from peeking it appeared that even part inside of WO was incomplete. It would be a good thing to fix in Wonder. Sounds impossible. I don't think anyone could pull that off. Not even Mike (^_~) this is in the category of things i'm less likely to fix in wonder ... doing things twice in different ways is generally unfun. ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: REST routes in JavaMonitor
I'm not dead yet! I think I'll go for a walk... (thump) Yes, my pre-burial grave site just had a small earth tremor. Busy finishing up old projects and about to jump back into the latest 3.6.1 w/ Wonder 5.4 branch goodness for ERModern stuff. Hopefully its not breaking daily at this point. D2W mind binding will commence next week as I hope to relearn (or learn) that state of mind. In all seriousness, I'm unsure of what should be done with JavaMonitor and passwords to alleviate the obvious potential weaknesses. SSL is a chore and not worth the hassle for this per se, but I still think some hash approach for ?pwhash=123456ABCDEF that could be longish (think WEP?) that is evaluated by the REST service on its end to compare hashes seems to be a least more proper approach. Yes, the hash could be replayed if caught over the air, but its still just a computed representation of the password, and not the password itself. This still keeps the clear text password secret from the net since this may be in use at other places (db pass, user account, etc) On Wed, Sep 29, 2010 at 4:18 AM, David Avendasora webobje...@avendasora.com wrote: On Sep 29, 2010, at 6:55 AM, Pascal Robert wrote: Good morning! Yesterday, I committed REST routes inside JavaMonitor, this is the stuff that was demonstrated at WOWODC 2010. With those routes + the direct actions Anjo added last year, you can control almost everything remotely (make sure JavaMonitor is not open to the world!). The code was added to the trunk of Wonder (the Wonder53 build) so if you want to play with it, make sure you get it from this build. Whoo hoo! Please note that if JavaMonitor requires a password, you need to append ?passwd=X at the end of the URLs. I think Joe Little just turned over in his grave. I mean, he would have if he were dead. He's not dead, is he? I haven't seen him around much lately. *sob* He never writes, I guess we're not important to him anymore. He's probably off single-signing-on with a Ruby developer. Dave Fetching the details of all applications : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json Adding a new application : curl -X POST -d {id: 'AjaxExample',type: 'MApplication', name: 'AjaxExample',unixOutputPath: '/opt/Local/Library/WebObjects/Logs', unixPath: '/opt/Local/Library/WebObjects/Applications/AjaxExample.woa/AjaxExample'} http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications.json Adding a new instance : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/addInstancehost=localhost Delete an application : curl -X DELETE http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample.json Delete an instance : curl -X GET http://127.0.0.1:56789/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/AjaxExample/deleteInstance?id=1 Adding a new host : curl -X POST -d {id: 'otherserver.com',type: 'MHost', osType: 'MACOSX',address: '192.168.20.5', name: 'otherserver.com'} http://127.0.0.1:56789/apps/WebObjects/JavaMonitor.woa/ra/mHosts.json -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jmlittle%40gmail.com This email sent to jmlit...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Current Status of WO
Hi list, I am planning a new project with heavy load. No HTML output, just plists. Lots of users, small data footprint (about 10k per request). PostgreSQL. I consider using WO and EOF again because it served me well in the last (almost) 15 years. But I am not sure about the current status. The net has lots of outdated info and a some fresh about wonder. This list looks still very active (that gives me hope). What is the current status of WO? Do we have a public hosted WO5.4 that Apple won’t pull? I left this list two years ago so if someone could please bring me up to speed? Thank you for your time. It is appreciated! atze ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Current Status of WO
Le 2010-09-29 à 14:28, Alexander Spohr a écrit : Hi list, I am planning a new project with heavy load. No HTML output, just plists. Lots of users, small data footprint (about 10k per request). PostgreSQL. I consider using WO and EOF again because it served me well in the last (almost) 15 years. But I am not sure about the current status. The net has lots of outdated info and a some fresh about wonder. This list looks still very active (that gives me hope). What is the current status of WO? Do we have a public hosted WO5.4 that Apple won’t pull? I left this list two years ago so if someone could please bring me up to speed? WO 5.4.3 is still available, the docs too, even if it's marked as legacy, and Wonder/WOLips/WOWODC are picking up where Apple left. We moved from Apple-supported to community-supported. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Current Status of WO
On Sep 29, 2010, at 11:28 AM, Alexander Spohr wrote: Hi list, I am planning a new project with heavy load. No HTML output, just plists. Lots of users, small data footprint (about 10k per request). PostgreSQL. I consider using WO and EOF again because it served me well in the last (almost) 15 years. But I am not sure about the current status. The net has lots of outdated info and a some fresh about wonder. This list looks still very active (that gives me hope). What is the current status of WO? The same as two years ago. Do we have a public hosted WO5.4 that Apple won’t pull? Who knows what Apple may decide to do? I left this list two years ago so if someone could please bring me up to speed? Thank you for your time. It is appreciated! Things are the same as they ever were, except for lots of advances in Wonder. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Current Status of WO
And for you app, you may want to look at ERRest framework. Paul On Sep 29, 2010, at 2:31 PM, Chuck Hill wrote: On Sep 29, 2010, at 11:28 AM, Alexander Spohr wrote: Hi list, I am planning a new project with heavy load. No HTML output, just plists. Lots of users, small data footprint (about 10k per request). PostgreSQL. I consider using WO and EOF again because it served me well in the last (almost) 15 years. But I am not sure about the current status. The net has lots of outdated info and a some fresh about wonder. This list looks still very active (that gives me hope). What is the current status of WO? The same as two years ago. Do we have a public hosted WO5.4 that Apple won’t pull? Who knows what Apple may decide to do? I left this list two years ago so if someone could please bring me up to speed? Thank you for your time. It is appreciated! Things are the same as they ever were, except for lots of advances in Wonder. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com This email sent to p...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [Wonder-disc] ERXNavigationMenu - can you have more than one?
Hi Tim, Sorry to be slow replying; day job busy at present! My NavigationMenu.plist looks like this: ( { name = Root; children = (Home, Patients, Reports / letters, Families, Biobank, Messages, My profile, Admin, Logout); }, { name = Home; directActionClass = DirectAction; directActionName = default; }, { name = Patients; children = (All patients, Add patient, Recent patients); directActionClass = Patients; directActionName = listPatients; }, { name = Admin; children = session.authenticatedUser.role.name; childrenChoices = { Inactive = (); Normal user = (); Power user = (Users, News, Roles); System = (Users, News, Roles, Centres, Projects, Templates, Form types, Encounter templates, Import data, View data); }; directActionClass = Users; directActionName = listUsers; }, Well, that's just a fragment. The children choices are determined at runtime using the keypath and the lookup as above. You'll see I'm simply linking to different DAs in different classes. All my DA classes are subclasses of a SecureDirectAction class which includes the code: /** * Check that user is logged in prior to executing any direct actions. */ @Override public WOActionResults performActionNamed(String actionName) { if (isLoggedIn()==true) { return super.performActionNamed(actionName); } return redirectToLoginPage(this.context()); } /** * Do we have a current and valid logged in user? * This method is careful not to create a session if one does not exist. * @return */ public boolean isLoggedIn() { Session session = (Session) existingSession(); if (session!=null) { if (session.authenticatedUser()==null) return false; if (session.authenticatedUser().role()==null) return false; return checkAccessForUser(session.authenticatedUser()); } return false; } /** * Can the given user access this page? * Designed to be overridden by subclasses to add additional checks if necessary. */ protected boolean checkAccessForUser(User u) { return u.role().canLogin(); } My admin DA class overrides this method: /* (non-Javadoc) * @see com.eldrix.news.app.SecureDirectAction#checkAccessForUser(com.eldrix.rsdb.model.User) */ @Override protected boolean checkAccessForUser(User u) { return u.role().isSystem(); } public WOActionResults listTemplatesAction() { return listAdminData(Template.ENTITY_NAME, new String[]{Admin,Templates, List templates}); } public WOActionResults listSurgeriesAction() { return listAdminData(Surgery.ENTITY_NAME, new String[]{Admin,View data, SURG}); } public WOActionResults listConceptsAction() { return listAdminData(Concept.ENTITY_NAME, new String[]{Admin, View data, Concepts}); } public WOActionResults listDescriptionsAction() { return listAdminData(Description.ENTITY_NAME, new String[]{Admin, View data, Descriptions}); } public WOActionResults listRelationshipsAction() { return listAdminData(Relationship.ENTITY_NAME, new String[]{Admin,View data, Relationships}); } protected WOActionResults listAdminData(String entityName, String[] navigation) { ListPageInterface nextPage = D2W.factory().listPageForEntityNamed(entityName, session()); EODatabaseDataSource ds = newEODatabaseDataSource(ERXEC.newEditingContext(), entityName); nextPage.setDataSource(ds); session().navigationState().setState(new NSArrayString(navigation)); return (WOActionResults) nextPage; } Hope this helps. Not entirely sure this is the *best* way of handling this stuff, but it seems to be working... Best wishes, Mark On 27 September 2010 18:42, Tim Worman li...@thetimmy.com wrote: Mark: Thanks for the response. Time permitting, could you expand on what you said about different classes reflecting different submenus? So, I take it that the solution you're using incorporates a single NavigationMenu.plist. I was wondering about this since it only seems to be possible to point to one plist in the properties. My current navigation is a custom drop-down list using a ul structure and of course, it is simple for me to exclude menu items based on membership in a certain role. Since ERXNavigation is described in a plist, I've been having a hard time figuring out how you exclude items in code. Tim On Sep 26, 2010, at 11:58 PM, Mark Wardle wrote: Hi Tim. I use ERXNavigation and have a large number if D2W generated pages. I took the decision early on to use custom Direct Actions for these menus - with different classes reflecting different submenus. I also use some conventional non-D2W components manually crafted (eg the home page) and so those DAs simply do a pageWithName call. As such you could use a custom navigation
Re: Single stack optimistic lock exception?
On 24/Sep/2010, at 11:37 AM, Alan Ward wrote: My vote is that you are crazy. :-) This becomes an issue in apps where users concurrently edit the same object. Out of the box, it is last in wins and the second user to save gets no warning that what they are actually editing is not what they were looking at. Right, but there are various ways around that. Which brings us back to 'implement the delegate and you get notified'. Perhaps not what folks would like today however it's what's there. ;-) M. (Who's now back from traveling and working through the e-mail backlog. ;-) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Single stack optimistic lock exception?
I spoke to our Oracle guy, and he says that we should maintain one connection to one server, so it shouldn't be possible for us to get one record from one, and a different from the other. So much for that idea! On Sep 24, 2010, at 12:58 PM, Miguel Arroz wrote: It's Oracle RAC, so yes, a cluster. Could it be that you are writing a row to one server and reading the same row immediately after from another server that still didn't receive the update? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Single stack optimistic lock exception?
Hi! On 2010/09/29, at 21:31, Mark Ritchie wrote: (Who's now back from traveling and working through the e-mail backlog. ;-) I was starting to get worried about you! ;) Regards, Miguel Arroz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Single stack optimistic lock exception?
My vote is that you are crazy. :-) This becomes an issue in apps where users concurrently edit the same object. Out of the box, it is last in wins and the second user to save gets no warning that what they are actually editing is not what they were looking at. Right, but there are various ways around that. Which brings us back to 'implement the delegate and you get notified'. Perhaps not what folks would like today however it's what's there. ;-) M. Miguel's still right, though. This is still kind of busted ... Just because it's technically possible that you could implement a workaround doesn't mean the default behavior isn't wrong. Particularly when the proposed alternative implementation is really not simple. ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Single stack optimistic lock exception?
On 29/Sep/2010, at 1:39 PM, Mike Schrag wrote: My vote is that you are crazy. :-) This becomes an issue in apps where users concurrently edit the same object. Out of the box, it is last in wins and the second user to save gets no warning that what they are actually editing is not what they were looking at. Right, but there are various ways around that. Which brings us back to 'implement the delegate and you get notified'. Perhaps not what folks would like today however it's what's there. ;-) M. Miguel's still right, though. This is still kind of busted ... Just because it's technically possible that you could implement a workaround doesn't mean the default behavior isn't wrong. Particularly when the proposed alternative implementation is really not simple. Yes, as the out of band conversations have shown, there are lots of ideas on how this might otherwise be. However, given 5.4.3, the delegate is the way to catch the case. Further conversation should be tabled until the nerf bats are handed out and we have suitable drinks! ;-) M. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Single stack optimistic lock exception?
My vote is that you are crazy. :-) This becomes an issue in apps where users concurrently edit the same object. Out of the box, it is last in wins and the second user to save gets no warning that what they are actually editing is not what they were looking at. Right, but there are various ways around that. Which brings us back to 'implement the delegate and you get notified'. Perhaps not what folks would like today however it's what's there. ;-) M. Miguel's still right, though. This is still kind of busted ... Just because it's technically possible that you could implement a workaround doesn't mean the default behavior isn't wrong. Particularly when the proposed alternative implementation is really not simple. Yes, as the out of band conversations have shown, there are lots of ideas on how this might otherwise be. However, given 5.4.3, the delegate is the way to catch the case. Further conversation should be tabled until the nerf bats are handed out and we have suitable drinks! ;-) M. Read: busted so we are in agreement :) ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Maybe out of the Loop
Hi List I just read this morning on a thread about state of WO. I have great confidence it the future but was not sure if I misread something. Has Apple ceased active development of WO and is it now in the hands of the WO Community with projects such as WONDER? Does Apple support its development by paying active third parties in improving and bug fixing 5.4.x - and what about WO 6 will it ever show its self? GIno ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Single stack optimistic lock exception?
On 29/Sep/2010, at 1:46 PM, Mike Schrag wrote: so we are in agreement :) Sure, I'll go with that! ;-) M. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Maybe out of the Loop
On Sep 29, 2010, at 4:49 PM, Gino Pacitti wrote: Hi List I just read this morning on a thread about state of WO. I have great confidence it the future but was not sure if I misread something. Has Apple ceased active development of WO and is it now in the hands of the WO Community with projects such as WONDER? Does Apple support its development by paying active third parties in improving and bug fixing 5.4.x - and what about WO 6 will it ever show its self? GIno Apple's official policy is No Comment on anything regarding future products. (^_^) On the outside looking in, I see WO docs in the legacy section of their developer site. I see no new updates to WO in something like two years. But I also hear rumors that they foot the bill for nice things like ERProfiling and ERModernLook frameworks in Wonder. Which leaves me wondering only one thing... How do I get them to sponsor *my* cool open source works (^_~)d Ramsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Maybe out of the Loop
On Sep 29, 2010, at 1:49 PM, Gino Pacitti wrote: Hi List I just read this morning on a thread about state of WO. I have great confidence it the future but was not sure if I misread something. Has Apple ceased active development of WO and is it now in the hands of the WO Community with projects such as WONDER? Apple uses WO internally and continues to invest in it. Does Apple support its development by paying active third parties in improving and bug fixing 5.4.x Work on WO itself happens inside Apple. Most recent big changes have come from Wonder contributors. Apple also supports Wonder, directly or indirectly, and also the WOLips tool set. - and what about WO 6 will it ever show its self? Who knows? -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Patched MySQL plugin
Hello everyone, I patched MySQLPlugin locally with the patch that Simon McLean submitted 5 days ago (JIRA WONDER-600, http://issues.objectstyle.org/jira/browse/WONDER-600). If you use MySQL, can you try this version and let us know if the patch is working for you? https://services.wocommunity.org/MySQLPlugIn.tgz -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Patched MySQL plugin
Hi, not really any of my business but am I the only one who finds this approach unsettling ? NSTimestamps are points in time. They are not NSDatestamps. Why mess with the comparison by setting to zero hours, minute and seconds ? Why not just minutes and seconds or again, may be dates too so that everything within a month returns equal... In my app, when that's the behaviour I want, I zero out the data before writing it to the database so that subsequent checks for equality will return values... this patch is like rounding off double values so they can be checked for equality and have a good chance of matching. Finally, shouldn't all database have matching behaviour ? moving to a different database will certainly create surprising results... Maybe I'm missing something... Anyway... Best regards. On 2010-09-29, at 20:30 , Pascal Robert wrote: Hello everyone, I patched MySQLPlugin locally with the patch that Simon McLean submitted 5 days ago (JIRA WONDER-600, http://issues.objectstyle.org/jira/browse/WONDER-600). If you use MySQL, can you try this version and let us know if the patch is working for you? https://services.wocommunity.org/MySQLPlugIn.tgz -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/louisdemers%40mac.com This email sent to louisdem...@mac.com Louis Demers eng. www.obzerv.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Patched MySQL plugin
On 30/09/2010, at 10:21 AM, Louis Demers wrote: In my app, when that's the behaviour I want, I zero out the data before writing it to the database so that subsequent checks for equality will return values... FWIW, I've found that the only clean solution to this problem is to abandon using timestamp types to represent a 1-day-resolution date. In my experience, at least, zeroing out the time part only works until you start using multiple timezones. -- Paul. http://logicsquad.net/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Patched MySQL plugin
On Sep 29, 2010, at 9:40 PM, Paul Hoadley wrote: On 30/09/2010, at 10:21 AM, Louis Demers wrote: In my app, when that's the behaviour I want, I zero out the data before writing it to the database so that subsequent checks for equality will return values... FWIW, I've found that the only clean solution to this problem is to abandon using timestamp types to represent a 1-day-resolution date. In my experience, at least, zeroing out the time part only works until you start using multiple timezones. Apple agrees with you Paul. http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/index.html Calendar dates should not be represented by NSTimestamp. The Date prototype is wrong for using it IMHO. Ramsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Patched MySQL plugin
Piling on here. As Louis pointed out, NSTimestamps are points in time. Messing with that in prototypes is a Bad Idea. You will regret. Have you crossed a DST boundary yet in your testing? And making one database behave differently than others seems at least unwise. If you want a calendar date, find a different class. Joda Time and Apache Commons would be a good place to start looking. That would make welcome and very useful contribution to Wonder. Chuck and hating Java and Dates On Sep 29, 2010, at 6:58 PM, Ramsey Lee Gurley wrote: On Sep 29, 2010, at 9:40 PM, Paul Hoadley wrote: On 30/09/2010, at 10:21 AM, Louis Demers wrote: In my app, when that's the behaviour I want, I zero out the data before writing it to the database so that subsequent checks for equality will return values... FWIW, I've found that the only clean solution to this problem is to abandon using timestamp types to represent a 1-day-resolution date. In my experience, at least, zeroing out the time part only works until you start using multiple timezones. Apple agrees with you Paul. http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/index.html Calendar dates should not be represented by NSTimestamp. The Date prototype is wrong for using it IMHO. Ramsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Patched MySQL plugin
An NSTimestamp represents a point in time, as has been stated. Making it behave differently is a bad idea. I have a set of methods that determine today's date in GMT, and store things that are dates that way. I've never had a problem. I pull out the year, month, and day from a timestamp represented in the local timezone, then create a new timestamp with the same year, month, and day with GMT as the timezone. It's always worked for me... Ken On Sep 29, 2010, at 10:44 PM, Chuck Hill wrote: Piling on here. As Louis pointed out, NSTimestamps are points in time. Messing with that in prototypes is a Bad Idea. You will regret. Have you crossed a DST boundary yet in your testing? And making one database behave differently than others seems at least unwise. If you want a calendar date, find a different class. Joda Time and Apache Commons would be a good place to start looking. That would make welcome and very useful contribution to Wonder. Chuck and hating Java and Dates On Sep 29, 2010, at 6:58 PM, Ramsey Lee Gurley wrote: On Sep 29, 2010, at 9:40 PM, Paul Hoadley wrote: On 30/09/2010, at 10:21 AM, Louis Demers wrote: In my app, when that's the behaviour I want, I zero out the data before writing it to the database so that subsequent checks for equality will return values... FWIW, I've found that the only clean solution to this problem is to abandon using timestamp types to represent a 1-day-resolution date. In my experience, at least, zeroing out the time part only works until you start using multiple timezones. Apple agrees with you Paul. http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/index.html Calendar dates should not be represented by NSTimestamp. The Date prototype is wrong for using it IMHO. Ramsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com This email sent to kenli...@anderhome.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Patched MySQL plugin
You are not making me hate dates any less. :-) On Sep 29, 2010, at 8:15 PM, Ken Anderson wrote: An NSTimestamp represents a point in time, as has been stated. Making it behave differently is a bad idea. I have a set of methods that determine today's date in GMT, and store things that are dates that way. I've never had a problem. I pull out the year, month, and day from a timestamp represented in the local timezone, then create a new timestamp with the same year, month, and day with GMT as the timezone. It's always worked for me... Ken On Sep 29, 2010, at 10:44 PM, Chuck Hill wrote: Piling on here. As Louis pointed out, NSTimestamps are points in time. Messing with that in prototypes is a Bad Idea. You will regret. Have you crossed a DST boundary yet in your testing? And making one database behave differently than others seems at least unwise. If you want a calendar date, find a different class. Joda Time and Apache Commons would be a good place to start looking. That would make welcome and very useful contribution to Wonder. Chuck and hating Java and Dates On Sep 29, 2010, at 6:58 PM, Ramsey Lee Gurley wrote: On Sep 29, 2010, at 9:40 PM, Paul Hoadley wrote: On 30/09/2010, at 10:21 AM, Louis Demers wrote: In my app, when that's the behaviour I want, I zero out the data before writing it to the database so that subsequent checks for equality will return values... FWIW, I've found that the only clean solution to this problem is to abandon using timestamp types to represent a 1-day-resolution date. In my experience, at least, zeroing out the time part only works until you start using multiple timezones. Apple agrees with you Paul. http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/index.html Calendar dates should not be represented by NSTimestamp. The Date prototype is wrong for using it IMHO. Ramsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com This email sent to kenli...@anderhome.com -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Patched MySQL plugin
Sorry Chuck - I hate them too :) On Sep 29, 2010, at 11:17 PM, Chuck Hill wrote: You are not making me hate dates any less. :-) On Sep 29, 2010, at 8:15 PM, Ken Anderson wrote: An NSTimestamp represents a point in time, as has been stated. Making it behave differently is a bad idea. I have a set of methods that determine today's date in GMT, and store things that are dates that way. I've never had a problem. I pull out the year, month, and day from a timestamp represented in the local timezone, then create a new timestamp with the same year, month, and day with GMT as the timezone. It's always worked for me... Ken On Sep 29, 2010, at 10:44 PM, Chuck Hill wrote: Piling on here. As Louis pointed out, NSTimestamps are points in time. Messing with that in prototypes is a Bad Idea. You will regret. Have you crossed a DST boundary yet in your testing? And making one database behave differently than others seems at least unwise. If you want a calendar date, find a different class. Joda Time and Apache Commons would be a good place to start looking. That would make welcome and very useful contribution to Wonder. Chuck and hating Java and Dates On Sep 29, 2010, at 6:58 PM, Ramsey Lee Gurley wrote: On Sep 29, 2010, at 9:40 PM, Paul Hoadley wrote: On 30/09/2010, at 10:21 AM, Louis Demers wrote: In my app, when that's the behaviour I want, I zero out the data before writing it to the database so that subsequent checks for equality will return values... FWIW, I've found that the only clean solution to this problem is to abandon using timestamp types to represent a 1-day-resolution date. In my experience, at least, zeroing out the time part only works until you start using multiple timezones. Apple agrees with you Paul. http://developer.apple.com/legacy/mac/library/documentation/InternetWeb/Reference/WO542Reference/index.html Calendar dates should not be represented by NSTimestamp. The Date prototype is wrong for using it IMHO. Ramsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com This email sent to kenli...@anderhome.com -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com