Code Monkey home page Code Monkey logo

Comments (6)

datakurre avatar datakurre commented on June 2, 2024

These difficult issues. It's hard to replace ZTK-packages / conventions without replicating similar features by ourselves. And currently we don't test our code well enough to qualify.

zope.authentication

  • zope.securitypolicy depends on zope.authentication interfaces
  • zope.securitypolicy implements the security model we've used to in Plone
  • I'd be careful in reinventing / reimplementing that

zcml

  • as long as we use ZTK, we must support ZCML
  • what could replace ZCML? venusian does nothing by itself, pyramid has its own venusian based configurator, pyramid_zcml depends on pyramid configurator
  • I did propose my zope.configuration based/compatible venusianconfiguration at Barcelona Sprint, but it just scared everyone, and I had to refactor it out

@bloodbare needs to defend JSON-configuration; IMO JSON is no better than XML for humans to write :) (generated JSON is ok)

IMO, if we come up with Python based configuration, then decorators and includeme configuration should be obvious.

from plone.server.

datakurre avatar datakurre commented on June 2, 2024
I'm lucky to have some rare spare time this weekend, so I'll try out an another moonshot: - asyncio + uvloop + httptools + something for fast minimal asyncio HTTP server - two threads + processpool - main thread with asyncio loop is just the HTTP server (similarly to ZServer) - one worker thread with asyncio loop will route and process requests with single ZODB connection - asyncio process worker with configurable pool size for handling stateless processing - somehow I force only one active transaction on the connection and make it convenient to "release" the ZODB connection as possible, possible make a savepoint of uncommitted changes, and make it posibble to continue frozen transaction later (unless there have been conflicts)

Cancelled by changes in family schedules. Was too good to be true :) Yet, at some point I must experiment, if pyramid could be used with asyncio and without WSGI with a pattern that works with ZODB (default patterns won't work because of all the issues we have with plone.server). And if that works, that pattern could also be adapted to plone.server with ZTK (I just want to try it out with minimal stack at first).

from plone.server.

vangheem avatar vangheem commented on June 2, 2024

Maybe I just need to build on zope.authentication more. Or we still use zope.authentication but build pyramid-like patterns with it.

I'm just not very happy on initial look for using it. I've been playing with implementing https://github.com/pyrenees/pserver.zodbusers and find the current interfaces a little crud. I'd like to have a more elegant solution.

I don't want to re-implement anything--but barrow on the ideas... Use what works and has been a more popular choice.

That being said, you're point about ZCA and ZCML are well taken. I wish I would have noticed your discussion on the venusian zope configuration--might help me understand what would be best now.

from plone.server.

datakurre avatar datakurre commented on June 2, 2024

Did you already look into zope.principalregistry on how it implements non-persistent registry?

On 4. marraskuuta 2016 klo 16.30 +0200, Nathan Van Gheem [email protected], wrote:

Maybe I just need to build on zope.authentication more. Or we still use zope.authentication but build pyramid-like patterns with it.

I'm just not very happy on initial look for using it. I've been playing with implementing https://github.com/pyrenees/pserver.zodbusers and find the current interfaces a little crud. I'd like to have a more elegant solution.

I don't want to re-implement anything--but barrow on the ideas... Use what works and has been a more popular choice.

That being said, you're point about ZCA and ZCML are well taken. I wish I would have noticed your discussion on the venusian zope configuration--might help me understand what would be best now.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub (#11 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAJyvxq2udjCylmL1RnLLKAWsx-f1GvCks5q60FygaJpZM4KpTNn).

from plone.server.

vangheem avatar vangheem commented on June 2, 2024

No, I didn't. It looks like it could help in some cases.

from plone.server.

bloodbare avatar bloodbare commented on June 2, 2024

On plone.server there is two JSON:

One for the REST API : its main idea is that can be readed easier in code and we can generate documentation easily to see the API from it. @sneridagh was working on this parsing and generation.

One for the starting up configuration : This configuration is mainly written by machine on docker containers, so it needs to be something easy to serialize and deserialize. In my opinion JSON is the tool for this configuration.

I'm not fan of any format, just like the idea of use what needs to be used to make it easy and document it properly.

I like the non-persitent registry ! :)

from plone.server.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.