Log message #598040

# At Username Text
# 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 ;-)
# Mar 17th 2009, 09:48 _nate_ I'd be willing to answer all the questions for anyone trying to write a proper one, if they'd agree to put it in the manual
# Mar 17th 2009, 09:48 _nate_ honestly though, there's actually not that much to it
# Mar 17th 2009, 09:48 ADmad true atm only the devs know enough about it to write a custom one properly
# Mar 17th 2009, 09:48 jperras most of them seem to turn into cake-ish vendor libraries
# Mar 17th 2009, 09:47 jperras probably because the docs are pretty much non-existent
# Mar 17th 2009, 09:47 ADmad yeah never seen one implementign the create, read, update
# Mar 17th 2009, 09:47 jperras yeah
# Mar 17th 2009, 09:46 _nate_ I think I've maybe seen one
# Mar 17th 2009, 09:46 _nate_ I don't think I've seen many/any DataSources that actually implement things correctly
# Mar 17th 2009, 09:45 jperras hmm, seems i forgot that the last.fm datasource is a bit non-standard in terms of implementation.
# Mar 17th 2009, 09:44 alkemann execute and the log stuff. can i use those?
# Mar 17th 2009, 09:41 _nate_ heh
# Mar 17th 2009, 09:41 ADmad and dont forget function disconnect() { return true; } :)
# Mar 17th 2009, 09:40 _nate_ it's really simple ;-)
# Mar 17th 2009, 09:40 alkemann cool, ill look for it
# Mar 17th 2009, 09:40 jperras but it's pretty specific to the last.fm api, iirc
# Mar 17th 2009, 09:40 _nate_ you may also have to define name() and value(), but they probably won't need to do anything in your case
# Mar 17th 2009, 09:40 jperras alkemann: I think m3nt0r has a good example with a last.fm datasource
# Mar 17th 2009, 09:40 _nate_ alkemann: implement listSources() for the model to get the table name, describe() to assign the model it's description, and create() read() update() and delete() to do operations
# Mar 17th 2009, 09:39 ADmad yeah have never done that... just used datasource directly in controller :P
# Mar 17th 2009, 09:39 alkemann i think i can make this work now, but documentation on how to best make a datasource to get the model to behave normal would be good :)
# Mar 17th 2009, 09:38 _nate_ hah
# Mar 17th 2009, 09:38 ADmad i use the one's on debuggable scapes as docs :)
# Mar 17th 2009, 09:38 alkemann well, let me say what they all say back in #cakephp : I am on a deadline here, could you hurry it up?
# Mar 17th 2009, 09:37 _nate_ "time is always against us"
# Mar 17th 2009, 09:37 jperras something that I've been meaning to improve. just lack the time
# Mar 17th 2009, 09:36 jperras documentation on datasources is really light.
# Mar 17th 2009, 09:36 alkemann that makes sense :) thanks
# Mar 17th 2009, 09:35 _nate_ change driver to datasource
# Mar 17th 2009, 09:35 alkemann ah
# Mar 17th 2009, 09:35 _nate_ yeah
# Mar 17th 2009, 09:35 ADmad driver is for dbo
# Mar 17th 2009, 09:34 ADmad in your config array in database.php