Comments (6)
Per mail list discussion (http://groups.google.com/group/rapidsms/browse_thread/thread/20aa9e5c6a55643a)
this commit restructures the 'rapidsms/lib/contrib' file layout so that contrib projects can sit in:
rapidsms/contrib//
With their code in a 'lib' sub directory e.g.:
rapidsms/contrib/flotgrapher/lib/flotgrapher
documentation (READMEs) etc... can live in the project dir:
rapidsms/contrib/flotgrapher/README
This commit also adds 'pygsm' as a submodule in the contrib dir:
rapidsms/contrib/pygsm
NOTE: Submodules are tied to specific commits so future changes to rapidsms/pygsm will need to be 'merged' into rapidsms/rapidsms by updating the submodule to point to later commits.
The commit for this fix is:
http://github.com/jwishnie/rapidsms-tostan/commit/a6f93d1f0ddb39bc2bf8da76fe2c5d602c115e28
from rapidsms.
I wouldn't change the rapidsms script. I think you should put the additions to sys.path into rapidsms.manager.
from rapidsms.
Hi Schuyler, thank you for all the reviews!
I put the path manipulation in the script because that's where the script was adding the rapidsms/lib directory and I think it makes sense to do all the path mucking in once place, rather than splitting.
Of course the script needs to add 'lib' at this point so it can find the manager object, which means if I move the 'contrib' code to manager, we still need some path mucking in the rapidsms script...
Rather than hold up this commit, which is really about getting the PyGSM submodule added, I propose we:
- leave the path mucking in the rapidsms script (which follows the existing pattern)
- Open a separate issue to decide the correct way to handle path additions--where we should discuss things like app name scoping (see email forum discussion) as well
When we figure out how to handle python path issues in general, we can move the contrib stuff there.
Ok?
from rapidsms.
Hm, I guess that makes sense. Please create the new ticket and then go ahead and merge this.
from rapidsms.
See somewhat wordy issue 68:
http://github.com/rapidsms/rapidsms/issues/#issue/68
from rapidsms.
This commit adds the submodule. The modifications to 'rapidsms' script already slipped in my prior bad commit, so I just didn't revert them:
http://github.com/rapidsms/rapidsms/commit/1d23e2667cca7463e497137533471cab8bc5418f
from rapidsms.
Related Issues (20)
- Can't edit Messages in contrib.messagelog admin
- RapidSMS.org SSL Certificate Expired HOT 2
- Text containing newlines are rejected by KeywordHandler HOT 3
- make compatible with Django 1.7+ HOT 1
- Poll application not running with any of the fork version
- Template URL for 0.19.0 broken HOT 1
- Missing migration contact.language HOT 1
- Missing migration 'delete backendmessage' HOT 2
- Tests break with latest version of mock
- send_to_backend should raise exceptions to caller
- Document plan for the 1.0 release HOT 2
- Built-in template context processors were moved from django.core.context_processors to django.template.context_processors in Django 1.8.
- Compatibility between django 1.9 and rapidsms 0.21.1 "ImportError" "Obsolete module"
- Please Implement method recreate_rapidsms_message in class DatabaseRouter
- Reference to RapidPro in README? HOT 1
- RapidSMS - Kannel set up
- SSL Cert for www.rapidsms.org. revoked by Chrome HOT 1
- django 2 support? HOT 1
- Kannel backend does not send messages with Kannel HOT 1
- Proposing a PR to fix a few small typos
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 rapidsms.