This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Implementing get routes #15
Open
CSDUMMI
wants to merge
55
commits into
Unautenticated_With_JS
Choose a base branch
from
Implementing_GET_Routes
base: Unautenticated_With_JS
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Login returns the login.html page, while /readings returns the readings-index.html with a readings template variable containing the unencrypted messages.
If the user is logged in, returns feed sorted by most recent uploads as dict of "title" and "hash". So you can use /read/<hash> to get to reading that upload.
redirect to login.
Added try catch error handleing..
and used try … catch … else. Added errors.
that can easily be transformed using dict operations. This is used to enable a debug mode, where instead of numeric error codes, strings are used.
And raising exceptions if the error is unknown.
objects. Moved output/home.html -> output/index.html and output/home.css -> output/static/index.css
Handling TypError in GET /vote.
…ded in {{}} or {%%} and {{}} does automatic XSS protection on the server. This will have to be automized, improved and the XSS prevention moved into the browser.
CSDUMMI
added
critical
Any and all changes to critical parts of the codebase, like elections.
enhancement
New feature or request
labels
Feb 26, 2020
…so. Using datetime.date.fromisoformat and isoformat.
…so. Using datetime.date.fromisoformat and isoformat.
…demnet into Implementing_GET_Routes
encrypt, sign and verify in main.py.
… only allowed as a user with username "joris".
Removed all encryption and keys for the alpha phase.
from POST /write, which means once you saved your message once, you'll be redirected to that messsages id: /write/<hash>
0. Proposing the vote 1. Collection options 2. Voting And implemented first route for the first step of the process, GET and POST /voting/propose.
…ut I am going to stop now.
… in the dictionary could also be arguments of themself. Also, don't write more comment than code.
…rgument, although it was a keyword argument.
… data structure in MongoDB in /voting/option/<vote_id>
…he Patches module. Also created a function to set a Patch directory to readonly.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
critical
Any and all changes to critical parts of the codebase, like elections.
enhancement
New feature or request
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is not supposed to be merged yet.
But having these Requests open makes it more easily possible for us to keep
an eye on those Branches, that we still work on and review the code.
It also makes the goal of a branch clear.
My goal here is to implement the GET Routes underlying the
UI.
In the end, this is supposed to make it easy to test (by hand)
the different functionalities of the site.
I want to ( and have partly already done so) implement:
I am using Jinja2 Templates.
This means that in Unautenticated_With_JS we will have
to use that Template Engine to present, for example:
The title of a post and a link to the /read/ of the post in / and /.
Message
,Draft Message
andElection
are directly from the Databaseand by current plans, unencrypted (at least for
Message
andDraft Message
).Explanation to the format:
Before the
->
is the valid HTTP Header.After it the HTML Template File it links to and after
with
theJinja2 Variables and their Type.