README.txt
author gibus
Tue, 11 Feb 2014 13:45:32 +0100
changeset 573 d36895174216
parent 454 b7a092a52eae
child 588 8e9ea314e06e
permissions -rw-r--r--
Use stats.co-ment.com for piwik optout iframe rather than piwik.sopinspace.net so SSL certificate is valid.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
*******
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
Comt
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
*******
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
Presentation
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
============
343
7bc8d8bfe443 open source -> free software
gibus
parents: 223
diff changeset
     7
Comt is an free software Web-based text annotation platform.
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
License
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
=======
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
GNU AFFERO GENERAL PUBLIC LICENSE
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
http://www.gnu.org/licenses/agpl.html
100
3dc863be86eb added CC license for translations
Philippe Aigrain <philippe.aigrain@sopinspace.com>
parents: 94
diff changeset
    13
for software files
3dc863be86eb added CC license for translations
Philippe Aigrain <philippe.aigrain@sopinspace.com>
parents: 94
diff changeset
    14
3dc863be86eb added CC license for translations
Philippe Aigrain <philippe.aigrain@sopinspace.com>
parents: 94
diff changeset
    15
CC-BY
3dc863be86eb added CC license for translations
Philippe Aigrain <philippe.aigrain@sopinspace.com>
parents: 94
diff changeset
    16
http://creativecommons.org/licenses/by/3.0/
3dc863be86eb added CC license for translations
Philippe Aigrain <philippe.aigrain@sopinspace.com>
parents: 94
diff changeset
    17
for translation files
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    18
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    19
Dependencies
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    20
============
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    21
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    22
Environment
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    23
-------------
37
d62454bf4402 fix readme
raph
parents: 36
diff changeset
    24
- Postgresql 8.3 or Mysql 5+ or sqlite
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    25
- Python 2.5+
360
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
    26
- Abiword or Openoffice 3.0+ (headless)
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
    27
- Pandoc
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    28
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    29
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    30
Requirements
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    31
------------
36
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    32
- python
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    33
- python magic
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    34
- python development headers
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    35
- python setuptools
362
afb7dc8758f5 add python pexpect in dependencies
gibus
parents: 360
diff changeset
    36
- python pexpect
454
b7a092a52eae Cleaned export.
gibus
parents: 362
diff changeset
    37
- python cssutils
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    38
- pandoc
360
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
    39
- abiword (or headless openoffice and python uno)
36
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    40
- git
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    41
- libyaml
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    42
(all other python dependencies will be downloaded by buildout)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    43
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    44
Installation (development install)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    45
============
31
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    46
1. Install python2.5+ and all required libraries
454
b7a092a52eae Cleaned export.
gibus
parents: 362
diff changeset
    47
	(ubuntu users : 'sudo apt-get install python python-magic python-setuptools python-uno libyaml-0-1 python-yaml python-dev git-core python-utidylib python-pexpect python-cssutils')
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    48
2. Install pandoc
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    49
	(ubuntu users : 'sudo apt-get install pandoc')
360
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
    50
3. Install abiword
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
    51
  (ubuntu users: 'sudo apt-get install abiword')
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
    52
   Alternatively, install openoffice (headless mode) [used for document conversion]
208
raph
parents: 135
diff changeset
    53
	(ubuntu users : 'sudo apt-get install sun-java6-jre openoffice.org openoffice.org-headless xvfb')
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    54
4. Install/configure database [skip this step if you plan to use a sqlite database]
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    55
	4 a) Postgresql
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    56
		- Install and configure database server [skip this step if use an external database server] 
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    57
		(ubuntu users : 'sudo apt-get install postgresql')		
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    58
		- Install database client
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    59
		(ubuntu users : 'sudo apt-get install postgresql-client')		
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    60
		- Install python database connector: psycopg2
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    61
		(ubuntu users : 'sudo apt-get install python-psycopg2')		
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    62
	4 b) Mysql
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    63
		-  Install and configure mysql server [skip this step if use an external database server]
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    64
		(ubuntu users : 'sudo apt-get install mysql-server')		
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    65
		- Install database client
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    66
		(ubuntu users : 'sudo apt-get install mysql-client')
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    67
		- Install python database connector: mysqldb
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    68
		(ubuntu users : 'sudo apt-get install python-mysqldb')						
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    69
5. Create a database (we recommend UTF8 encoding) and a read/write access to it. [skip this step if you plan to use a sqlite database]
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    70
   The database account accessing the database MUST have administrative privileges when running the 'syncdb command' (step 8)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    71
   (The reason for that is that Postgresql requires such privileges to create the C-based stored procedure that we use for full text indexing)
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    72
   (ex. postgresql: 'sudo -u postgres createdb -E utf8 -e <db_name>)
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    73
6. Setup the project and get dependencies
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    74
   - `python bootstrap.py`
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    75
   - `./bin/buildout` 
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    76
7. Configure Comt to your settings
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    77
   - copy settings_local_sample.py to settings_local.py (this file will contain your personal settings)  
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    78
   - edit settings_local.py to suit your settings (search for 'YOUR_SETTINGS' occurrences, those are mandatory settings)
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    79
8. Create the database structure (and test your database connection)
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    80
   - `./bin/django syncdb --settings=settings`
31
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    81
   - `./bin/django migrate --settings=settings`
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    82
9. Create basic right management system
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    83
   - `./bin/django loaddata roles_generic --settings=settings`
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    84
10. Launch development server
17
a4be0b8a905d bug fix : can view own comment on comment add on mod priori
reno
parents: 0
diff changeset
    85
   - `./bin/django runserver --settings=settings`
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    86
11. Access your Comt instance by pointing your browser to http://127.0.0.1:8000/
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    87
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    88
Installation (production environment)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    89
=============
212
911227a3a9bb add tidy as a dependency and tips for prod install
raph
parents: 208
diff changeset
    90
This README.txt does not cover in details a production environment because this kind of setup is too platform dependant for us to provide a guide.
911227a3a9bb add tidy as a dependency and tips for prod install
raph
parents: 208
diff changeset
    91
A few tips thought:
911227a3a9bb add tidy as a dependency and tips for prod install
raph
parents: 208
diff changeset
    92
- recommended way to install it is using apache and wsgi, check out django installation guide at http://www.djangoproject.com/documentation/modpython/
911227a3a9bb add tidy as a dependency and tips for prod install
raph
parents: 208
diff changeset
    93
- if you use apache as a frontend, you will need to create {{ APACHE_HOME: usually /var/www }}/.python-eggs and chown it to apache
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    94
31
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    95
Upgrade
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    96
=======
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    97
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    98
Normal upgrade
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    99
--------------
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
   100
Upgrading you database should only need one command:
33
reno
parents: 31
diff changeset
   101
   - `./bin/buildout`
31
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
   102
   - `./bin/django migrate --settings=settings`
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
   103
   
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
   104
Upgrade from alpha releases
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
   105
----------------------------
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
   106
If your database was created using comt alpha prior to the revision 29, here are the commands you should run:
33
reno
parents: 31
diff changeset
   107
   - `./bin/buildout`
reno
parents: 31
diff changeset
   108
   - `./bin/django syncdb`
reno
parents: 31
diff changeset
   109
   - `./bin/django migrate cm 0001_initial --fake`
reno
parents: 31
diff changeset
   110
   - `./bin/django migrate`
31
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
   111
360
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   112
Abiword or Openoffice
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   113
=====================
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   114
Comt uses either abiword or openoffice to convert documents from ODT, MS Word, etc. to html.
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   115
Abiword is a lighter and more performant solution. You have to add the configuration parameter `USE_ABI = True` in your settings_local.py to use Abiword. Otherwise openoffice is used.
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   116
To use openoffice, on a development setup, you should make sure no openoffice process is left and launch `soffice -headless "-accept=socket,port=2002;urp;"` to start openoffice in background mode.
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   117
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   118
Comt uses
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   119
============
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   120
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   121
Javascript libs used (and license) / shipped with the distribution
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   122
------------------------------------------------------------------
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   123
- Yahoo UI	http://developer.yahoo.com/yui/	BSD License
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   124
- JQuery	http://jquery.com/	MIT
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   125
- markItUp  http://markitup.jaysalvat.com/home/ MIT/GPL
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   126
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   127
Python libraries used (and license) / NOT shipped with the distribution
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   128
-----------------------------------------------------------------------
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   129
- django			http://www.djangoproject.com/					BSD License
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   130
- python magic		http://hupp.org/adam/hg/python-magic			permissive BSD style license
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   131
- Beautiful soup	http://www.crummy.com/software/BeautifulSoup/	PSF license
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   132
- python-chardet	http://chardet.feedparser.org/					LGPL 
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   133
- python-feedparser	http://feedparser.org/ 							"Permissive" custom license
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   134
- python-imaging	http://www.pythonware.com/products/pil/ 		http://www.pythonware.com/products/pil/license.htm
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   135
- python-pytz
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   136
- html5lib
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   137
- python-simplejson
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   138
- python-uno
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   139
- python-utidylib
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   140
- python-yaml
454
b7a092a52eae Cleaned export.
gibus
parents: 362
diff changeset
   141
- python-pexpect
b7a092a52eae Cleaned export.
gibus
parents: 362
diff changeset
   142
- python-cssutils
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   143
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   144
Icons 
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   145
-----
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   146
- Icons derived from FatCow Icon Set http://www.fatcow.com/free-icons/index.bml (Creative Commons Attribution 3.0 License)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   147
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   148
FAQ
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   149
====
360
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   150
Q1: How can I check the distribution for errors (libraries etc.):
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   151
R1: After configuring a database and access in your settings_local.py, you can launch the unit test suite with the following command: `./bin/django test cm`
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   152
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   153
Q2: I'm getting the following error when launching the migrate command:
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   154
`
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   155
line 62, in handle
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   156
    __import__(app_name + '.management', {}, {}, [''])
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   157
  File "/usr/lib/python2.5/site-packages/uno.py", line 300, in _uno_import
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   158
    raise ImportError( "type "+ name + "." +x + " is unknown" )
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   159
ImportError: type django.contrib.sessions.management. is unknown
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   160
`
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   161
R2: This is due to a bug in uno (python openoffice bridge) that monkey patches the import system and messes with django's dynamic module loading system. A workaround to launch the migrate command is to set: `UNO_IMPORT = False` in file src/cm/converters/oo_converters.py and then to launch the migrate command. Set the value back to True and relaunch the server to use openoffice as a conversion backend.
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   162
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   163
Q3: When using  co-ment Drupal module, I want that the name of commentators to be the same as the Drupal username
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   164
R3: For this feature (commentator name = drupal login name) to be available, a configuration parameter should be set in settings_local.py: `DECORATED_CREATORS = True`
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   165
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   166
Q4: I get 'import error' when starting the server (step #9)
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 343
diff changeset
   167
R4: Make sure you installed all required python dependencies
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   168
                      
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   169
Community
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   170
=========
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   171
The Comt web site http://www.co-ment.org is the place to ask questions, report bugs, check out the source code or download the releases of Comt.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   172
85
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   173
How to contribute
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   174
=================
86
f3475a0fd37d how to contribute without using mercurial
raph
parents: 85
diff changeset
   175
f3475a0fd37d how to contribute without using mercurial
raph
parents: 85
diff changeset
   176
Contribute using mercurial
f3475a0fd37d how to contribute without using mercurial
raph
parents: 85
diff changeset
   177
--------------------------
85
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   178
We use mercurial as our source code management system.
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   179
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   180
1. Create a mercurial profile (nickname/email) in ~/.hgrc (cf. http://mercurial.selenic.com/quickstart for more info).
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   181
   This is important because your name will appear in your changeset once it gets accepted into the mainline
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   182
2. Clone the repository `hg clone http://hg.co-ment.org/ comt`
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   183
   OR update your copy of the source code: `hg update`
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   184
3. Hack, hack
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   185
4. Commit locally: `hg commit -m "MY COMMIT MESSAGE"`
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   186
5. Export your changeset to a file: `hg export tip > my_patch.txt`
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   187
6. Create a ticket describing your change and attach your patch to it: http://www.co-ment.org/newticket
101
d8055f2280e8 additional info contrib and licenses
Philippe Aigrain <philippe.aigrain@sopinspace.com>
parents: 100
diff changeset
   188
7. We will review the patch as soon as possible. If we judge it acceptable and useful, we will be back to you regarding copyright, licensing and other legalese.
85
deabd972bda5 add 'How to contribute' to readme
raph
parents: 82
diff changeset
   189
86
f3475a0fd37d how to contribute without using mercurial
raph
parents: 85
diff changeset
   190
Contribute without using mercurial
f3475a0fd37d how to contribute without using mercurial
raph
parents: 85
diff changeset
   191
----------------------------------
94
2760e9b4156e Minor language/formatting issues
Kirill Miazine <km@krot.org>
parents: 86
diff changeset
   192
If you don't want to use mercurial, you can also create a ticket (http://www.co-ment.org/newticket) with a few modified files to the bugtracker.
101
d8055f2280e8 additional info contrib and licenses
Philippe Aigrain <philippe.aigrain@sopinspace.com>
parents: 100
diff changeset
   193
Make sure you leave us a nickname and an email for inclusion in the changelog. Point 7 above also applies to contributions without using mercurial.
86
f3475a0fd37d how to contribute without using mercurial
raph
parents: 85
diff changeset
   194
 
63
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   195
Translation
94
2760e9b4156e Minor language/formatting issues
Kirill Miazine <km@krot.org>
parents: 86
diff changeset
   196
===========
63
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   197
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   198
Update all po files
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   199
---------------------
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   200
cd src/cm
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   201
../../bin/django makemessages -a
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   202
../../bin/django makemessages -d djangojs -a
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   203
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   204
Compile po files
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   205
----------------
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   206
cd src/cm
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   207
../../bin/django compilemessages
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   208
82
2d964b42de45 fix howto generate message files
raph
parents: 63
diff changeset
   209
Create new file for lang 'LG'
63
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   210
-----------------------------
0a610af4033f split followup and embed
raph
parents: 37
diff changeset
   211
cd src/cm
82
2d964b42de45 fix howto generate message files
raph
parents: 63
diff changeset
   212
../../bin/django makemessages -l LG -e .html,.txt
94
2760e9b4156e Minor language/formatting issues
Kirill Miazine <km@krot.org>
parents: 86
diff changeset
   213
../../bin/django makemessages -d djangojs -l LG