Comments (2)
_get_fields_with_property only return top level excludes which is good because sub level excludes should be mixed with overrides parameters
So you are ok with the current behavior?
I see three solutions on how to deal with this problem that the admin_only
property is only taken into account for fields on the main model:
- It's not a bug, it's a feature. If the user wants to exclude fields for child models, he/she has to set 'overrides'. Which is confusing in my opinion.
- Check for the
admin_only
recursively and and set theexcludes
with theoverrides
property for child models when creating the schema. The problem is that the user might provide a customoverrides
object, so we would have to merge the useroverrides
with ouroverrides
. This might be tricky but doable. - Remove the
admin_only
property. The user would have to specify the includes or excludes via theoverrides
property. This also allows to hide fields in the user views.
Opinions welcome!
from c2cgeoform.
We agreed to go for option 3, because it should be possible to use the same model with different schemas. And because this is also the way you would do it when directly using ColanderAlchemy.
from c2cgeoform.
Related Issues (20)
- Provide a Pyramid project template HOT 2
- Document session management configuration
- Remove themes.min.css from the repo if it's not used
- Use ColanderAlchemy 0.3.2 HOT 1
- [Demo] Links are dead HOT 1
- Problem with not null date fields HOT 1
- Invalid link in main README HOT 1
- broken make serve in template app HOT 1
- 404 not found on comments page (scaffolded app) HOT 1
- Caching issues HOT 1
- Missing style for points
- Use ujson to speedup json rendering
- Avoid "label" class to apply on columns / input fields named label.
- DOC : Prerequisite udpate -> NVM
- Replace monkey patching on deform classes by templating
- Use camptocamp/initialise-gopass-summon-action for transifex and pypi
- Use c2cciutils for publish HOT 1
- Action Required: Fix Renovate Configuration
- Dependency Dashboard
- Geo GHCI int Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c2cgeoform.