|
Feb
14 |
|
awarded | Student |
|
Jan
22 |
|
awarded | Revival |
|
Nov
2 |
|
awarded | Commentator |
|
Nov
2 |
|
comment |
Python dynamically created custom named functions if you use Python, why not create a class and use the getattr function to catch any method call (and then decide depending on the name what to do). Here is an example of this function in use: code.activestate.com/recipes/… |
|
Oct
30 |
|
accepted | Colorbox not showing up in IE |
|
Oct
30 |
|
accepted | How to configure a grails plugin from another grails plugin |
|
Oct
29 |
|
asked | How to configure a grails plugin from another grails plugin |
|
Sep
10 |
|
comment |
Grails 2.0.4 and sql profiling using p6spy plug-in configuartion Have you managed to get this working somehow? |
|
Sep
9 |
|
comment |
Colorbox not showing up in IE they even have a blog entry on this: blog.stackoverflow.com/2011/07/… |
|
Sep
9 |
|
comment |
Colorbox not showing up in IE you can answer questions yourself already when you ask them (it's a feature of StackOverflow) It is because they know that when you write up (and therefore research) your question it happens quite often actually, that you will find a solution yourself and they still want to encourage you to share that knowledge because it may help others. Its similar to the idea of rubber-ducking (+ sharing what you found out). |
|
Sep
9 |
|
asked | Colorbox not showing up in IE |
|
Sep
9 |
|
answered | Colorbox not showing up in IE |
|
Aug
31 |
|
comment |
Unit test controller by calling multiple actions oh my god, i feel so incredibly stupid right now... YES, response.reset() works perfectly! My tests failed because of a totally different reason and i was too blind to see (expected groovy to convert Strings to Longs, which resulted in the ascii value). I really feel stupid now for blaming Grails, i really want to bang my head against the wall -_- Sorry for the time this cost you & thanks!
|
|
Aug
31 |
|
awarded | Scholar |
|
Aug
31 |
|
comment |
Unit test controller by calling multiple actions oh my god, i feel so incredibly stupid right now... |
|
Aug
31 |
|
accepted | Unit test controller by calling multiple actions |
|
Aug
30 |
|
awarded | Supporter |
|
Aug
30 |
|
comment |
Unit test controller by calling multiple actions the save() method is basically just the usual def offerObjectInstance = new OfferObject(params)
if (!offerObjectInstance.save(flush: true)) {
followed by some error handling. I tried to flush the session, but somehow i can't get to it:
context.getBean('sessionFactory')
fails, because it says that this bean doesn't exist.
I have pretty much given up on testing it this way now. With grails it simply seems to be the way "Convention or GTFO" (Do it the Grails way or don't do it). I better get used to that fast ^^
Thanks again for your help!
|
|
Aug
29 |
|
comment |
Unit test controller by calling multiple actions Damn, i was almost certain that that would work (judging from the code), however it yielded the same result as the response.reset(), which means it got the action from the controller.save() (adding an object instance) undone, which is at least an unexpected behaviour. Thanks for your suggestions. |
|
Aug
29 |
|
comment |
Unit test controller by calling multiple actions yes, you are basically right, i didn't explain that in my question, edited it to clarify. Thanks anyway! |