underdarknl / uweb3 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from codepanter/uweb3
License: GNU General Public License v3.0
This project forked from codepanter/uweb3
License: GNU General Public License v3.0
Currently the self.post will be set to the JSON result of a request when data is present, and if empty to an IndexedFieldStorage.
Line 87 in e6d0dc1
uweb3/uweb3/pagemaker/__init__.py
Line 320 in e6d0dc1
When the first class uses an SQLITE connector and the second class has no specification there will be a cross database fetch and join.
Class one will fetch from SQLITE, class two will fetch from MYSQL by default, resulting in a record that is combined with data from two different databases
This issue is present in the uweb3warehouse when the first request to the server is an API request.
In this case the decorator attempts to see if the user is registered in the database, however since the connection object has no connection present yet it will instead crash.
This might have something to do with the stackwalking that is done to find the correct connection object.
Still have to do some investigation to the exact cause.
When using the new implementation of routing routes are no longer being validated on presence.
This allows uweb3 to launch while a PageMaker does not have according route.
Currently all PageMakers are loaded into a 'super' PageMaker class that is passed to the uweb3 class when setting up the server.
This causes all PageMakers to be loaded on every request, even if the request is not meant for that PageMaker, thus losing the ability to write custom behaviour for a specific PageMaker.
Because of this it is not possible to use a PageMaker class to its full potential, we are missing out on functionality that was present in uweb2 such as _PostInit, _PostRequest, custom template dirs for specific PageMakers, and more.
A possible solution for this is the new routing proposed in #22 however this does not solve the issue for the current routing.
For example:
model.User.List(self.connection, order=("LOWER(username)",))
Will generate the following SQL:
ORDER BY `lower(username)`;
Thus generating an error because `lower(..)`
is not a valid column.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.