raydeo and pyramid's i18n docs also have issues with i18n
and neither of us have done i18n, so we don't know how to fix it :(
we need more taco trucks on every corner
hvelarde|lunch is now known as hvelarde
davisagli joined the channel
npilon joined the channel
stevepi_ has quit
stevepiercy joined the channel
raspi
ok, finally i18n .pot files are created. only took 4 days. so setup.py extract_messages is not used. so this should be removed from the docs.
next how to use the .mo files :)
evagelos
moo-_-: it worked the 1st attempt i did by doing this: env = jinja2.Environment(..); env.globals['_'] = my_translate_function; And inside templates im setting variables where i call the function _
moo-_-: example inside template: {% default_title = _('string-id', default='my string that needs translate') %}
stevepi_: couldnt figure out from docs and the example wants me to create a project in order to see how it works :O no thanks
im noob i dont know pyramid im trying to learn it i hate docs its so freaking frustrating to learn pyramid i dont want to insult anyone cause im noob and people say pyramid is awesome and scales and stuff but for noobs like me aaaaa i want to smash my screen everytime i go to docs
i appreciate u all and the work u have done my opinoon doesnt matter i dont want to insult anyone its cause im frustrated when i search for pyramid resources + i hate docs
pls make for videos in conferences etc i searched entire youtube to find english pyramid videos
dowwie
evagelos: that is the fault of event organizers, mostly
evagelos
iv seen mister mc d.. dont remember his name with the "pyramid auth is hard lets ride bikes" and it was cool even though when he started talking advances time ran out :(
NotreDev
I’ve got a model that I’d like to serialize which includes a URL that I’d like to build from a request.route_url. Unfortunately, I can’t pass a request object to it (using a framework). It seems my options are to grab the thread’s request, or to inject a route_url builder into a global object. Any thoughts?
evagelos
and also another guy i think from Mexico anyway i wish more content can be produces :|
Spanktar joined the channel
sry for my unrelated chat im off to rest thanks everyone
evagelos has quit
NotreDev
man, I love the pyramid docs.
chreide joined the channel
gavinc joined the channel
ronnix joined the channel
stevepiercy
"i hate docs"
i don't even...
raydeo
I think you can hate docs or examples but you're going to have a bad time if you hate both
mr_jolly has quit
"I only learn via video"
moo-_-
NotreDev: don't do that
NotreDev: separate serialization from model code
blaflamme
stevepiercy you're the doc master
moo-_-
documeister
NotreDev
moo-_-: i’m using marshmallow_sqlalchemy. by and far it’s productive. i’ve got a bookmark in my brain to figuring out if I can pass it a “request” as context.
raydeo
NotreDev: marshmallow lets you bind stuff to the context, so that should be the way to do it
mr_jolly joined the channel
Adniel has quit
agitator joined the channel
El_Rolando has quit
rodfersou is now known as rodfersou|afk
mr_jolly has quit
chreide has quit
chris___ joined the channel
disko has quit
chris___ has quit
chreide joined the channel
chrisrossi
docs are what roped me in.
of course, that was in '08. the docs were a lot shorter.
I don't think there's any great mitigation other than DON'T ENABLE DEBUGTOOLS in web facing systems :\
mr_jolly joined the channel
chrisw_ joined the channel
kiorky joined the channel
mr_jolly has quit
ztane
gavinc: ... you didn't realize what is the vulnerability
the vulnerability is "do not browse the web while you're developing"
i.e. while you're developing, do not connect to the internet.
davisagli has quit
evilbungle has quit
gavinc
mmm
chrisrossi
i'm pretty sure you can tell debugtoolbar to only talk to localhost
in fact, that's probably the default.
look it up, though, to make sure.
gavinc
(amusinglyly that would only help if it's by hostname not by IP)
chrisrossi
you know what i mean.
raydeo
dns rebinding is quite tricky
pauleveritt joined the channel
because it's all about localhost
ztane: it'd be swell if you were that someone
chrisw_ has quit
teix has quit
waigani joined the channel
monokrome
Does anyone know a way to make a view_config that handles all options requests? I thought this would work: @view.view_config(request_method='OPTIONS', path_info='.*', renderer='json')
That apparently only works for requests to the root