GithubHelp home page GithubHelp logo

pythonireland / broadgauge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anandology/broadgauge

0.0 0.0 12.0 925 KB

Platform for managing training/workshops

License: Other

Python 56.27% HTML 32.26% CSS 11.47%

broadgauge's People

Contributors

anandology avatar andreafagan avatar andrewmccarthy avatar conorposullivan avatar edgarlatorre avatar gerboland avatar joders avatar jvalinas avatar mariusavram91 avatar papageorgiou avatar patclaffey avatar saoili avatar shrayasr avatar tarzzz avatar tricia315 avatar viggyprabhu avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

broadgauge's Issues

Tests are failing

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

Date entry for workshop format prompt

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.

Copyright line

Should we change the line from "© 2014 Python Software Society of India" to = © 2014 Python Software Society of Ireland"

Add ability for orgs to sponsor events.

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...

500 error when trying to send email

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'

First time login: if you do not set City or Phone, login silently fails

Steps to repro:

  1. Newly installed broadgauge.
  2. Click the Login link
  3. Select GitHub as the login, authenticate with github if necessary
  4. You'll be returned to a Broadgauge page, asking to confirm name, email, plus add City & phone.
  5. Leave the empty fields along, just click the button to continue login.

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

Logon fails when 'name' field is not set on github

-github allows users to sign up without having the 'name'-field set
-broadgauge uses this field to fill out its own 'name'-field for the user
-the logon will fail with the message 'Authorization failed, please try again.' leaving no clue on what the problem is

niedmap1

Trying to associate the same member to an organisation causes a 500 error

  1. Create a Trainer account
  2. With another account, create an Organization
  3. Associate the trainer account from step 1 with the Org.
  4. Try associating it again. You'll get:

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.

Workshop created with past date

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.

User accounts have no Biography section

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

Unable to click on the Members of an Organization to find out about them

Steps to Repro:

  1. Create a Trainer account.
  2. With a different account. create an Organization
  3. On the Organization page, under the list of members, click the "Add New Member" button
  4. Enter the email address of the account from step 1
  5. Once completed, you should see the Trainer listed as a Member of the organization.

Bug: the Trainer cannot be clicked on to learn about them

run.py failing with exception AttributeError: 'NoneType' object has no attribute 'rstrip'

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'

Non-ascii characters in new workshop form cause 500 error

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

Map to workshop venue

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.

Feature: use avatar from github/google

There are several places in the site where a blank "user" image is used:

  • each trainers page
  • list of trainers page Would be cool to replace this generic image with the user's github avatar/google/gravatar image if available.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.