Commit Graph

15418 Commits

Author SHA1 Message Date
Xavier Antoviaque
d8c922b321 vagrant: Windows - Preserve Unix line return format, added extensions 2013-07-10 09:26:43 -04:00
Xavier Antoviaque
5db56573d9 vagrant: Remove rvm Ubuntu package installation (triggers rvm bug) 2013-07-10 09:26:43 -04:00
Xavier Antoviaque
055ef6e1aa vagrant: Update README (QA, link to wiki & disk space requirement) 2013-07-10 09:26:43 -04:00
Xavier Antoviaque
214734d1dc vagrant: Set $PROJECT_HOME - $BASE was set to the default path
Yarko's `$BASE` patch has been merged and rewritten since
the original pull request was created, resulting in the `$BASE` being
incorrectly set to the default `/home/vagrant/edx_all` by the new code.
2013-07-10 09:26:42 -04:00
Xavier Antoviaque
ee4b34b6ad vagrant: Moves from /opt/edx-platform to /opt/edx/edx-platform
To allow the vagrant user to create the /opt/edx/[log|data|db] folders
2013-07-10 09:26:42 -04:00
David Baumgold
293aaedc33 Vagrant: install edx-platform under /opt
Compatibility with the Filesystem Hierarchy Standard: http://www.pathname.com/fhs/
2013-07-10 09:26:42 -04:00
Xavier Antoviaque
e614d1aa6f vagrant: Normalize shell script EOL to Unix LF 2013-07-10 09:26:42 -04:00
Xavier Antoviaque
1404076732 Vagrant: Add support for Vagrant install (vagrant up)
Cf README, this adds support to install and setup a dev instance through
Vagrant. The Vagrantfile at the root handles the vagrant commands like
`vagrant up`.

Provisioning is done by the shell script `vagrant-provisionning.sh`,
which is a light wrapper around the `create-dev-setup.sh` which does
most of the job using the standard process, but limiting possible
side-effect by ensuring the environment on which the install is
performed is clean.

Based on an Ubuntu precise 12.04 LTS.
2013-07-10 09:26:42 -04:00
Xavier Antoviaque
947908e028 Install: Fix install script freeze (syncdb superuser account creation)
Since the output is passed through tee, when the django admin asks the
user if he would like to create a super user account, it blocks the
install, without even showing the question.

Disabled interactivity for syncdb.
2013-07-10 09:26:42 -04:00
Xavier Antoviaque
9971c799b2 Install: Make apt-get and mkvirtualenv output log friendly
Added options to make the output of `apt-get` and `mkvirtualenv`
friendlier to getting logged. This allows to be more easily recorded in
log files or when the install is performed through utilities - like
Vagrant.
2013-07-10 09:26:42 -04:00
Xavier Antoviaque
52c9a53485 Install: Make curl options more consistent, add logging of errors
The options passed to curl were not always the same - added logging of
error (-S) everywhere (was only used for Mac before) and made it quiet
in the rare few cases where it wasn't yet (-s).
2013-07-10 09:26:42 -04:00
Xavier Antoviaque
6e376fa76d Install: Improves ruby/rvm install - Directly install the right version
The script used to download the latest version of ruby through rvm, then
later on install the one used by the project. Now we directly download
the version of the project when rvm is installed.
2013-07-10 09:25:50 -04:00
Xavier Antoviaque
7a95c37442 Install: Options "-q" (quiet), "-n" (no pull), "-y" (non interactive)
Added several options to the `create-dev-env.sh` script to improve its
ability to be used by another script:

* -y -- non interactive mode (no prompt, proceed immediately)
* -n -- do not attempt to pull edx-platform
* -q -- be more quiet (removes info at beginning & end)

This will be used, in particular, for Vagrant provisioning.
2013-07-10 09:25:49 -04:00
Xavier Antoviaque
ba8c2999c4 Install: Fix use of DEBIAN_FRONTEND - sudo clears environment
Before executing a command, for security reasons `sudo` clears the
environment, so the value of DEBIAN_FRONTEND was never passed to
apt-get. This was causing the mysql packqge to still prompt for
a value interactively.
2013-07-10 09:25:49 -04:00
Calen Pennington
dcaed88cb2 Merge pull request #313 from edx/cale/use-super-for-calling-parent-__init__-methods
Use super for calling parent __init__ methods
2013-07-10 06:17:41 -07:00
David Baumgold
3b1182b462 Merge pull request #332 from edx/db/rake-pylint
Refactor rake tasks for pylint/pep8
2013-07-10 06:12:16 -07:00
David Baumgold
2eb89d0501 Merge pull request #221 from edx/pdf-textbooks
PDF textbooks in Studio
2013-07-10 06:11:55 -07:00
James Tauber
bd37230f08 Merge pull request #360 from edx/jtauber/license-change
clarify LICENSE
2013-07-09 23:19:24 -07:00
David Baumgold
7bf2b1e316 Re-add pylint task dependencies 2013-07-09 21:47:07 -04:00
Brian Talbot
cef33bf285 Studio: updates shame file with related future maintenance work 2013-07-09 19:16:44 -04:00
Frances Botsford
6814163a45 cleanup and tweaks from feeback to PDF Textbooks FED and Sass 2013-07-09 19:16:44 -04:00
Brian Talbot
b9e7e992b5 Studio: revises subtitle of Textbooks view to be consistent with others 2013-07-09 19:16:44 -04:00
David Baumgold
17bef565f1 Added another test 2013-07-09 19:16:44 -04:00
David Baumgold
4155f9fe8c Removed unused user_author_string function 2013-07-09 19:16:44 -04:00
David Baumgold
359cbbb4d9 Fixing up ui_helpers based on feedback from Christina 2013-07-09 19:16:44 -04:00
David Baumgold
437e658f98 pylint fixes 2013-07-09 19:16:44 -04:00
David Baumgold
1a0d6d21bb Forgot to call show() on saving notification 2013-07-09 19:16:43 -04:00
David Baumgold
dd39ebec03 If success_condition fails, raise an exception 2013-07-09 19:16:43 -04:00
David Baumgold
8d809dbad6 Remove commented-out code 2013-07-09 19:16:43 -04:00
David Baumgold
32a902ca57 Remove create_json_response in favor of JsonResponse class 2013-07-09 19:16:43 -04:00
David Baumgold
628dff5398 pylint fixing 2013-07-09 19:16:43 -04:00
David Baumgold
c68895ca5d world.css_click no longer returns a boolean 2013-07-09 19:16:43 -04:00
David Baumgold
cfa094e424 Validation tests for Backbone models 2013-07-09 19:16:43 -04:00
David Baumgold
eba5928009 Added a comment 2013-07-09 19:16:43 -04:00
David Baumgold
fe8587566f All textbook chapters must have name and asset_path
Previously, for a textbook with only one chapter, we allowed that chapter to
not have a title -- under the assumption that it would be shown as a monolithic
textbook, instead of a chaptered textbook. However, the UI doesn't support that
idea, the code was getting a bit messy, and there was no real benefit to the idea
of not having to specify a chapter title. This commit removes that special case,
and ensures that all textbook chapters must have a name and an asset path.
2013-07-09 19:16:43 -04:00
David Baumgold
f9a10855d9 Add notes about JS validation functions returning non-i18n error messages 2013-07-09 19:16:42 -04:00
David Baumgold
44185c3afa Updated CHANGELOG 2013-07-09 19:16:42 -04:00
David Baumgold
fa62f48e57 Fix Jasmine test failures 2013-07-09 19:16:11 -04:00
David Baumgold
e7088d50fd Display error message when trying to upload a non-PDF file as a PDF textbook 2013-07-09 19:16:11 -04:00
David Baumgold
7506562f50 Another lettuce test, and fixes to make it work 2013-07-09 19:16:11 -04:00
David Baumgold
ca2339f15e Remove unneeded arguments
They are the defaults now
2013-07-09 19:16:10 -04:00
David Baumgold
ee61b15345 Added a few more tests, to increase diff coverage 2013-07-09 19:16:10 -04:00
David Baumgold
c5c1fd08ae i18n 2013-07-09 19:16:10 -04:00
David Baumgold
84bbd84a54 Ease Christina's pain
But only slightly. Sorry Christina.
2013-07-09 19:16:10 -04:00
David Baumgold
e1ed5c3d2d docstrings 2013-07-09 19:16:10 -04:00
David Baumgold
b97f5585b9 Re-added a missing import 2013-07-09 19:16:10 -04:00
David Baumgold
0b8aec718f Add another pdf textbook test 2013-07-09 19:16:10 -04:00
David Baumgold
bacb904ce3 Skip failing unit test 2013-07-09 19:16:10 -04:00
David Baumgold
a90590a442 Remove unused imports/constants 2013-07-09 19:16:10 -04:00
Frances Botsford
b41d23747a PDF Textbooks: implemented "View Live" link 2013-07-09 19:16:09 -04:00