Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Robert Kuzma
    @balavec
    root is blocked?
    Jordi Masip
    @masipcat_gitlab
    no, it should work
    hmm
    Robert Kuzma
    @balavec
    Before I added the CORS to chrome the message in the browser was: “Failed to fetch data: Backend not running?"
    After I added it: “Failed! Invalid credentials"
    but in the guillotina terminal
    in both cases there is message:
    Origin http://localhost:3000 not allowed
    INFO:     ::1:57230 - "POST /%40login HTTP/1.1" 401 Unauthorized
    Jordi Masip
    @masipcat_gitlab
    ok
    can you try with this value in the config https://github.com/plone/guillotina/blob/master/config.yaml#L33-L34 ?
    Marwan Rabbâa
    @waghanza
    Hi,
    Thanks @masipcat_gitlab for the-benchmarker/web-frameworks#3600. Is there any recommandation for guillotina deploymennt ?
    Jordi Masip
    @masipcat_gitlab
    Hi @waghanza , I'm not sure what do you mean, but since Guillotina is an ASGI web framework, I'd say the same deployment used for Quart/Starlette
    Marwan Rabbâa
    @waghanza
    the author of quart recommend hypercorn and starlette recommandation (at least what it is written on it website) is to use uvicorn. I known that any asgi server could be used, but which one (if their is) do you recommend for a production-grade app ?
    Jordi Masip
    @masipcat_gitlab
    I guess we recommend uvicorn. It the one we ship by default
    Ramon Navarro Bosch
    @bloodbare
    Merry christmas every body @here! 2021 will be an amazing year for Guillotina 🎉🎉🎉
    sven
    @svx
    Hm,I just tried again building the docs with Python 3.8 and that failed. Building with Python 3.7 works. Does someone else encountered that, too or is it my setup?
    sven
    @svx
    Screenshot 2021-01-11 at 16.59.05.png
    Back to work a bit on the docs :smile:
    Jordi Masip
    @masipcat_gitlab
    This theme looks great!
    sven
    @svx
    Yeah, it is by all means not finished yet but maybe this could be the base of something
    Ramon Navarro Bosch
    @bloodbare
    👏🏼👏🏼
    @sven which 3.8?
    sven
    @svx
    @bloodbare Python 3.8.7
    Ramon Navarro Bosch
    @bloodbare
    Maybe a problem building python deps? Can u try with 3.8.2?
    sven
    @svx
    Yeah I will try later :) Thanks!
    Jordi Collell
    @jordic
    Yeah, just found that we are on a ranking :)
    Jordi Collell
    @jordic
    Hey? What's the endpoint to discover if add-ons are installed?
    Ramon Navarro Bosch
    @bloodbare
    @addons ?
    Jordi Collell
    @jordic
    this only works for root user.
    the idea is to be able to show a docs tab with the swagger embeded if swagger is installed
    Jordi Collell
    @jordic
    On another thing, does makes sense to split guillotina gmi in it's on pip package?
    Jordi Masip
    @masipcat_gitlab

    On another thing, does makes sense to split guillotina gmi in it's on pip package?

    I think this would be great! We'll be able to support multiple guillotina versions (like G6 and G7) without porting the changes to each version

    Jordi Collell
    @jordic
    Released firt version of guillotina_gmi on pypi, if anyone is interested testing.
    Nathan Van Gheem
    @vangheem
    @bloodbare @masipcat_gitlab maybe the real problem here is that on local role change, you need to reindex all children? plone/guillotina#1097
    because this can happen on any tree -- getting local roles on container doesn't necessarily solve the problem
    Ferran Llamas
    @lferran

    @bloodbare @masipcat_gitlab would you be OK with adding a depth limit for content creation? Limit would be configurable through app settings.

    Something like that:

    https://github.com/plone/guillotina/pull/1098/files

    Maybe inside create_content_in_container instead.

    lmk your thoughts :)

    Anh Tu Nguyen
    @xgenvn
    hi guys
    Maik Derstappen
    @MrTango
    Hey guys, is it possible to delete a container? i created some content types in it and changed the code after, i just want to delete it and move on testing things out.
    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: