by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 01 07:41
    CastixGitHub synchronize #129
  • Jun 30 16:23
    CastixGitHub synchronize #129
  • Jun 30 16:21
    CastixGitHub opened #129
  • Jun 19 19:48

    brondsem on 0.10.2

    (compare)

  • Jun 19 19:48

    brondsem on master

    Version 0.10.2 (compare)

  • Jun 19 19:20

    brondsem on master

    MIM: Avoid errors from _ensure_… Merge pull request #25 from Tur… (compare)

  • Jun 19 19:20
    brondsem closed #25
  • Jun 19 19:17

    brondsem on master

    Use our __insert not pymongo pa… Merge pull request #24 from Tur… (compare)

  • Jun 19 19:17
    brondsem closed #24
  • Jun 18 21:32
    brondsem opened #25
  • Jun 18 21:30

    brondsem on mim_dot_dollar_wrong

    MIM: failing test for positiona… (compare)

  • Jun 18 21:28

    brondsem on mim_dot_dollar

    MIM: Avoid errors from _ensure_… (compare)

  • Jun 18 21:26

    brondsem on mim_dot_dollar

    MIM: Avoid errors from _ensure_… (compare)

  • Jun 18 15:19
    brondsem opened #24
  • Jun 18 15:19

    brondsem on mim_save_no_id

    Use our __insert not pymongo pa… (compare)

  • Jun 17 21:40

    brondsem on 0.10.1

    (compare)

  • Jun 17 21:40

    brondsem on master

    Version 0.10.1 (compare)

  • Jun 17 21:40

    brondsem on 0.5.7

    (compare)

  • Jun 16 20:51

    amol- on master

    Handle cursor iter when items a… (compare)

  • Jun 16 20:51
    amol- closed #22
Berthoud Yannick
@YannickBerthoud_twitter
it's working, good job ! thanks a lot
kevinhuang
@huangzhuo492008824
gearbox.png
Hello all, when I try run "gearbox serve" , it return error:
Advice would be appreciated. Thanks!
Joe Knapka
@jknapka
It appears to be a problem with SQLAlchemy. Check that you have updated it to the version TG needs. With TG2.4 I have SQLAlchemy 1.3.7.
Nils Philippsen
@nphilipp
It seems something is broken with the installed SQLAlchemy, not its version -- sqlalchemy.log implements the Identified class itself.
Joe Knapka
@jknapka
Kevin, if you're not installing TG and its friends in a virtualenv, I would recommend you do that. Start with freshly-installed everything (including SQLAlchemy) in a virtualenv and see if you see the same problem.
Rich Kucera
@kucerarichard
Newbie here, my minimal configurator doesn't give me access to tg.request.validation as documented. Should I duplicate my post here from the mailing list? Where do I begin to troubleshoot?
Alessandro Molina
@amol-
I saw the post on the ML coming, didn't yet have a chance to respond. I hope to be able to respond soon.
AppGlobal btw is not configured in minimal mode if I remember correctly.
I just need to have a few minutes spare to try your snippet and come back to you with the proper solution
Alessandro Molina
@amol-
Those messages you see should be warnings and are unrelated to tg.request.validation
Rich Kucera
@kucerarichard
@amol- Thank you Alessandro! I forked the gist should be able to try tomorrow...
Alessandro Molina
@amol-
FYI, TurboGears 2.4.1 was released, here is the release announcement: https://twitter.com/turbogearsorg/status/1168987947867279369
Rich Kucera
@kucerarichard
@amol- thanks! for the help. Mine was such a basic import tg error and plus messed up comprehension syntax..
Alessandro Molina
@amol-
:+1:
yeah, I wasn't sure if you were trying to make a list of dicts or a dict with all the entries given the comprehension you wrote
Mengu Kagan
@mengu
hi all
Rich Kucera
@kucerarichard
@mengu hello!
Is it possible to express compound validation with the validate decorator? For example I have three parameters and Any of them(at least one of them) need to have a number.
Rich Kucera
@kucerarichard
nvmd I had to reread the doc, the answer is yes but but for multiple validators on the same parameter, not multiple parameters...
Alessandro Molina
@amol-
Hi @mengu great to see you around :)
@kucerarichard if you feel is not obvious in the doc how to do something, feel free to submit a PR. I'll gladly merge it!
Rich Kucera
@kucerarichard
Will do! I finally figured out I need schema validation (haven't done it yet, will take notes...)
Rich Kucera
@kucerarichard
(btw I tried using bottlepy for an hour, got bored and dropped it, so hopefully will make more progress on the app going ahead with tg2 now..., I spent two weeks comparing frameworks and got nowhere finally tried bottle and didn't like the code I'd end up writing).
Mengu Kagan
@mengu
@amol- heard you guys were hanging around here :)
@kucerarichard, what do you expect a framework to help you with?
Rich Kucera
@kucerarichard
@mengu depends on what I'm trying to do, so far I like the minimal mode of tg2 and the enigmatic formencode integration, I expect to go fullstack sometime and glad that is an option.
Alessandro Molina
@amol-
@kucerarichard for most use cases you don't even need to involve Formencode, in many cases builtin Convert is enough: https://turbogears.readthedocs.io/en/latest/reference/classes.html#tg.validation.Convert
Rich Kucera
@kucerarichard
Interesting! But I'll need formencode, I found some examples I'll see if I can boil it down into a PR. There was one crucial example that showed me how to do it.
privlj
@privlj
Anyone that can point me in the right direction for dynamically loading controllers onto RootController? I'm a bit noob and trying to figure out how to essentially setattr(RootController, '$controllername', controller)
I'm at the point where I'm looking into hooks and milestones to start the process, but app_cfg is too early in the process, while root seems to be too late.
Alessandro Molina
@amol-
privlj
@privlj
@amol- Thanking you, will come back if I get stuck again :P
Walter A. Boring IV
@hemna
I'm trying to create a template that does a <py:include href="webcam.xhtml" />
the resulting html output adds a DOCTYPE as part of the include for webcam.xhtml
which it shouldn't
webcam.xhtml just is a tiny segment of html
how can I tell kajiki to not prepend <!DOCTYPE kajiki SYSTEM "kajiki.dtd"> to the contents of webcam.xhtml ?
Walter A. Boring IV
@hemna
I filed a defect
it includes sample template code and output, which seems broken
Alessandro Molina
@amol-
@hemna it's an hack, but have you tried renaming the included templates with .html instead of .xhtml? I suspect the loader might be triggering a DOCTYPE insertion due to html5 load mode.
include works fine in kajiki plain, so I suspect it's something about the loader configuration by TG that's causing that
Alessandro Molina
@amol-
Also, I usually do partials with py:import and py:def, it's usually a more reliable and well encapsulated way of making reusable snippets than just including the template content raw with py:include
Walter A. Boring IV
@hemna
I renamed the template files to html and then it failed to serve them
Alessandro Molina
@amol-
You changed the py:include expression to point to the new name, right?
Alessandro Molina
@amol-
@hemna Released a new version of Kajiki that should address your issue.
Walter A. Boring IV
@hemna
ok thank you. I just updated and the DOCTYPE tags seem to be gone :)
Nils Philippsen
@nphilipp
Hey everybody! Any idea how I could use a temporary PostgreSQL db for tests, like with the pytest-postgresql fixture which creates a temporary DB process just for tests? I'm struggling finding a way to insert this one's URL into TG's configuration for the tests, because the port number isn't known up-front.
Alessandro Molina
@amol-
When you call make_app you can pass options to replace those from .ini or app_cfg but I think the real hard part is that the setup fixture in tests relies on setup-app