Bug 796708 - RFE: Multiple server support in csprocessor.ini and csprocessor.cfg
Summary: RFE: Multiple server support in csprocessor.ini and csprocessor.cfg
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 799821
TreeView+ depends on / blocked
 
Reported: 2012-02-23 14:28 UTC by Joshua Wulf
Modified: 2014-10-19 23:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-07 01:29:36 UTC
Embargoed:


Attachments (Terms of Use)

Description Joshua Wulf 2012-02-23 14:28:10 UTC
Zanata-style:

~/.config/csprocessor.ini fragment:

[servers]
production.url=http://someurl
production.apikey=someapikey

test.url=http://testurl
test.apikey=someapikey


Then, when a csprocessor.cfg is used, it will have a URL attribute in it:
SPECID=5322
SPECNAME=Name_of_Book
URL=http://someurl

So the csprocessor can then match the csprocessor.cfg URL with a csprocessor.ini .url property, and use the .apikey to communicate with the server.

This means that "projects know which server they are stored on".

Comment 1 Joshua Wulf 2012-02-23 14:29:00 UTC
actually, the csprocessor.cfg key should be something like 

SERVER

to make its purpose more evident to the user.

Comment 2 Joshua Wulf 2012-02-23 14:46:12 UTC
When a csprocessor command is run with the -s switch, no apikey is required at the command line if it is present in the csprocessor.ini

Comment 3 Lee Newson 2012-03-05 06:09:49 UTC
Added in 0.22.0.

The client now has the ability to have multiple servers. A "default" server must always be specified so that it has something to go back on. The csprocessor.cfg uses the "SERVER_URL" attribute as it is more meaningful then plain "SERVER" as well.

For the username (previously apikey) it will attempt to match the -H (previously -S) url to a server. If no server matches then it will default to the "default" server.

The whole csprocessor.ini format has somewhat changed as well. See Bug #796009 for more details.

Comment 4 Lee Newson 2013-06-07 01:29:36 UTC
Closing and setting as current release as no QA was performed by the original reporter. If there is still an issue with this bug still than please re-open it.


Note You need to log in before you can comment on or make changes to this bug.