greptilian logo

IRC log for #rest, 2017-06-15

https://trygvis.io/rest-wiki/

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
00:12 tbsf joined #rest
00:36 tbsf joined #rest
02:54 impl joined #rest
04:32 Guest82076 joined #rest
04:40 wsieroci joined #rest
07:13 tbsf joined #rest
11:13 tbsf joined #rest
15:34 tbsf joined #rest
15:36 tbsf joined #rest
15:48 tbsf joined #rest
15:53 tbsf joined #rest
15:55 tbsf joined #rest
16:00 tbsf_ joined #rest
16:06 tbsf joined #rest
16:15 moldy joined #rest
16:15 moldy left #rest
16:36 tbsf joined #rest
16:36 tbsf joined #rest
16:52 wsieroci joined #rest
16:59 tinker_ joined #rest
17:00 tinker_ is this a channel for questions for django's rest framework newbs?
17:12 whartung not really tinker_ , it’s more generic philisophical rest navel gazing than specifics on individual frameworks
17:22 tinker_ oh. someone recommended this channel for drf :)
17:24 whartung well stick around, someone else might see your query and be able to help.
17:41 tbsf joined #rest
17:42 tbsf joined #rest
18:28 tinker_ https://github.com/encode/django-rest-framework/blob/master/rest_framework/mixins.py - can someone explain where self.get_object() is defined on line 56?
18:29 whartung That’s actually a Python question moreso than a Django question.
18:30 whartung I do’t know enough Python to help.
18:30 asdf tinker_, eg. here https://github.com/encode/django-rest-framework/blob/master/rest_framework/generics.py#L77
18:31 asdf (those are mixins so could be used with other classes as well)
18:32 tinker_ so unless a class also inherits from class GenericAPIView the method is unusable?
18:33 whartung how are the classes joined together, since the first one doesn’t (apparently) declare a dependency on the GenericAPIIView
18:33 whartung is that done at runtime somewhere?
18:33 asdf you'd have a class that inherits from both the base view and the mixin, eg. this one: https://github.com/encode/django-rest-framework/blob/master/rest_framework/generics.py#L204
18:34 asdf that's pretty common in base django as well (but not in many other frameworks that i know)
18:34 asdf tinker_, right
18:34 tinker_ thanks! :)
18:34 asdf (well, or some other class that provides that method, but in reality you probably wouldn't have any others)
18:38 Haudegen joined #rest
18:56 ResidentBiscuit joined #rest
19:06 ForeignBiscuit joined #rest
20:05 wsieroci joined #rest
21:01 tbsf joined #rest

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

https://trygvis.io/rest-wiki/