# |
Mar 19th 2009, 17:45 |
ADmad |
gonna be a busy kitvhen in days to come :) |
# |
Mar 19th 2009, 17:44 |
gwoo |
yup :) |
# |
Mar 19th 2009, 17:44 |
_nate_ |
ADmad: you bet |
# |
Mar 19th 2009, 17:44 |
ADmad |
_nate_: gwoo: thank u and others for a new tasty cake :) also exciting to see the various 1.3 braches on chaw |
# |
Mar 17th 2009, 10:25 |
alkemann |
ok. im getting somewhere. gonna keep u guys posted. dinner time |
# |
Mar 17th 2009, 10:08 |
alkemann |
for my $respons im gett '<' heh |
# |
Mar 17th 2009, 10:04 |
_nate_ |
alkemann: yeah, that looks about right |
# |
Mar 17th 2009, 10:02 |
_nate_ |
he was at the last CakeFest |
# |
Mar 17th 2009, 10:02 |
_nate_ |
hey, I remember this guy |
# |
Mar 17th 2009, 10:01 |
ADmad |
k |
# |
Mar 17th 2009, 10:01 |
_nate_ |
many of them have, yes |
# |
Mar 17th 2009, 10:01 |
ADmad |
but the DS basics havent changed since 1.1 days have they ? |
# |
Mar 17th 2009, 10:00 |
ADmad |
yeah i noticed |
# |
Mar 17th 2009, 10:00 |
_nate_ |
ADmad: that one's very old |
# |
Mar 17th 2009, 10:00 |
ADmad |
hmm... this looks like a nice one http://myeasyscripts.com/loudbaking/htmlsource-a-new-dbo-driver-for-cakephp/ but the like to the ds file is broken :( |
# |
Mar 17th 2009, 09:59 |
_nate_ |
you could provide defaults for many of those I'm sure, manually implement things like limit and offset if they were of value |
# |
Mar 17th 2009, 09:59 |
alkemann |
yea probably- this is what i got so far http://bin.cakephp.org/view/1740948265 |
# |
Mar 17th 2009, 09:58 |
_nate_ |
i.e. find("all", array("timeSeriesType" => 0, "from" => '2006-01-01", "to" => "2006-01-05", "stations" => "18")); etc. |
# |
Mar 17th 2009, 09:57 |
_nate_ |
well really, you could just use the query keys to map directly to URL parameters |
# |
Mar 17th 2009, 09:55 |
_nate_ |
gotcha |
# |
Mar 17th 2009, 09:55 |
alkemann |
afaik it's just url |
# |
Mar 17th 2009, 09:55 |
_nate_ |
alkemann: with no POST body? |
# |
Mar 17th 2009, 09:55 |
alkemann |
which returns an xml to parse and cake data arrayify |
# |
Mar 17th 2009, 09:54 |
alkemann |
_nate_: havent gotten there yet. but its goign to build urls like this : http://eklima.met.no/metdata/MetDataService?invoke=getMetDataValuesandtimeserietypeID=0andformat=andfrom=2006-01-01andto=2006-01-05andstations=18700andelements=tamandhours=andmonths |
# |
Mar 17th 2009, 09:54 |
_nate_ |
alkemann: okay, so show me a find() call that would be an example to show what you're looking for |
# |
Mar 17th 2009, 09:53 |
alkemann |
_nate_: goal is to mask the fact that there is anything special about the model, so i want model calls to look like normal cake find. |
# |
Mar 17th 2009, 09:53 |
_nate_ |
yup |
# |
Mar 17th 2009, 09:53 |
ADmad |
oh yeah thats what i meant sorry |
# |
Mar 17th 2009, 09:53 |
_nate_ |
ADmad: ConnectionManager::create() I think |
# |
Mar 17th 2009, 09:52 |
ADmad |
_nate_: if i dont want to specify a config array for a DS in database.php then i would have to use DataSource::create at runtime ? |
# |
Mar 17th 2009, 09:52 |
_nate_ |
alkemann: okay, so show me an example of what you want your model calls to look like, and roughly what the HTTP should look like for what it generates |
# |
Mar 17th 2009, 09:51 |
jperras |
so it's a good example |
# |
Mar 17th 2009, 09:51 |
jperras |
read-only datasources are pretty common for external apis |
# |
Mar 17th 2009, 09:51 |
alkemann |
building a datasource for this : http://eklima.met.no/met/MetService |
# |
Mar 17th 2009, 09:51 |
_nate_ |
alkemann: yeah, that sounds good |
# |
Mar 17th 2009, 09:50 |
ADmad |
yeah it would make the site bit more dynamic |
# |
Mar 17th 2009, 09:50 |
_nate_ |
we could even have contests eventually |
# |
Mar 17th 2009, 09:50 |
alkemann |
a datasource that takes model commands (read only) to build an url and take the content of that url, convert it to a cake dataset and return it a good example? |
# |
Mar 17th 2009, 09:50 |
_nate_ |
that's a good idea |
# |
Mar 17th 2009, 09:50 |
ADmad |
hey that gives me an idea... can we have a feature in bakery where moderator post a topic and invite users to write an article for it :) |
# |
Mar 17th 2009, 09:49 |
jperras |
seems like a good deal for alkemann ;-) |