Commit Graph

95 Commits

Author SHA1 Message Date
David Anderson d5763440c6 Make python scripts work with python2 as well as python3
- Use from __future__ import print_function
- fix input/raw_input discrepancy
2020-09-30 21:09:02 -07:00
David Anderson 506cb29932 Change python scripts to use python3.
You have to install mysqlclient for python3;
that has the same interface as mysqldb, which we used with python2.
2020-09-30 01:58:12 -07:00
David Anderson b881ab8563 Make the upgrade and make_project scripts work again.
These scripts use the python mysqldb module, which is available only for Python 2.

To use Python 3 for these scripts, we'd need to find a new MySQL interface module,
and change our Python code to use it.
2020-04-15 12:31:26 -07:00
Uplinger fd7374e793
Merge pull request #3211 from BOINC/dpa_make_project
make_project: default to https:// in project URL
2019-09-20 11:45:22 -05:00
Kevin Reed 7c74e67295 tools: sample_work_generator should have the --app example_app argument added to it when a project is being created with the sample app (keeps it consistent with sample_bitwise_validator and sample_assimilator) 2019-08-02 16:31:52 -05:00
lfield 3945ac499f
Merge branch 'master' into dpa_python3 2019-07-16 11:12:19 +02:00
David Anderson ba056186d4 make_project: default to https:// in project URL 2019-07-05 14:57:15 -07:00
lfield 9a960e592e
Added brackets
Added brackets to print function
2019-07-05 17:02:27 +02:00
Kevin Reed b0d6271fb0 web - Add comments and fixing formatting for generate_acccount_ownership_keys.php.
Also remove generation of account ownership keys from initial project
      creation script
2019-07-03 08:50:16 -05:00
lfield ac31522dbf
Merge branch 'master' into dpa_python3 2019-05-14 15:55:23 +02:00
grcgrc 8d12ac9a66 Requested changes to PR 2965
* Less technical error messages, reduced code duplication, changed makeproject to generate keys, added op php file for generating keypairs, changed the button styling, changed input to textarea.
* Split the ops scripts into separate check and generate files, reduced code duplication by creating a new inc file to define key variables.
2019-05-08 17:20:24 +01:00
lfield 6ef5039489 Merge branch 'dpa_python3' of https://github.com/BOINC/boinc into dpa_python3 2018-11-06 14:33:08 +00:00
lfield 01df1879aa A few more change from testing in docker 2018-11-06 14:32:52 +00:00
lfield de0cf75da4 merging 2018-11-06 15:28:29 +01:00
lfield a943a2212d Futher improvements from testing 2018-11-05 16:28:28 +01:00
lfield e5da6a0189
Update make_project
Added a comment
2018-08-09 09:26:33 +02:00
lfield 14d0c80aae
Update make_project 2018-08-08 11:49:25 +02:00
Kevin Reed 4002f6d372 web: add logic to insert into user_deleted and host_deleted when account
is removed from the system.  add task to remove entries from those
tables after 60 days.
2018-05-02 15:36:57 -05:00
David Anderson 7c094689e2 python scripts: try to make them work with python 3.
Changes:
print()
except XXX as e (rather than except XXX: e)
from Boinc import XXX rather than import XXX
    (I'm not sure how it worked before)
2018-04-20 14:02:33 -07:00
Kevin Reed 4a6246a8bb web: create token table and php object to interact with token table.
Add script that will delete expired tokens once a day
2018-04-06 13:30:01 -05:00
Shawn Kwang 9e7bfa88ca Changed mkdir2 function to check if directory already exists, and updated it to raise an exception if there is a problem otherwise.
Added some text for the enduser to change apache 2.4 conf and add the project name and copyright holder.
2016-05-20 12:57:51 -05:00
Shawn Kwang b9a1338b5a bug 1528: change script to use short hostname for config.host. URLs should still be FQDN 2016-04-20 10:42:53 -05:00
marius d6d5c2610a dont add example_app to project.xml unless requested 2016-03-13 23:43:24 +01:00
Rom Walton 75d4091d14 make_project: Fix path location issue 2015-11-17 01:07:39 -05:00
Rom Walton 503b94a4f6 make_project: Add some additional comments and fix white space 2015-11-17 00:30:01 -05:00
Rom Walton 61f8d3dddc make_project: Make sure that scripts cannot be run from the download, stats, and user_profile directories. 2015-11-16 20:23:18 -05:00
Rom Walton 43e900b49f make_project: Make sure to turn off access to certain directories if the global configuration defaults to allow access. 2015-11-14 18:40:09 -05:00
marius add497f1f6 added --project_host option to make_project 2015-07-20 16:45:30 -07:00
marius d384489952 added --no_db option to make_project 2015-07-20 15:46:52 -07:00
David Anderson 9988c831e1 make_project: don't do update_stats by default 2015-07-10 00:02:29 -07:00
Rom Walton f8d2cfdff3 tools: Fix typo in make_project. 2015-06-08 23:06:21 -04:00
David Anderson c3efe4fe44 make_project: comment tweak 2015-04-15 21:58:14 -07:00
David Anderson 2fa78ba328 make_project: don't generate Apache 2.4 directives because they break 2.2
... but put in comments saying what changes are needed.
2014-08-18 00:14:58 -07:00
David Anderson 25fc233f4d make_project: change httpd conf syntax for Apache 2.4
Add

Require all granted

as well as (for 2.2)

Order allow,deny
Allow from all

See http://httpd.apache.org/docs/2.4/upgrading.html#run-time
2014-08-17 23:58:30 -07:00
David Anderson 92fec3e4ae admin web: enhance badge admin page
- add delete button
- show # of badges assigned
- don't use separate head/tail function are admin pages
- add badge assign task for new projects
- turn on db_dump, update_uotd, update_forum_activities,
  update_profile_pages, notify for new projects
2013-12-23 21:02:55 -08:00
David Anderson 34933c8cd6 make_project: revert change that doesn't work with Apache 2.2 2013-09-17 23:13:49 -07:00
David Anderson ffd4b89905 make_project: add HTTP config file items for Apache 2.4 2013-09-05 06:03:04 -07:00
David Anderson 0eaaca174a - make_project: don't write <cgi_url> in config.xml; it's not used 2013-04-13 21:32:10 -07:00
Rom Walton 02e70da914 - Fix the db schema check functionality so that it will work with make_project and upgrade correctly. We no longer rely on svnversion for this sort of thing. 2013-03-01 15:58:42 +01:00
David Anderson 000dbadc3d - install antique file deleter as periodic task (24 hours)
when create new project


svn path=/trunk/boinc/; revision=25322
2012-02-24 03:26:30 +00:00
David Anderson fa3f5a945e - bug fixes in remote job submission tools
(manage_privileges and get_output.php).
    From Nico Schlitter.
- change things so that
    make_project --test_app
    will produce input/output templates that are compatible
    with the remote job submission tools


svn path=/trunk/boinc/; revision=24774
2011-12-10 22:03:43 +00:00
David Anderson 53af2ae778 - client/API: pass bool using_sandbox in APP_INIT_DATA;
says whether the client is using account-based sandboxing.
    Needed by vboxwrapper.
- web: don't show authenticator in Your Account page.
    The problem with authenticators is that if a bad guys gets yours,
    they can log in to your account even if you change your password.
    Eventually we should not use them at all
    (i.e. in cookies and sent to client).
- make_project: copy python stuff (e.g. bin/start) for web-only projects;
    generate appropriate project.readme file for web-only projects.


svn path=/trunk/boinc/; revision=24447
2011-10-21 06:58:35 +00:00
David Anderson 8c49c174c3 - preliminary stuff for mechanism where privileged users
can create apps and app versions
- crontab commands should be preceded by cd to project root


svn path=/trunk/boinc/; revision=24137
2011-09-07 06:54:44 +00:00
David Anderson 2385c00b67 - wrapper: tell the client when we checkpoint
(else checkpoint_elapsed_time etc. don't get set)
- make_project: enable update_stats by default
- update_stats: add --min_age option


svn path=/trunk/boinc/; revision=23509
2011-05-06 12:33:12 +00:00
David Anderson c0612ab77f - make_project: with --test_app, copy all the executables
(for many platforms) from samples/example_app/bin
- make_project: change name of example app from uppercase to example_app.
- update_versions: allow version numbers to not have decimal points
- sample work generator: make app name and template files
    command-line options;
    default to "example_app", "example_app_in.xml", "example_app_out.xml"

svn path=/trunk/boinc/; revision=22667
2010-11-10 00:10:32 +00:00
David Anderson 7fcd20e020 - make_project, upgrade scripts:
create a symbolic link from html/user/user_profile to html/user_profile
    (needed to make profiles work)

svn path=/trunk/boinc/; revision=22622
2010-11-03 22:42:01 +00:00
David Anderson a11e452c31 svn path=/trunk/boinc/; revision=20737 2010-02-26 00:30:09 +00:00
David Anderson 575cec858c - admin web: a project must provide an .htaccess file
or an auth_ops() function (not necessarily both).
    New projects are given an .htaccess file with no .htpasswd,
    so they must either create a .htpasswd file
    or define auth_ops() in order to use admin web pages.

svn path=/trunk/boinc/; revision=20671
2010-02-21 04:45:52 +00:00
David Anderson b631ce3fe6 - make_project: create html/ops/.htaccess;
secure admin web access by default

svn path=/trunk/boinc/; revision=19013
2009-09-08 04:55:48 +00:00
David Anderson 08e4ba3df6 - server: suppress verbosity of update_translations in make_project and upgrade
svn path=/trunk/boinc/; revision=18381
2009-06-11 17:25:01 +00:00