Commit Graph
612 Commits
Author SHA1 Message Date
Sunil Mohan Adapa e6dbcdccaa Move all misc files under misc directory 2014-08-30 09:38:24 +05:30
Sunil Mohan Adapa 091faf4eaa Update default theme link 2014-08-30 09:35:26 +05:30
Sunil Mohan Adapa e0816cd432 Update test cases for new directory structure 2014-08-30 09:33:53 +05:30
Sunil Mohan Adapa c95db2fe7e Move themes directory into static directory 2014-08-30 09:31:46 +05:30
Sunil Mohan Adapa 0af0a593b7 Replace test case runner with a pythonic version 2014-08-30 09:30:33 +05:30
Sunil Mohan Adapa 709a540381 Rename test cases to have python standard name 2014-08-30 09:18:36 +05:30
Sunil Mohan Adapa 64b6a1294e Remove unused testdata directory 2014-08-30 09:17:21 +05:30
Sunil Mohan Adapa ff288cf2cf Convert module/enabled files to regular files 2014-08-29 23:38:06 +05:30
Sunil Mohan Adapa cee3c3a416 Ignore python dist and egg-info directories 2014-08-29 20:23:58 +05:30
Sunil Mohan Adapa d3b9c0d6ec Remove recursive link to static director 2014-08-29 20:19:32 +05:30
Sunil Mohan Adapa 7798d924be Create pythonic startup script 2014-08-29 20:18:58 +05:30
Sunil Mohan Adapa bc21fe00c4 Remove unmaintained, outdated fabfile 2014-08-29 18:25:21 +05:30
Sunil Mohan Adapa 38bdff4d1d Make plinth directory a package, add version 2014-08-29 18:19:34 +05:30
Sunil Mohan Adapa 7c60b79e89 Remove executable permissions on image files 2014-08-29 15:14:41 +05:30
Sunil Mohan Adapa 65fa648d9f Reorganize python sources into 'plinth' package 2014-08-29 12:57:27 +05:30
Sunil Mohan Adapa eaacd3864b Remove license text for licenses no longer used 2014-08-29 12:13:33 +05:30
Sunil Mohan Adapa 90f1b52f49 Fix and generalize generating TODO list from source files 2014-08-29 12:13:33 +05:30
Nick Daly 250b0100aa Merge pull request #90 from jvalleroy/fix-templates-dir
Module template dirs are under project directory.
2014-08-19 21:34:57 -05:00
Nick Daly b78df30c8b Merge pull request #91 from SunilMohanAdapa/fonfon-dev
Additional fixes over merge request #89
2014-08-19 21:34:20 -05:00
Sunil Mohan Adapa 7ff3742f73 Merge additional changes in fonfon/dev branch
- Remove duplicate fix for firstboot redirection
- Remove duplicate adding of actions_dir to cfg.py
- Capitalize global variable in module_loader.py
- Minor refactoring while adding app specific static directories
2014-08-17 20:35:04 +05:30
Sunil Mohan Adapa 38ea536ee3 Update a comment in makefile about modified help pages path 2014-08-17 19:45:27 +05:30
Sunil Mohan Adapa 5e25a432c3 Indentation updates
- No spaces at the beginning and end of a single line comment. (python code does this)
- Double space after a statement in a multi-line comment. (PEP-8)
- Enforce 79 character limit. (PEP-8)
- Empty line after a block ends make code more readable.
- Empty line at the end of a multi line comment. (python code seems to do this)
2014-08-17 19:45:00 +05:30
Sunil Mohan Adapa 4387c28495 Use os.path.join() instead of string concatenation in actions
Presence of / in action is not a problem at is check for early. Any other tricks
are secured against by the realpath() check immediately afterwards.
2014-08-17 19:40:58 +05:30
Sunil Mohan Adapa 642a4e10ff Improve exception handle when running actions
- Don't use depricated exception.message. Instead using exception.args
- Pass stdout output along with stderr in exception
- Handle possible exceptions such as ValueError, OSError in all cases
- Log all command executions and their errors
2014-08-17 19:39:14 +05:30
Sunil Mohan Adapa b77c97e088 Don't use os.path.join() to concatenate URL parts
This could lead to "\" being used on Windows. Although, we won't be
supporting Windows, this is a conceptual problem.
2014-08-17 19:32:30 +05:30
Sunil Mohan Adapa 418f5ff397 Rename the context processor 2014-08-17 19:30:44 +05:30
Sunil Mohan Adapa 65cdcb1bc3 Re-introduce Django CSRF middleware
It is a security issue not to include the Django CSRF middle. Also, since we
don't have a reason to alter the Django middleware list and order, we should
use the same list.
2014-08-17 19:29:31 +05:30
Sunil Mohan Adapa 96aa493992 Fix sidebar menu in user management pages 2014-08-17 19:27:08 +05:30
Sunil Mohan Adapa ad144116e3 Fix sidebar menu in pagekite introduction page 2014-08-17 19:26:32 +05:30
Sunil Mohan Adapa eb034116b4 Fix link to ownCloud service
The link is intended to take the user to and address where ownCloud
services are provided and not to the Plinth ownCloud configuration
page.
2014-08-17 19:25:51 +05:30
Sunil Mohan Adapa 89d982715c Don't read arbitrary files from doc directory
Exposing all the files in doc directory is not a safe thing to do. It is
best to let only intended file to be read and displayed.
2014-08-17 19:24:31 +05:30
Sunil Mohan Adapa 128ef20743 Explictly close the file handle after reading a documentation page 2014-08-17 19:22:02 +05:30
Sunil Mohan Adapa dda4b930e0 Fix infinite redirection in first boot 2014-08-17 19:20:44 +05:30
Sunil Mohan Adapa f0739a18e6 Add a default value for actions_dir 2014-08-17 19:06:15 +05:30
James Valleroy 64666d8b3a Module template dirs are under project directory. 2014-08-16 18:15:59 -04:00
fonfon 8e2036928d allow app- and page-specific head and javascript files 2014-07-30 15:59:38 +03:00
fonfon d73c996547 renamed app-specific head block 2014-07-30 15:24:18 +03:00
fonfon 219109511f templates: allow adding module/app specific static files when extending base.html 2014-07-30 15:16:28 +03:00
fonfon 57ba43cfc9 allow modules to have custom static directories 2014-07-30 15:03:52 +03:00
fonfon 27287097c5 Merge branch 'tests' into dev 2014-07-29 19:31:01 +03:00
fonfon 5b88015a28 improved my bugfix :> 2014-07-29 18:16:54 +03:00
fonfon cde5f25239 bugfix: no more circular redirects to /firstboot 2014-07-29 17:05:29 +03:00
fonfon bd589b37cc removed deprecated tests, and made the existing ones run again 2014-07-11 05:59:21 +03:00
fonfon f7c425384d updating documentation and translation 2014-07-11 03:14:45 +03:00
fonfon 1cf1cb2e90 moved context_processor from plinth.py to a separate file; removed two unnecessary context variables: 1) use cfg.main_menu instead of main_menu; 2) request_path is available automatically 2014-07-11 02:36:25 +03:00
fonfon 0d0c9f7bb0 removed all manual url prefix handling, we only use djangos url system now 2014-07-11 01:11:59 +03:00
fonfon 0e18fe3c1c Merge 'middleware' changes 2014-07-10 23:29:41 +03:00
fonfon 5150efac5f menu and submenu now also uses djangos named urls and url-reverse 2014-07-10 23:29:06 +03:00
fonfon 809dc4130a also raise url-import and init-errors in debug mode 2014-07-10 20:24:08 +03:00
fonfon 19f36f67d9 moved firstboot handling to a firstboot middleware 2014-07-10 19:49:41 +03:00