# |
Aug 8th 2008, 17:14 |
teknoid |
yoris: i really don't think cake is the right answer... soundslike you need some tool/process for csv to sql conversion (possibly with some batch facility) |
# |
Aug 8th 2008, 17:14 |
yoris |
teknoid, its a javascript app so, its only one url that does just bout everything |
# |
Aug 8th 2008, 17:13 |
yoris |
teknoid, sql abstraction mostly not using views in ANY way. i have 7 lines of html code, that rules out scaffolding and helpers |
# |
Aug 8th 2008, 17:11 |
NOSLOW |
gwoo: 8 hrs later, I have a test case that shows a problem with changeset 7393 |
# |
Aug 8th 2008, 17:10 |
teknoid |
yoris: well what features of the framework are you using for this? other than the 40% you had to modify? :) |
# |
Aug 8th 2008, 17:09 |
zmonteca |
TommyO: is there a way to make an AJAX request via get method vs. post? seems like the default is post. |
# |
Aug 8th 2008, 17:08 |
zmonteca |
TommyO: i get the debug params when going to the script directly. |
# |
Aug 8th 2008, 17:08 |
teknoid |
yoris: maybe cake isn't the solution for your problem? |
# |
Aug 8th 2008, 17:07 |
yoris |
teknoid, no, no, but i was trying to make my situation clear, btw, the code was not a class plugged into the controller, the thing is that the stable version of cake is very limited in advanced sql language, basically i had to modify like 40% of its logic for my needs, 1.2 seems to be promising though |
# |
Aug 8th 2008, 17:04 |
TommyO |
Azhi_Dahaka_: clear it's value in $this->data array in the controller |
# |
Aug 8th 2008, 17:04 |
zmonteca |
TommyO: yeah, i was getting the print outs. |
# |
Aug 8th 2008, 17:03 |
TommyO |
what happens if you do go to the url in a browser? you should get the print_r() in your default layout, no? |
# |
Aug 8th 2008, 17:03 |
teknoid |
yoris: don't think sqlalchemy is related to cakephp in any way |
# |
Aug 8th 2008, 17:01 |
zmonteca |
TommyO: now what...LOL???? |
# |
Aug 8th 2008, 17:01 |
zmonteca |
TommyO: yeah, i just renamed the methods and i'm getting the same result. |
# |
Aug 8th 2008, 17:00 |
TommyO |
zmonteca: that's a good sign, sorta. it gives you a direction to look in |
# |
Aug 8th 2008, 17:00 |
yoris |
teknoid, sqlAlchemy has a flush method that executes all sql cached sentences |
# |
Aug 8th 2008, 17:00 |
TommyO |
zmonteca: sounds like the request may not be completeing |
# |
Aug 8th 2008, 17:00 |
Azhi_Dahaka_ |
in a form... is there a way to avoid reloading the data into a form field? |
# |
Aug 8th 2008, 17:00 |
zmonteca |
TommyO: I actually don't see a response header at all.... |
# |
Aug 8th 2008, 16:59 |
yoris |
teknoid, lol, me too!!!!! |
# |
Aug 8th 2008, 16:59 |
Azhi_Dahaka_ |
how can i avoid a field to get an autovalue? |
# |
Aug 8th 2008, 16:59 |
zmonteca |
TommyO: http://bin.cakephp.org/view/1212404311 |
# |
Aug 8th 2008, 16:59 |
yoris |
teknoid, |
# |
Aug 8th 2008, 16:59 |
teknoid |
yoris: not really, that has little to do with cakephp and i'm too tired to try to figure out that code :) |
# |
Aug 8th 2008, 16:58 |
yoris |
teknoid, thats not an option, other sugestions? |
# |
Aug 8th 2008, 16:58 |
yoris |
teknoid, the thing is that im managing over 10.000 csv rows, php cache just blows over the roof for what i am doing, besides, i need to check and re-check the cahed array to see if lower rows are beeing duplicated... it could be solved if the save sentence would SAVE in that moment and not wait till everything is done |
# |
Aug 8th 2008, 16:57 |
TommyO |
firebug will tell you the response code |
# |
Aug 8th 2008, 16:57 |
TommyO |
zmonteca: sorry. you said you're getting nothing back from the server on the ajax call. is it a blank 200 or a 404? |
# |
Aug 8th 2008, 16:57 |
teknoid |
TommyO: lol |
# |
Aug 8th 2008, 16:57 |
TommyO |
haha! another one! |
# |
Aug 8th 2008, 16:57 |
TommyO |
memo too myself: if you're going to mock someone on a typo, don't have any typos in your mock |
# |
Aug 8th 2008, 16:57 |
TommyO |
*dog |
# |
Aug 8th 2008, 16:57 |
TommyO |
teknoid: is that like giving it to a little cross-eyed do and shooing it through the door into your Model? |
# |
Aug 8th 2008, 16:57 |
zmonteca |
TommyO: when you say blank page, do you mean accessing that controller method direct vs. ajax? |
# |
Aug 8th 2008, 16:57 |
teknoid |
yoris: looking at that code you are not leveraging the framework in any way, it's like you took some php class and pugged into your model (?) |
# |
Aug 8th 2008, 16:54 |
TommyO |
zmonteca: well, pr() will do a cleaenr print_r() and debug() will give you a little more info |
# |
Aug 8th 2008, 16:54 |
zmonteca |
TommyO: cool. thanks. I was just accessing when i needed to debug, but that looks a lot better. |
# |
Aug 8th 2008, 16:54 |
TommyO |
zmonteca: do you get a 200 with a blank page or a 404? |
# |
Aug 8th 2008, 16:54 |
teknoid |
yoris: secondly checking if a field exists or not is better done by using $validate array and isUnique rule |
# |
Aug 8th 2008, 16:53 |
zmonteca |
TommyO: however, firebug tells me the request is '/admins/users/facilities_list' |