pythonireland / broadgauge Goto Github PK
View Code? Open in Web Editor NEWThis project forked from anandology/broadgauge
Platform for managing training/workshops
License: Other
This project forked from anandology/broadgauge
Platform for managing training/workshops
License: Other
The tests are not working, there's some import errors.
python run.py --test
from ..models import User, Trainer, get_db
ImportError: cannot import name Trainer
The date entry field on the new workshop page is in a awkward format with no prompt.
Current format required is 2015-02-13
We would like a prompt within the field for users to quickly understand the date entry format required.
DOD: Date entry field contains a sample of date format to be entered.
There are a small number of typos in the text (ignoring that it's all en_US spelling).
The About page has lots of text that is PythonIndia specific.
Let's edit it down, and make it super easy to understand how to use the site to organize workshops
Should we change the line from "© 2014 Python Software Society of India" to = © 2014 Python Software Society of Ireland"
When authenticating by OAUTH, a redirect URL is passed to the authentication provider. This tells the authentication provider where to send the user after they have authenticated.
At the moment the redirect URL is hard coded, and may be http://0.0.0.0:8080/ which in some browsers doesn't work.
Fix this!
Description:
Create a section of the site where potential organizations can express interest in sponsoring events.
On the page where workshops are displayed there should be a button saying "I want to sponsor" (or something similar)
When the potential sponsor clicks on this button, an email is sent to the organization letting them know that somebody wished to sponsor.
Other features:
When the potential sponsor clicks the button they are prompted to include what type of sponsorship the could offer, pay for food, offer a venue, money in general etc...
On the "Contact" page, entering valid information, I get:
127.0.0.1:35853 - - [14/Jun/2015 19:01:10] "HTTP/1.1 GET /contact" - 200 OK
Traceback (most recent call last):
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/application.py", line 239, in process
return self.handle()
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
return self._delegate(fn, self.fvars, args)
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/application.py", line 462, in _delegate
return handle_class(cls)
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/application.py", line 438, in handle_class
return tocall(*args)
File "/home/gerry/dev/play/pythonireland/broadgauge/broadgauge/views/home.py", line 61, in POST
to=web.config.contact_email,
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/utils.py", line 76, in getattr
raise AttributeError, k
AttributeError: 'contact_email'
Steps to repro:
Expected result
You are prompted to enter the City & Phone number entries (well at least City)
Actual result
The login secretly fails, you have to try again
ERR: INSERT INTO organization_members (user_id, role, org_id) VALUES (1, 'Dad', 1); SELECT currval('organization_members_id_seq')
Traceback (most recent call last):
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/application.py", line 239, in process
return self.handle()
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
return self._delegate(fn, self.fvars, args)
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/application.py", line 462, in _delegate
return handle_class(cls)
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/application.py", line 438, in handle_class
return tocall(*args)
File "/home/gerry/dev/play/pythonireland/broadgauge/broadgauge/views/orgs.py", line 58, in POST
org.add_member(member, i.role)
File "/home/gerry/dev/play/pythonireland/broadgauge/broadgauge/models.py", line 143, in add_member
get_db().insert("organization_members", org_id=self.id, user_id=user.id, role=role)
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/db.py", line 788, in insert
self._db_execute(db_cursor, sql_query)
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/db.py", line 591, in _db_execute
out = cur.execute(query, params)
IntegrityError: duplicate key value violates unique constraint "organization_members_org_id_user_id_key"
DETAIL: Key (org_id, user_id)=(1, 1) already exists.
Currently it is possible to create a workshop with a start date in the past. This is not ideal.
We would like to investigate why this is happening and to implement the required fix.
DOD: Workshops can no longer be created with a historical date.
Upstream ticket: anandology#43
Want ability for admin to hide workshops.
The "workshop" table has a "status" row which could gain a "hidden" option.
Need to adjust UI to allow admin to set this.
After having logged in, I see no obvious way to create a new workshop from the Workshops page
The new workshop page lets you enter negative participant number. (-1 people attending)
While not a major issue it is not logical.
The User account page allows one to enter some Bio text. Trainers would use this to advertise their expertise. But I don't see this being displayed anywhere.
The individual Trainer info page should print this text
There is a default PostGres user & password hardcoded in, should make it a configuration option
Need to edit these to use relative URLs
i.e. instead of "www.gg.com/my/page", have just "my/page"
Steps to Repro:
Bug: the Trainer cannot be clicked on to learn about them
Workshop descriptions can be entered with the Markdown syntax [1], to format the description in a pleasant way. But there is no hint to the user that this is the case.
Would be good to add small text hint to user that markdown is supported for that text entry box..
Upstream ticket: anandology#65
Should be way for user to delete their account
The web application can't be started because of error during run time.
When I run run.py I am receiving exception like this:
Traceback (most recent call last):
File "/Users/boyanmihovski/git/broadgauge/run.py", line 14, in
main()
File "/Users/boyanmihovski/git/broadgauge/run.py", line 11, in main
main()
File "/Users/boyanmihovski/git/broadgauge/broadgauge/main.py", line 78, in main
web.config['base_url']=web.config.get('base_url').rstrip('/')
AttributeError: 'NoneType' object has no attribute 'rstrip'
In the New Workshop form, If I enter a non-ascii character like æßð into the name or description text boxes, it causes a 500 error:
Traceback (most recent call last):
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/application.py", line 239, in process
return self.handle()
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
return self._delegate(fn, self.fvars, args)
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/application.py", line 462, in _delegate
return handle_class(cls)
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/application.py", line 438, in handle_class
return tocall(_args)
File "/home/gerry/dev/play/pythonireland/broadgauge/broadgauge/views/orgs.py", line 86, in POST
i = web.input()
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/webapi.py", line 334, in input
return storify(out, *requireds, *_defaults)
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/utils.py", line 161, in storify
value = getvalue(value)
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/utils.py", line 150, in getvalue
return unicodify(x)
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/utils.py", line 141, in unicodify
if _unicode and isinstance(s, str): return to_unicode(s)
File "/home/gerry/dev/play/pythonireland/broadgauge/local/lib/python2.7/site-packages/web/utils.py", line 348, in safeunicode
return obj.decode(encoding)
File "/home/gerry/dev/play/pythonireland/broadgauge/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf0 in position 0: unexpected end of data
Currently the workshop info doesn't contain a map to the venue.
We would like to add this feature.
DOD: User can see map to venue of workshop.
There are several places in the site where a blank "user" image is used:
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.