Page 49 of 134, showing 100 records out of 13,394 total, starting on record 4,801, ending on 4,900
# | Username | Text | |
---|---|---|---|
# | Jul 20th 2009, 15:14 | ADmad | $this->ArticlePage->Behaviors->disable('Revision') |
# | Jul 20th 2009, 15:13 | alkemann | undefined method |
# | Jul 20th 2009, 15:13 | ADmad | try calling disable() https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/behavior.php#L371 |
# | Jul 20th 2009, 15:12 | ADmad | https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/behavior.php#L453 |
# | Jul 20th 2009, 15:11 | alkemann | u sure that isnt something that people build into their behaviors? |
# | Jul 20th 2009, 15:11 | ADmad | yup |
# | Jul 20th 2009, 15:11 | alkemann | $this->ArticlePage->Behaviors->Revision->enabled = false; right? |
# | Jul 20th 2009, 15:11 | alkemann | did not work * |
# | Jul 20th 2009, 15:11 | alkemann | ADmad: did work |
# | Jul 20th 2009, 15:10 | alkemann | interesting.. |
# | Jul 20th 2009, 15:09 | ADmad | its inbuilt.. set enabled false and no callbacks for that behavior will be trigerred |
# | Jul 20th 2009, 15:08 | alkemann | didnt know i had that feature |
# | Jul 20th 2009, 15:08 | ADmad | alkemann: $this->ArticlePage->Behaviors->Revision->settings['ArticlePage']['auto'] = false; why do you use that instead of just disabling behavior with Revision->enabed = false ? |
# | Jul 20th 2009, 15:04 | alkemann | hah |
# | Jul 20th 2009, 15:04 | ProLoser|Work | what music were you guys listening to anyways? |
# | Jul 20th 2009, 15:04 | Phally | ACTION pictures 10 storm troopers dancing with macbooks instead of weapons |
# | Jul 20th 2009, 15:04 | alkemann | head bang* |
# | Jul 20th 2009, 15:03 | alkemann | Predominant has a mad hang bang with his 5 feet long hair |
# | Jul 20th 2009, 15:03 | ADmad | geeks dancing... now that surely wont be a pretty sight |
# | Jul 20th 2009, 15:03 | Phally | haha |
# | Jul 20th 2009, 15:02 | alkemann | heh. you should have seen us dancing at the Diamon Lounge in Berlin.. we all got 2 left feet |
# | Jul 20th 2009, 15:01 | ADmad | i got 2 left feet so i dont understand what you are saying |
# | Jul 20th 2009, 15:01 | alkemann | not hacks. just a little to explicit |
# | Jul 20th 2009, 15:00 | Phally | that is your tap dancing? could have been worse |
# | Jul 20th 2009, 14:58 | alkemann | gotta call revision creation after a draft creation, as the edited fields are removed from the model, so revision cant see change. and have to turn off revision creation when drafts are accepted |
# | Jul 20th 2009, 14:57 | alkemann | Phally: http://thechaw.com/bakery/commits/view/36d5d0317123f6da18974dd1b894daad1f621bf3#highlight |
# | Jul 20th 2009, 14:55 | alkemann | sigh.. got a green line of 31 passes, but doing some minor tap dancing. well well optimize later |
# | Jul 20th 2009, 14:42 | ProLoser|Work | at least progress lol |
# | Jul 20th 2009, 14:42 | Phally | hmm maybe someone in #cakephp knows |
# | Jul 20th 2009, 14:41 | ProLoser|Work | strange, still not working |
# | Jul 20th 2009, 14:40 | ProLoser|Work | thank you |
# | Jul 20th 2009, 14:39 | ProLoser|Work | DAMNIT you're right, i forgot i moved the model into a plugin |
# | Jul 20th 2009, 14:39 | ProLoser|Work | ah |
# | Jul 20th 2009, 14:39 | Phally | i was wondering if you have checked if init() really is returning that instance |
# | Jul 20th 2009, 14:39 | ProLoser|Work | !bin |
# | Jul 20th 2009, 14:38 | ProLoser|Work | my Category model, i may be confused as to what info you're asking for |
# | Jul 20th 2009, 14:38 | Phally | so do I |
# | Jul 20th 2009, 14:38 | ProLoser|Work | uh well, not an instance as in 'record' per se, i just mean the class |
# | Jul 20th 2009, 14:37 | ProLoser|Work | and also classregistry init |
# | Jul 20th 2009, 14:37 | Phally | and what instance would that be? |
# | Jul 20th 2009, 14:37 | ProLoser|Work | i've tried now both App::import('Model','Category'); |
# | Jul 20th 2009, 14:37 | ProLoser|Work | but i can't get it to work |
# | Jul 20th 2009, 14:36 | ProLoser|Work | so i thought it was perhaps how i'm loading an instance of the model |
# | Jul 20th 2009, 14:36 | ProLoser|Work | went into the respective controller and it runs fine |
# | Jul 20th 2009, 14:36 | ProLoser|Work | trying to run generatetreelist in app_controller, and it's just not working |
# | Jul 20th 2009, 14:36 | ProLoser|Work | well perhaps i should explain my situation |
# | Jul 20th 2009, 14:36 | Phally | ProLoser|Work: or do you mean App::import? |
# | Jul 20th 2009, 14:35 | Phally | ~tell ProLoser|Work about understanding models |
# | Jul 20th 2009, 14:32 | ProLoser|Work | or load a model more specifically |
# | Jul 20th 2009, 14:32 | ProLoser|Work | what's the way to load a class without init? |
# | Jul 20th 2009, 14:29 | alkemann | wasnt the problem. got to tinker a little bit :) |
# | Jul 20th 2009, 14:28 | gwoo | alkemann: yeah it should be same order as in actsAs |
# | Jul 20th 2009, 14:21 | alkemann | my drafted is getting in the way of my revision.. |
# | Jul 20th 2009, 14:21 | alkemann | behaviour are called in the order they are declared in the actsAsd right? |
# | Jul 20th 2009, 13:12 | nicd | ok |
# | Jul 20th 2009, 13:12 | gwoo | nicd: ask in #cakephp |
# | Jul 20th 2009, 13:12 | nicd | gwoo, i got it in config/routes.php file right |
# | Jul 20th 2009, 13:12 | markstory | alkemann: yeah, I guess it depends if you have to repeat that save() process anywhere. |
# | Jul 20th 2009, 13:12 | nicd | done |
# | Jul 20th 2009, 13:11 | gwoo | nicd: join #cakephp |
# | Jul 20th 2009, 13:11 | alkemann | markstory: imho the controller is still thin as long it is controller stuff spread over a few more lines |
# | Jul 20th 2009, 13:10 | nicd | how can i define the default page to load first |
# | Jul 20th 2009, 12:55 | markstory | or something with a less stupid name. |
# | Jul 20th 2009, 12:55 | markstory | so Article->saveBigTime() |
# | Jul 20th 2009, 12:55 | markstory | can always make a method that wraps up all the save() calls. |
# | Jul 20th 2009, 12:51 | alkemann | but maybe ur right that it would work |
# | Jul 20th 2009, 12:51 | alkemann | also need to set the pagenumber to 0 specifically |
# | Jul 20th 2009, 12:50 | ADmad | *too |
# | Jul 20th 2009, 12:50 | ADmad | ok.. though behaviors will run on ArticlePage is using saveAll to |
# | Jul 20th 2009, 12:49 | alkemann | the extra couple lines only makes the code more readable. no real benefit from using saveAll |
# | Jul 20th 2009, 12:48 | alkemann | making sure behaviours are run on the Article Page to create a revision |
# | Jul 20th 2009, 12:47 | alkemann | there was a reason i didnt do that.. hmm. |
# | Jul 20th 2009, 12:47 | ADmad | alkemann: can we/should we make saving Article and Intro atomic (ie saveAll) ? |
# | Jul 20th 2009, 12:46 | alkemann | hopefully it will help other developers see how it's intended to work and make sure they dont break it ;) |
# | Jul 20th 2009, 12:45 | alkemann | atm revision makes revisions when a page is accepte. i think changing the order in the model may fix it |
# | Jul 20th 2009, 12:45 | markstory | more of a functional / acceptance test. |
# | Jul 20th 2009, 12:44 | alkemann | markstory: not exactly a "unit" test, but it works well for making sure my behaviours are working together |
# | Jul 20th 2009, 12:44 | Phally | hmm yes indeed |
# | Jul 20th 2009, 12:44 | alkemann | that would be good as well |
# | Jul 20th 2009, 12:44 | alkemann | Phally: or maybe your thinking of a controller test, where you make sure u only correct user can run an acction |
# | Jul 20th 2009, 12:43 | markstory | neat |
# | Jul 20th 2009, 12:43 | alkemann | Phally: right. 2nd last test tests direct edit. checking for permission for doing this would be a seperate test |
# | Jul 20th 2009, 12:42 | Phally | alkemann: yeah, but i mean an article will be published immediately when he is an accepter author i.e. |
# | Jul 20th 2009, 12:41 | alkemann | last test |
# | Jul 20th 2009, 12:41 | alkemann | markstory: ^ |
# | Jul 20th 2009, 12:41 | alkemann | http://thechaw.com/bakery/source/branches/2.0/tests/cases/models/article_page.test.php |
# | Jul 20th 2009, 12:41 | alkemann | as per unit testing pattern. permissions would belong in a seperate test |
# | Jul 20th 2009, 12:41 | markstory | testing flows? |
# | Jul 20th 2009, 12:41 | alkemann | Phally: it's far from done. |
# | Jul 20th 2009, 12:41 | Phally | alkemann: yeah, i realised that, building a site without a site |
# | Jul 20th 2009, 12:40 | alkemann | beats inventing shit and F5 with debug(); |
# | Jul 20th 2009, 12:40 | Phally | alkemann: missing a thing though: the dependency on the group the user belongs to |
# | Jul 20th 2009, 12:39 | Phally | alkemann: the concept of testing flows is awesome |
# | Jul 20th 2009, 12:39 | Phally | alkemann: i checked out the article page flow |
# | Jul 20th 2009, 12:37 | alkemann | giggle |
# | Jul 20th 2009, 12:36 | markstory | I usually do :) |
# | Jul 20th 2009, 12:36 | ProLoser|Work | i'm not worthy of #bakery |
# | Jul 20th 2009, 12:36 | ProLoser|Work | please ignore my massive stupidity |
# | Jul 20th 2009, 12:36 | ProLoser|Work | bah |
# | Jul 20th 2009, 12:36 | ProLoser|Work | wait |