*** tpb has joined #melange | 00:00 | |
*** bhy has joined #melange | 00:21 | |
*** penyaskito has quit IRC | 01:46 | |
*** dmitrig01|afk has quit IRC | 01:58 | |
*** dmitrig01|afk has joined #melange | 01:58 | |
*** ChanServ sets mode: +v dmitrig01|afk | 01:58 | |
*** dmitrig01|afk has quit IRC | 03:14 | |
*** dmitrig01_ has joined #melange | 03:14 | |
*** ChanServ sets mode: +v dmitrig01_ | 03:14 | |
*** dmitrig01_ has quit IRC | 03:21 | |
*** Lennie has joined #melange | 03:58 | |
*** ChanServ sets mode: +v Lennie | 03:58 | |
*** solydzajs has joined #melange | 04:08 | |
*** ChanServ sets mode: +o solydzajs | 04:08 | |
*** Lennie has quit IRC | 04:56 | |
*** SRabbelier has joined #melange | 05:25 | |
*** ChanServ sets mode: +v SRabbelier | 05:25 | |
SRabbelier | no_mind: dude | 06:19 |
---|---|---|
SRabbelier | no_mind: sorry I typoed your name on the ML :P | 06:19 |
SRabbelier | no_mind: I thought it was 'no_name' :( | 06:19 |
bhy | hi guys, happy Chinese New Year! :) | 06:22 |
SRabbelier | bhy: indeed :) | 06:27 |
bhy | :) | 06:27 |
*** Lennie has joined #melange | 06:45 | |
*** ChanServ sets mode: +v Lennie | 06:45 | |
SRabbelier | no_mind: ping? :) | 07:01 |
*** mithro has joined #melange | 07:14 | |
*** ChanServ sets mode: +v mithro | 07:14 | |
*** penyaskito has joined #melange | 07:23 | |
no_mind | SRabbelier, | 07:39 |
no_mind | SRabbelier, I was away | 07:39 |
no_mind | tell me | 07:39 |
no_mind | SRabbelier, ping me when you come back, I need to ask something | 07:44 |
*** no_mind has quit IRC | 07:54 | |
*** no_mind has joined #melange | 07:55 | |
Lennie | hi no_mind | 07:59 |
no_mind | hey Lennie | 08:00 |
Lennie | wassup :D? | 08:02 |
SRabbelier | no_mind: heya | 08:02 |
Lennie | SRabbelier should be here soonish :p | 08:02 |
Lennie | o | 08:02 |
Lennie | nm ^_ ^ | 08:02 |
SRabbelier | I'm just that fast | 08:02 |
Lennie | I'm back to clubs and stuff | 08:02 |
SRabbelier | no_mind: you still there? :) | 08:02 |
Lennie | you guys have fun with JSON :D | 08:02 |
no_mind | SRabbelier, hi | 08:02 |
SRabbelier | no_mind: did you see my last commit? | 08:03 |
no_mind | SRabbelier, while you fix the JSON issu if you can point me to view/template I need to change, I can start the work. I can right now pull data from a file and when view is stable, tell you the final structure of JSON object required | 08:03 |
no_mind | SRabbelier, saw your last message on ML but not the last commit | 08:04 |
* no_mind prepares to svn update | 08:04 | |
SRabbelier | no_mind: JSON is working :) | 08:04 |
no_mind | okies kool | 08:04 |
SRabbelier | no_mind: you can go do /user/pick.... and it will give yo ua JSON object | 08:04 |
no_mind | once I get this working, I will implement a search with autocomplete to search users from the user list | 08:05 |
SRabbelier | no_mind: cool :) | 08:05 |
SRabbelier | no_mind: that would be awesome | 08:05 |
no_mind | SRabbelier, any idea which template I need to change, Since this is first time, i will need some hand holding in where to make changes | 08:05 |
SRabbelier | no_mind: that's np | 08:06 |
SRabbelier | no_mind: the edit.html file is where the as_table call is made (which generates the link) | 08:06 |
SRabbelier | no_mind: but you'll want to edit the as_table template | 08:06 |
SRabbelier | no_mind: look at _as_table_row.html | 08:06 |
SRabbelier | no_mind: note the ' {% if select_url %}' part | 08:07 |
no_mind | I think, I should make a widget first, then we can integrate the widget in the club application template or where ever we want to allow user list selection | 08:07 |
no_mind | what you guys say ? | 08:07 |
SRabbelier | no_mind: fine with me, I figured you'd need a page to test your widget on, but go ahead :) | 08:08 |
no_mind | ok | 08:09 |
Lennie | hmm | 08:10 |
Lennie | that user list selection thing | 08:10 |
Lennie | can you fill in some letter so it filters? | 08:11 |
Lennie | tbh I dont think we want that | 08:11 |
Lennie | there will be 1000+ entities in there :S | 08:11 |
Lennie | document selction would be a better place to start? | 08:11 |
no_mind | Lennie, yup, thats why I said, once widget is working I will implement a autocomplete search on top of the user list | 08:11 |
Lennie | k | 08:11 |
no_mind | Lennie, so when you type first 3 letters of a name it will filter out all the names matching criteria | 08:12 |
Lennie | I wonder how it will work with a lot of user entities ^_ ^ | 08:12 |
no_mind | lets see | 08:12 |
Lennie | oh | 08:12 |
Lennie | nm | 08:12 |
Lennie | we'll cache them anyway :P | 08:12 |
no_mind | yes | 08:12 |
Lennie | and if you cant find a new user you probably have to type it in anway | 08:13 |
Lennie | we can put a text in there like | 08:13 |
Lennie | this list is refreshed every day | 08:13 |
Lennie | or every hour | 08:13 |
Lennie | nm | 08:13 |
Lennie | ^_ ^ | 08:13 |
Lennie | go ahead :P | 08:13 |
no_mind | and if this becomes a bottleneck, we can always fall back to first alphabet link | 08:13 |
Lennie | k | 08:13 |
Lennie | I'm just trying to make sure we thought about it :D | 08:13 |
no_mind | or if user types in the full name, you will find the direct entry or all matching entries | 08:13 |
no_mind | ok | 08:14 |
Lennie | that's why I'm randomnly spawning whine ^_ ^ | 08:14 |
no_mind | if you cant fins a user, you can type in the full name and hit search | 08:14 |
Lennie | that would be awesome :D | 08:14 |
*** Merio has joined #melange | 08:41 | |
*** mithro has quit IRC | 09:22 | |
Lennie | Is Haoyu Bai here on IRC? | 10:04 |
*** tanoku has joined #melange | 10:23 | |
*** johndbritton has joined #melange | 10:25 | |
*** shiyee has joined #melange | 10:31 | |
*** johndbritton_ has quit IRC | 10:41 | |
SRabbelier | Lennie: that would be bhy | 10:46 |
SRabbelier | no_mind: how's the widget going? | 10:46 |
no_mind | not started working yet... will start in few hours | 10:46 |
no_mind | its a holiday in .in tomorrow so I have lots of time, just coding with leisure | 10:47 |
Lennie | hehe | 10:47 |
Lennie | I almost have a week of from uni so I'm also coding all the way :P | 10:47 |
no_mind | well you are in a uni and I am in a corp, that too the one I own... so life is not as happy as yours... | 10:48 |
Lennie | hehe | 10:49 |
SRabbelier | no_mind: fair enough :) | 10:53 |
*** Merio has quit IRC | 11:08 | |
*** Merio has joined #melange | 11:10 | |
*** Lennie is now known as Lennie|Gone | 11:50 | |
*** penyaskito has quit IRC | 12:09 | |
*** dmitrig01|afk has joined #melange | 12:14 | |
*** ChanServ sets mode: +v dmitrig01|afk | 12:14 | |
*** bhy has quit IRC | 12:46 | |
*** Merio has quit IRC | 14:21 | |
*** penyaskito has joined #melange | 14:40 | |
*** Merio has joined #melange | 14:52 | |
*** johndbritton_ has joined #melange | 14:55 | |
*** Lennie|Gone is now known as Lennie | 14:59 | |
*** johndbritton has quit IRC | 15:10 | |
Merio | solydzajs: new JS file updated in issue 137 | 15:17 |
solydzajs | ok will have a look | 15:17 |
solydzajs | Merio: what next would you like to work on ? | 15:17 |
Merio | solydzajs: If there is something in Javascript, otherwise I'll be working on the on/off switch | 15:18 |
solydzajs | Merio: I would suggest on/off switch for now and I will find some JS work for you after that, how does that sound ? | 15:20 |
Merio | solydzajs: that's ok for me :) | 15:21 |
Merio | solydzajs: As I've changed those .py files in my GMap diff before reading anything about python (and obviously about the style guides ;)) be care that probably some indentation has been done with tabs instead of spaces | 15:21 |
solydzajs | Merio: I will fix it no worries :-) | 15:22 |
Merio | solydzajs: ok thanks :) | 15:22 |
Lennie | solydzajs is code review king :P | 15:23 |
Lennie | There's almost no dot he'll miss :D | 15:23 |
*** no_mind has quit IRC | 15:23 | |
Lennie | I write well documented code but I'm sometimes sloppy in style :( | 15:23 |
*** no_mind has joined #melange | 15:42 | |
*** dmitrig01|afk has quit IRC | 16:11 | |
*** gloob has joined #melange | 16:13 | |
SRabbelier | :D | 16:31 |
* SRabbelier hoards the new contributors | 16:31 | |
SRabbelier | moar! | 16:31 |
SRabbelier | keep bringin' 'em! :D | 16:32 |
*** Merio has quit IRC | 16:32 | |
no_mind | SRabbelier, you scared away Merio :p | 16:32 |
Lennie | so anyhow | 16:32 |
Lennie | veelck is doing the view in which a host can be kicked :D | 16:33 |
veelck | :) | 16:33 |
Lennie | his first step would be to define a new pattern in the django_extra_patterns parameter | 16:33 |
Lennie | in soc/views/models/host.py | 16:34 |
SRabbelier | no_mind: hehe, he made pawel go away yesterday by putting his hands up | 16:34 |
Lennie | SRabbelier: fresh meat :D | 16:34 |
SRabbelier | :) | 16:35 |
Lennie | that's the recap :p | 16:35 |
Lennie | veelck: how is it goign :D | 16:35 |
SRabbelier | ok | 16:35 |
veelck | Lennie: it's ok, just have some problems with iterm ;-) | 16:35 |
SRabbelier | veelck: iterm? | 16:36 |
veelck | that's whym I'm not very responding ;-) | 16:36 |
SRabbelier | is that the apple term? iTerm? :P | 16:37 |
Lennie | k :D | 16:37 |
SRabbelier | **terminal | 16:37 |
veelck | yep ;-) | 16:37 |
Lennie | just lemme know once you have the pattern in place | 16:37 |
SRabbelier | you can easily check that by going to localhost:8080/foobar | 16:38 |
SRabbelier | and then look in the list of patterns it tried :) | 16:38 |
Lennie | and I can redirect you to the rights you should set and how to 'activate' your new method so that you can start some real coding | 16:38 |
Lennie | SRabbelier, that manage view | 16:38 |
Lennie | should just be like a button that says remove and cancel right? | 16:38 |
Lennie | no need for anything fancy atm? | 16:39 |
veelck | ok :) | 16:39 |
veelck | I know what you're going to do ;-) | 16:39 |
Lennie | ? | 16:40 |
veelck | nwm | 16:40 |
*** veelck_ has joined #melange | 16:40 | |
veelck_ | lets try here ;-) | 16:40 |
Lennie | hehe | 16:41 |
veelck_ | dunno why it doesn't want to update my screen in iterm - i have to click on it every time to get it updated | 16:41 |
veelck_ | anyway | 16:41 |
veelck_ | sorry, I have some problem with getting my working copy started | 16:50 |
veelck_ | eh... | 16:50 |
* veelck_ lame | 16:50 | |
veelck_ | but | 16:51 |
veelck_ | I have to set new pattern for extra_django_patterns | 16:52 |
Lennie | yes | 16:52 |
Lennie | in soc/models/views/host.py | 16:52 |
Lennie | swap models and views :P | 16:53 |
veelck_ | ok, are there params extra_django_patterns ? don't see those ;-) | 16:53 |
veelck_ | or you meant from the beginning that I should add the line as it was in group.py, and I'm completly acting like a mooron ;-) | 16:55 |
veelck_ | Lennie: you meant that, didn't you ? ;-) | 16:55 |
Lennie | yeah you can just such a line to host.py | 16:56 |
Lennie | the base class will turn it into an url pattern that django can then match :)- | 16:56 |
veelck_ | due to this nice regexp thing :) | 16:57 |
veelck_ | okey | 16:57 |
veelck_ | done | 16:57 |
Lennie | k | 16:59 |
Lennie | can I see it :D? | 16:59 |
Lennie | or better yet | 16:59 |
Lennie | do you have melange running? | 16:59 |
veelck | nope... | 16:59 |
Lennie | ok | 16:59 |
veelck | but i'd like to check if it's like it supposed to be ;-) | 17:00 |
veelck | maybe some tip ? I have created an account in google app engine | 17:00 |
veelck | and had it uploaded some time ago | 17:00 |
Lennie | hmm | 17:00 |
veelck | but don't remember how i did that ;-) | 17:00 |
*** dmitrig01|afk has joined #melange | 17:01 | |
*** ChanServ sets mode: +v dmitrig01|afk | 17:01 | |
Lennie | you can run it locally on your own pc as well | 17:01 |
veelck | Pawel started some nice script thing and it did the shit | 17:01 |
Lennie | yeah | 17:01 |
Lennie | http://code.google.com/p/soc/wiki/GettingStarted | 17:01 |
tpb | <http://ln-s.net/2kv-> (at code.google.com) | 17:01 |
Lennie | you can read about that there | 17:01 |
*** madrazr has joined #melange | 17:01 | |
Lennie | SRabbelier, can help you with the script as I'm bound to Windows and cannot use it :P | 17:01 |
Lennie | but you can also run melange locally without having to use the script to upload all the files to appengine | 17:01 |
Lennie | which is better | 17:02 |
Lennie | because you can see more debug information | 17:02 |
veelck | okey, I'll try to do so :) | 17:02 |
Lennie | the wiki page should help you | 17:05 |
Lennie | together with the appengine page :) | 17:05 |
Lennie | http://code.google.com/appengine/docs/thedevwebserver.html | 17:06 |
tpb | <http://ln-s.net/2lCl> (at code.google.com) | 17:06 |
veelck | yep, I started appengine uisng /thirdparty/..... | 17:06 |
veelck | but I get some exception on startin ;-) | 17:06 |
SRabbelier | sorry | 17:06 |
SRabbelier | am here now :) | 17:06 |
veelck | /Users/veelck/Melange/thirdparty/google_appengine/google/appengine/tools/dev_appserver.py in LoadModuleRestricted, line 1303 | 17:07 |
SRabbelier | veelck: can you put the entire traceback on pastie? | 17:08 |
SRabbelier | http://pastie.org/ | 17:08 |
tpb | Title: New - Pastie (at pastie.org) | 17:08 |
veelck | okey | 17:08 |
veelck | http://www.pastie.org/370550 | 17:09 |
tpb | Title: #370550 - Pastie (at www.pastie.org) | 17:09 |
veelck | prolly I just did something wrong... | 17:10 |
SRabbelier | veelck: yup | 17:10 |
SRabbelier | veelck: look at the bottom line | 17:10 |
SRabbelier | veelck: Exception Value: local variable 'patterns' referenced before assignment | 17:10 |
SRabbelier | veelck: you used patterns before you defined it | 17:10 |
SRabbelier | veelck: you probably need to do "patterns = []" or something similar | 17:11 |
veelck | ahh. true ;) | 17:11 |
*** veelck_ has quit IRC | 17:11 | |
Lennie | since you are only creating one pattern you can make it a list immedeatly by surrounding it with [] | 17:11 |
veelck | aj | 17:30 |
veelck | i did something, that didn't provide me with an exception ;-) | 17:31 |
Lennie | cool ^_^ | 17:32 |
veelck | anyway, wanna see what I have added ? | 17:32 |
Lennie | sure but you can also see if it works for yourself | 17:33 |
veelck | probably I did something studid at the end ,) | 17:33 |
Lennie | if you open up some random url | 17:33 |
veelck | ok | 17:33 |
Lennie | http://localhost:8080/thisdoesnotexist | 17:33 |
veelck | okey | 17:34 |
Lennie | if you have your melange running on that port you should see a huge list of url's we allow :P | 17:34 |
veelck | yep | 17:34 |
veelck | :) | 17:34 |
Lennie | somewhere it should show your added pattern | 17:34 |
Lennie | if you called it manage like suggested it shouldn't be hard to find | 17:34 |
Lennie | because it's the only one with manage in it | 17:35 |
veelck | ^host/(?P<access_type>manage)/(?P<scope_path>[0-9a-z](?:[0-9a-z]|_[0-9a-z])*)/(?P<link_id>[0-9a-z](?:[0-9a-z]|_[0-9a-z])*)$ | 17:35 |
Lennie | ccol | 17:35 |
Lennie | step 1 seems good :D | 17:35 |
veelck | haa :) | 17:35 |
Lennie | now in host.py | 17:35 |
*** shiyee has quit IRC | 17:35 | |
Lennie | you'll see rights['...' | 17:35 |
Lennie | stuff | 17:35 |
veelck | yep | 17:36 |
Lennie | lets set one for manage now so we dont forget later on | 17:36 |
solydzajs | veelck: don't you have GoogleAppEngineLauncher on OS X ? | 17:36 |
veelck | yep, i do | 17:36 |
solydzajs | you use it to run Melange locally on OS X or not ? | 17:37 |
veelck | locally, yes | 17:37 |
veelck | :) | 17:37 |
veelck | but thru the /thirdparty script atm | 17:37 |
veelck | ;) | 17:37 |
veelck | not the appengineluncher | 17:37 |
solydzajs | you suck :-) AppEngineLauncher is so nice :-) | 17:37 |
veelck | Lennie: acces.checkIsHost? | 17:38 |
solydzajs | j/k :-) | 17:38 |
veelck | solydzajs: haha, I know I suck ;-) | 17:38 |
Lennie | rights[<access_type>] = [list of checks] | 17:38 |
veelck | :D | 17:38 |
Lennie | checkIsHostForProgram | 17:38 |
Lennie | would be better | 17:38 |
Lennie | hmm | 17:38 |
Lennie | that reminds me | 17:38 |
Lennie | I'm a fool | 17:38 |
Lennie | do access.checkIsHost for now :P | 17:39 |
Lennie | I think I gotta take a look at something | 17:39 |
veelck | :) | 17:39 |
veelck | done | 17:39 |
veelck | rights['manage'] = [access.checkIsHost] | 17:39 |
Lennie | cool | 17:40 |
veelck | just something like that, right ? | 17:40 |
Lennie | yes | 17:40 |
Lennie | that's perfect | 17:40 |
veelck | .) | 17:40 |
Lennie | now scroll down to the bottom | 17:40 |
Lennie | for the real work | 17:40 |
veelck | :) | 17:40 |
veelck | done ;-) | 17:41 |
Lennie | sorry was distracted | 17:42 |
Lennie | had to fix something stupid :p | 17:42 |
veelck | ah, np | 17:42 |
Lennie | at the bottom you can see all the functions that can be called by a url | 17:42 |
Lennie | or atleast the ones we mapped to an url | 17:42 |
Lennie | you'll need to add your own | 17:42 |
veelck | ok | 17:43 |
Lennie | the variable name should match the access type in this case | 17:43 |
Lennie | can you show me which pattern you entered? | 17:43 |
Lennie | so I can see if you will be calling the right method you are about to write :D | 17:44 |
veelck | patterns = [] | 17:44 |
veelck | patterns += [ | 17:44 |
veelck | (r'^%(url_name)s/(?P<access_type>manage)/%(key_fields)s$', | 17:44 |
veelck | 'soc.views.models.%(module_name)s.list_requests', | 17:44 |
veelck | 'List of requests for %(name)s')] | 17:44 |
veelck | new_params['extra_django_patterns'] = patterns | 17:44 |
Lennie | you see the second entry? | 17:44 |
Lennie | that's the function call | 17:44 |
veelck | ok | 17:44 |
Lennie | we dont want that to call list_requests since that is not what we are going to use it for | 17:44 |
veelck | so i should change the name | 17:44 |
veelck | ::) | 17:44 |
Lennie | make it call manage | 17:45 |
veelck | cool, I was sure that i did something wrong ;-) | 17:45 |
veelck | ok | 17:45 |
Lennie | at the bottom add the following manage = view.manage | 17:45 |
veelck | and in last line I should something like "manage the %(name)'s" ? | 17:45 |
Lennie | hmm | 17:46 |
Lennie | that's the page name | 17:46 |
*** SRabbelier has quit IRC | 17:46 | |
Lennie | it will be shown in the title bar of the web browser | 17:46 |
veelck | ok | 17:46 |
Lennie | make it look good :D | 17:46 |
veelck | :) | 17:46 |
Lennie | %(name) means that it will replace it with params['name'] in base.view | 17:46 |
Lennie | that would be host in this case | 17:47 |
Lennie | Manage the Host | 17:47 |
veelck | hmm... | 17:47 |
Lennie | is a good start | 17:47 |
veelck | :) | 17:47 |
Lennie | we can always make it say more later on | 17:47 |
Lennie | at the bottom add the following manage = view.manage ^_ ^ | 17:48 |
veelck | added | 17:48 |
veelck | :) | 17:48 |
Lennie | if you press f5 you will get an error :P | 17:48 |
veelck | cool | 17:48 |
veelck | :D | 17:48 |
veelck | been there though ;-) | 17:48 |
Lennie | we have just tried to call view.manage | 17:49 |
Lennie | but we havent added a manage method to the view yet | 17:49 |
Lennie | so that's what we should do next | 17:49 |
veelck | add manage method to view ? .) | 17:49 |
Lennie | yes | 17:49 |
Lennie | that's where your magic will happen | 17:49 |
Lennie | and you'll write your code :D | 17:49 |
veelck | :) | 17:49 |
Lennie | between lists and _editPost define the manage method | 17:50 |
Lennie | the signature is the same as list | 17:50 |
*** tanoku has quit IRC | 17:50 | |
veelck | ok | 17:51 |
veelck | done | 17:51 |
Lennie | cool | 17:51 |
Lennie | now there is a new trick that isn't used in host yet | 17:51 |
Lennie | @decorators.merge_params | 17:51 |
Lennie | @decorators.check_access | 17:51 |
Lennie | should go above the method declaration | 17:52 |
Lennie | the first one will merge some given params into the params for this view | 17:52 |
Lennie | the second one will call the access check you define earlier | 17:52 |
veelck | ok | 17:52 |
Lennie | since hosts doesn't use decorators yet | 17:53 |
Lennie | you should add from soc.views.helper import decorators | 17:53 |
Lennie | somewhere in the import declarations on top | 17:54 |
Lennie | we do those grouped and alphabetically | 17:54 |
Lennie | so you can probably figure out where it should go :) | 17:54 |
veelck | :) | 17:54 |
veelck | done | 17:55 |
veelck | :) | 17:55 |
solydzajs | veelck: decorators basically do something before the body of the method is executed | 17:55 |
Lennie | good point | 17:55 |
solydzajs | body of method or function | 17:55 |
veelck | okey | 17:55 |
veelck | will read up on the topic ;-) | 17:55 |
Lennie | below the definition of manage | 17:56 |
Lennie | please type pass | 17:56 |
Lennie | and press f5 | 17:56 |
Lennie | it should give a did not return HTTPResponseObject error | 17:56 |
solydzajs | pass is used when you don't have any body | 17:56 |
Lennie | unless I've failed you somewhere :) | 17:56 |
solydzajs | in C you would do { } and that would work | 17:56 |
solydzajs | but in python you write pass | 17:56 |
solydzajs | :-) | 17:56 |
Lennie | another good point :D | 17:56 |
Lennie | that's why you have @ ^_^ | 17:56 |
veelck | solydzajs: I knew that ;-) | 17:57 |
solydzajs | veelck: good :-) | 17:57 |
veelck | solydzajs: thx for tip anyway ;-) | 17:57 |
Lennie | so | 17:57 |
veelck | Lennie: what did you mean by F5, as I'm at eclipse in OS X so it's very probable that it didn't do what it suppose ;-) | 17:57 |
Lennie | hehe | 17:58 |
Lennie | open your browser | 17:58 |
Lennie | go to | 17:58 |
veelck | ah ;-) | 17:58 |
Lennie | http://localhost:8080/ | 17:58 |
veelck | didnt get any error | 17:58 |
Lennie | login as developer | 17:58 |
veelck | ;-) | 17:58 |
veelck | hmm | 17:59 |
veelck | still no error ;-) | 17:59 |
Lennie | k | 17:59 |
Lennie | that's because I havent pointed you to the page yet :D | 18:00 |
veelck | heh ;-) | 18:00 |
Lennie | you should create a program owner and program administrator :D | 18:00 |
Lennie | so you can test stuff | 18:00 |
Lennie | then I can redirect you to the error D: | 18:00 |
Lennie | and give you a few hints | 18:02 |
Lennie | and then I need to go | 18:02 |
veelck | ok | 18:02 |
veelck | done | 18:02 |
veelck | program name: potest | 18:03 |
veelck | program admin: veelck | 18:03 |
Lennie | cool | 18:03 |
veelck | s/name/owner name/ | 18:03 |
Lennie | http://localhost:8080/host/manage/potest/veelck | 18:03 |
Lennie | should go boom | 18:03 |
veelck | manage() got an unexpected keyword argument 'scope_path' | 18:04 |
Lennie | did it | 18:04 |
Lennie | can you paste me the line where you did | 18:04 |
Lennie | def manage | 18:04 |
Lennie | ? | 18:04 |
*** madrazr has quit IRC | 18:04 | |
veelck | @decorators.merge_params | 18:05 |
veelck | @decorators.check_access | 18:05 |
veelck | def manage(self, request, access_type, page_name=None, | 18:05 |
veelck | params=None, filter=None): | 18:05 |
veelck | """Manage the Host (mostly delete existing one) | 18:05 |
veelck | """ | 18:05 |
veelck | pass | 18:05 |
Lennie | o | 18:05 |
Lennie | hehe | 18:05 |
Lennie | my mistake | 18:05 |
Lennie | stupid me :D | 18:05 |
Lennie | (self, request, access_type, | 18:05 |
Lennie | page_name=None, params=None, **kwargs): | 18:05 |
Lennie | use that please :D | 18:06 |
veelck | :) | 18:06 |
veelck | yep, now looks ok | 18:06 |
Lennie | that's the signature that is used to call a view method via the url | 18:06 |
veelck | The view soc.views.models.host.manage didn't return an HttpResponse object. | 18:06 |
Lennie | cool | 18:06 |
Lennie | HttpResponseobjects contain as it says a HTTP response | 18:07 |
Lennie | either be it a 404 not found | 18:07 |
Lennie | 505 error | 18:07 |
veelck | :) | 18:07 |
Lennie | or a web page :P | 18:07 |
Lennie | which is what we want to ahppen | 18:07 |
veelck | maybe some day ;-) | 18:07 |
Lennie | hehe | 18:08 |
Lennie | the cool thing is | 18:08 |
veelck | hopefully soon | 18:08 |
Lennie | you can now do stuff like write dilskajdf as a variable | 18:08 |
Lennie | and it will crash | 18:08 |
Lennie | you can then see everything you have access to in that method in your webbrowser | 18:08 |
Lennie | so you can easily see what you need :) | 18:08 |
Lennie | that's the power of the django debug view | 18:09 |
Lennie | it captures the environment at the moment of the error | 18:09 |
Lennie | if you take a look at the error you had | 18:09 |
Lennie | you can scroll a bit down | 18:09 |
Lennie | en press expand | 18:09 |
Lennie | you probably dont have much in there at the moment since we did pass and the error occured back in django | 18:10 |
Lennie | but it's an easy way to debug by just typing some random name to make it give an error :) | 18:10 |
veelck | don't have expand ;-) | 18:10 |
Lennie | and then you can see what's happening | 18:10 |
veelck | cool :) | 18:10 |
Lennie | anyhow | 18:11 |
veelck | no I have to code something real ;-) | 18:11 |
veelck | s/no/now/ | 18:11 |
veelck | anyway | 18:11 |
Lennie | yes :) | 18:11 |
veelck | big thank you, Lennie :) | 18:11 |
Lennie | a good example is in request.py | 18:11 |
veelck | i owe you one :) | 18:11 |
Lennie | processInvite | 18:12 |
Lennie | I would expect something similiar using a GET parameters do decide if a host should be removed | 18:12 |
Lennie | *to | 18:12 |
Lennie | http://localhost:8080/host/manage/potest/veelck?state='invalid' | 18:13 |
Lennie | you should take a look at the method in request.py | 18:13 |
Lennie | and try to understand what it does | 18:13 |
Lennie | and take that with you to the method in host.py | 18:13 |
veelck | ok :) | 18:14 |
Lennie | I have to go now but solydzajs can answer more questions :) | 18:14 |
veelck | cool, thanks one more time ;) | 18:14 |
solydzajs | :-) | 18:14 |
Lennie | np | 18:14 |
Lennie | just get it doen :D | 18:14 |
solydzajs | cya Lennie till tomorrow | 18:14 |
Lennie | yeah | 18:14 |
veelck | haha :) | 18:14 |
veelck | take care man | 18:14 |
Lennie | I'll make the members list for clubs and such | 18:14 |
veelck | :) | 18:14 |
solydzajs | Lennie: conference call tomorrow, you will be actively talking about clubs :-) | 18:14 |
Lennie | ffs | 18:14 |
Lennie | ^_ ^ | 18:15 |
Lennie | it's not done yet :P | 18:15 |
Lennie | that's all I can say :D | 18:15 |
Lennie | I had to write a nice request system :D | 18:15 |
solydzajs | I know ;-) | 18:15 |
solydzajs | we will mention that to Chris too | 18:15 |
Lennie | but it's getting back on speed now :D | 18:15 |
Lennie | luckily almost everything has been refactored already | 18:16 |
Lennie | so orgs should be a piece of cake :D | 18:16 |
Lennie | you should add clean functions for forms to the todo list btw | 18:16 |
Lennie | we need the uniqueness checks and such ^_ ^ | 18:17 |
solydzajs | ok will add it | 18:19 |
Lennie | ty | 18:20 |
*** Lennie has quit IRC | 18:21 | |
*** solydzajs has quit IRC | 19:31 | |
*** dmitrig01|afk is now known as dmitrig01 | 20:03 | |
*** dmitrig01|afk has joined #melange | 20:05 | |
*** ChanServ sets mode: +v dmitrig01|afk | 20:05 | |
*** dmitrig01|afk has quit IRC | 20:08 | |
*** dmitrig01|afk has joined #melange | 20:12 | |
*** ChanServ sets mode: +v dmitrig01|afk | 20:12 | |
*** dmitrig01|afk is now known as dmitrig01 | 20:57 | |
*** mithro has joined #melange | 22:30 | |
*** ChanServ sets mode: +v mithro | 22:30 | |
*** no_mind has quit IRC | 22:39 | |
*** no_mind has joined #melange | 22:39 | |
*** SRabbelier has joined #melange | 23:42 | |
*** ChanServ sets mode: +v SRabbelier | 23:42 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!