Questions tagged [websauna]

Questions regarding Websauna framework. Websauna is a Python framework for building web services and back offices with admin interface and sign up process.

Websauna is a full stack Python framework for developing customer facing web services.

8 questions
2
votes
1 answer

Doing multi-tenancy in Websauna

My approach to develop a multi-tenant i.e. Shared Database, Separate Schemas ideally on PostgreSQL. One database for all tenants, but one schema per tenant similar to django tenant schemas. Is there a guide or addon to achieve this on websauna?
lalilulelo
  • 85
  • 3
  • 9
2
votes
1 answer

How do I upgrade from a previous version of websauna?

I have a websauna project which I created using this command: pip install -e "git+https://github.com/websauna/websauna.git@master#egg=websauna[celery,utils,notebook]" this is found in the documentation at:…
maz
  • 8,056
  • 4
  • 26
  • 25
1
vote
1 answer

Inconsistent ACL Permission on Pyramid/Websauna

I'm troubleshooting is_visible method on Websauna since it is not working properly (at least for me). The file can be found here. The issue is, it appears the ACL context suddenly changes from what it shows a line above. Here is the method laced…
lalilulelo
  • 85
  • 3
  • 9
1
vote
0 answers

websauna populate table with data from users

I'm just starting digging into websauna and python frameworks, and have one question. How can I create a table that will be populating based on websauna.system.user? For example table 'example' should contain two columns: user_id based on users.id…
Andrii
  • 11
  • 2
1
vote
1 answer

404 The resource could not be found

Getting 404 Resource not found when trying to access a single item as anonymous i.e. no authenticated. I would expect instead a 403 Forbidden since I have setting permission on the view config. class BookShow(FormView): """Show one instance of a…
lalilulelo
  • 85
  • 3
  • 9
1
vote
1 answer

Manage ManyToMany relationship in Websauna Admin Panel

I have a model where a lot of ManyToMany connections. I need a smart way to manage from Admin Panel. When creating a campaign model I need to connect to other models. Does Websauna have something like Django Inline foms? class Campaign(Base,…
eirenikos
  • 2,296
  • 25
  • 25
1
vote
1 answer

Generation admin panel with custom column type in Websauna

I have a SQLAlchemy model with custom type ChoiceType which comes from sqlalchemy_utils library. class Recipient(Base, BaseMixin): first_name = Column(String()) last_name = Column(String()) social_network =…
eirenikos
  • 2,296
  • 25
  • 25
0
votes
1 answer

Websauna threading runtime signal error with pdb.set_trace()

I want to debug the runtime of a websauna app, so I set a pdb.set_trace() in system/admin/views.py:87 like so, @view_config(context=ModelAdmin.Resource, name="show", renderer="crud/show.html", route_name="admin", permission='view') def…
maz
  • 8,056
  • 4
  • 26
  • 25