Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Maik Derstappen
    @MrTango
    Hm, it actually works, but i got a response 401 Unauthorized, but the container was deleted, i have the feeling the same happens when i create a container. Am i doing something wrong here?
    DELETE http://localhost:8080/db/container1
    Maik Derstappen
    @MrTango
    @svx does the new docs also come with navigation on the bottom of the page, in the current version we have to scroll all the way up to go to the next page ;)
    Jordi Masip
    @masipcat_gitlab

    Hm, it actually works, but i got a response 401 Unauthorized, but the container was deleted, i have the feeling the same happens when i create a container. Am i doing something wrong here?
    DELETE http://localhost:8080/db/container1

    Looks good. Did you send the request from curl/postman or from a browser? I'm asking because the 401 is also returned when the origin is not allowed (CORS requests)

    @MrTango ^
    Maik Derstappen
    @MrTango
    @masipcat_gitlab from postman on localhost ;)
    Ramon Navarro Bosch
    @bloodbare
    @MrTango I can not imagine what flow brings you an unauthorized response on the same call you do a delete or a post. Can you explain a bit more how you reach this situation ? Version, DB, curls that get to this situation
    Maik Derstappen
    @MrTango
    Hi @bloodbare i think it was because of a wrong accept header send by another rest client: Content-Type: application/octet-stream right now with postman i don't get the error. What i do get on the console from time to times is this:
    INFO:     127.0.0.1:51804 - "GET /static/bundle.js HTTP/1.1" 200 OK
    Error on execution of view 8c4b0f1ba6f24a3485b02df9f691199d
    Traceback (most recent call last):
      File "/home/maik/.cache/pypoetry/virtualenvs/guillotiona-app-ka7HC1tl-py3.7/lib/python3.7/site-packages/guillotina/middlewares/errors.py", line 30, in __call__
        resp = await self.next_app(scope, receive, _send)
      File "/home/maik/.cache/pypoetry/virtualenvs/guillotiona-app-ka7HC1tl-py3.7/lib/python3.7/site-packages/guillotina/asgi.py", line 167, in __call__
        return await self.request_handler(request)
      File "/home/maik/.cache/pypoetry/virtualenvs/guillotiona-app-ka7HC1tl-py3.7/lib/python3.7/site-packages/guillotina/asgi.py", line 190, in request_handler
        resp = await route.handler(request)
      File "/home/maik/.cache/pypoetry/virtualenvs/guillotiona-app-ka7HC1tl-py3.7/lib/python3.7/site-packages/guillotina/traversal.py", line 252, in handler
        view_result = await self.view()
      File "/home/maik/.cache/pypoetry/virtualenvs/guillotiona-app-ka7HC1tl-py3.7/lib/python3.7/site-packages/guillotina/api/service.py", line 194, in _call_original
        return await self.__original__()
      File "/home/maik/.cache/pypoetry/virtualenvs/guillotiona-app-ka7HC1tl-py3.7/lib/python3.7/site-packages/guillotina/api/files.py", line 75, in __call__
        return await self.serve_file(self.context)
      File "/home/maik/.cache/pypoetry/virtualenvs/guillotiona-app-ka7HC1tl-py3.7/lib/python3.7/site-packages/guillotina/api/files.py", line 69, in serve_file
        await resp.prepare(self.request)
      File "/home/maik/.cache/pypoetry/virtualenvs/guillotiona-app-ka7HC1tl-py3.7/lib/python3.7/site-packages/guillotina/response.py", line 114, in prepare
        return await self._start(request)
      File "/home/maik/.cache/pypoetry/virtualenvs/guillotiona-app-ka7HC1tl-py3.7/lib/python3.7/site-packages/guillotina/response.py", line 125, in _start
        "headers": self._headers_to_list(headers),
      File "/home/maik/.cache/pypoetry/virtualenvs/guillotiona-app-ka7HC1tl-py3.7/lib/python3.7/site-packages/guillotina/response.py", line 154, in _headers_to_list
        return [(k.encode(), v.encode()) for k, v in headers.items()]
      File "/home/maik/.cache/pypoetry/virtualenvs/guillotiona-app-ka7HC1tl-py3.7/lib/python3.7/site-packages/guillotina/response.py", line 154, in <listcomp>
        return [(k.encode(), v.encode()) for k, v in headers.items()]
    AttributeError: 'NoneType' object has no attribute 'encode'
    i'm running the javascript client locally from the static folder like this:
    jsapps:
    +admin: guillotina:static/executioner
    static: ./static
    not sure if htis helps, but for know it does not bother me to much.
    sven
    @svx

    @svx does the new docs also come with navigation on the bottom of the page, in the current version we have to scroll all the way up to go to the next page ;)

    Yes, they do!

    Hey all, I am looking for Guillotina use case examples for adding to the docs. Can someone explain/write two use cases (maybe an "easy" one and a more advanced one)? It does not need to be long, one sentence per each maybe with a link to an application/site would be super awesome :smile:
    Ramon Navarro Bosch
    @bloodbare
    @svx a NoSQL model with transactions and RBAC security or object api with security are the use cases i mostly use
    From end user use cases: framework with betteries to do mvps that needs to scale to final project
    sven
    @svx
    @bloodbare Awesome!!! Thanks!!!
    Maik Derstappen
    @MrTango
    there is no Framework classifier on PyPi yet, i think that would make sense.
    if i want just a bit of content editing next to an app i want to build, is there anything on the backend side to use for?
    Thinking of something like CMF or Substanced provides. I don't expect much, just some pages and folders editable TTW.
    If there are backend components already i would use them and build the frontend part on top. Or if there is a small fronend i would just use it as it is. I know there is also guillotina_volto, but thats more than i need and I'm not sure if thats even in a useable state right now. Any ideas?
    Hack n fcuk
    @haknfuk_twitter
    Hack n fcuk
    @haknfuk_twitter
    Thanks!!
    Hack n fcuk
    @haknfuk_twitter
    @bloodbare Sorry for ping again, but what should I provide for redis_container and guillotina_main?
    Ramon Navarro Bosch
    @bloodbare
    this are fixtures for pytest already defined if you load guillotina test fixtures
    Hack n fcuk
    @haknfuk_twitter
    I wanna confirm something, can you please check your DM?
    Sergey Maranchuk
    @slav0nic
    as i understand guillotina support only postgres as storage? So, why for storing trees in DB was selected general parent_id FK solution, rather than ltree module?
    alan runyan
    @runyaga
    what CI is being used? the CI build badge points to travis but the tests havent run there in ~ 10m
    m == months
    Ramon Navarro Bosch
    @bloodbare
    @slav0nic we were willing to develop something on standard SQL support in case we want to adapt to other storages. Also we want to use flat storage with uuids instead of enforcing tree on database, deletions are super simple and moves are O(1)
    we moved from travis to github some months ago
    Ramon Navarro Bosch
    @bloodbare
    @slav0nic there is a PoC storage based on key-value rocks also, one of the main focus on some decisions is the performance
    Sergey Maranchuk
    @slav0nic
    thank for the explanation
    ardo
    @ardohr_gitlab
    Hi..night all.
    Is the guillotina-react documentation still valid? I tried to install but can't login (python 3.7.11, Guillotina 6.3.15)
    ardo
    @ardohr_gitlab
    error message in guillotina application like this: [32mINFO←[0m: ::1:49704 - "←[1mGET /db/ HTTP/1.1←[0m" [32m200 OK←[0m
    origin http://localhost:3000 not allowed
    Roger Boixader Güell
    @rboixaderg
    Hi @ardohr_gitlab, have the allow_origin: config in your guillotina config? It's seems that is guillotina config problem and not guillotina_react problem
    ardo
    @ardohr_gitlab
    Hi Roger
    Thx a lot for your explanation. now guillotina_react is running well in my laptop
    ardo
    @ardohr_gitlab
    Hi all
    How does Guillotina handle relational data? Any examples?
    Ramon Navarro Bosch
    @bloodbare
    @ardohr_gitlab it has the driver for pg connection and you can reuse the connection pool for quering DB and do your own views. There is a small package we use for storing relational data as a field on a Guillotina Object : https://github.com/guillotinaweb/guillotina_pgfield
    you can define a field on an object that has a sql schema
    I hope it helps
    ardo
    @ardohr_gitlab
    Hi @bloodbare , Thank you. I'll try it.
    ardo
    @ardohr_gitlab
    Hi All. Sorry i have another question to ask.
    I tried to follow it step by step in the training document (on guillotina_chat). But when I click Add Message in the conversation there is an error as shown in the image. I've disabled the serialize script(serialize.py), but the error is still the same. Is there an explanation for this error ?
    Screenshot (1022).png
    ardo
    @ardohr_gitlab
    in debug mode there is'nt error message.
    Roger Boixader Güell
    @rboixaderg
    Hi @ardohr_gitlab, can you share the guillotina response?
    ardo
    @ardohr_gitlab
    Hi @rboixaderg. That is my mistake. Because the GMI Form seems to only display the Id and Title fields. Whereas in chat applications, the content schema only has a Text message field (without id and title). After changing required = True to False, there is no such error