This repository has been archived by the owner on Feb 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed GoogleSpreadsheet trouble with special characters in headers an…
…d added parent-uid to repeat spreadsheets.
- Loading branch information
1 parent
d40ec8c
commit 4c8abfc
Showing
3 changed files
with
181 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,49 +21,55 @@ | |
* @author [email protected] | ||
* | ||
*/ | ||
public final class SpreadsheetConsts { | ||
|
||
public final class SpreadsheetConsts { | ||
|
||
public static final String SPEADSHEET_NAME_LABEL = "Name of Spreadsheet:"; | ||
/** | ||
* The Google feed permissions. Of the form '/visibility/projection/'. <BR/> | ||
* See http://code.google.com/apis/spreadsheets/data/3.0/reference.html# | ||
* Visibility and | ||
* http://code.google.com/apis/spreadsheets/data/3.0/reference | ||
* .html#Projection for more info. | ||
*/ | ||
/** | ||
* The Google feed permissions. Of the form '/visibility/projection/'. <BR/> | ||
* See http://code.google.com/apis/spreadsheets/data/3.0/reference.html# | ||
* Visibility and http://code.google.com/apis/spreadsheets/data/3.0/reference | ||
* .html#Projection for more info. | ||
*/ | ||
public static final String FEED_PERMISSIONS = "/private/full/"; | ||
public static final String SPREADSHEETS_SCOPE = "https://spreadsheets.google.com/feeds/"; | ||
/** | ||
* The spreadsheets feed prefix. <BR/> | ||
* Spreadsheets metafeed url: SPREADSHEETS_FEED <BR/> | ||
* Specific spreadsheet url: SPREADSHEETS_FEED + spreadsheetKey <BR/> | ||
* See http://code.google.com/apis/spreadsheets/data/3.0/reference.html#Feeds | ||
* for more info. | ||
*/ | ||
public static final String SPREADSHEETS_FEED = SPREADSHEETS_SCOPE + "spreadsheets" + FEED_PERMISSIONS; | ||
/** | ||
* The spreadsheets feed prefix. <BR/> | ||
* Spreadsheets metafeed url: SPREADSHEETS_FEED <BR/> | ||
* Specific spreadsheet url: SPREADSHEETS_FEED + spreadsheetKey <BR/> | ||
* See http://code.google.com/apis/spreadsheets/data/3.0/reference.html#Feeds | ||
* for more info. | ||
*/ | ||
public static final String SPREADSHEETS_FEED = SPREADSHEETS_SCOPE + "spreadsheets" | ||
+ FEED_PERMISSIONS; | ||
/** | ||
* The worksheets feed prefix.<BR/> | ||
* Worksheets metafeed url: WORKSHEETS_FEED + spreadsheetKey + FEED_PERMISSIONS <BR/> | ||
* Specific worksheet url: WORKSHEETS_FEED + spreadsheetKey + FEED_PERMISSIONS + worksheetId <BR/> | ||
* Worksheets metafeed url: WORKSHEETS_FEED + spreadsheetKey + | ||
* FEED_PERMISSIONS <BR/> | ||
* Specific worksheet url: WORKSHEETS_FEED + spreadsheetKey + FEED_PERMISSIONS | ||
* + worksheetId <BR/> | ||
* See http://code.google.com/apis/spreadsheets/data/3.0/reference.html#Feeds | ||
* for more info. | ||
*/ | ||
public static final String WORKSHEETS_FEED = SPREADSHEETS_SCOPE + "worksheets/"; | ||
public static final String DOCS_SCOPE = "http://docs.google.com/feeds/"; | ||
public static final String DOC_FEED = DOCS_SCOPE + "default" + FEED_PERMISSIONS; | ||
public static final String AUTHORIZE_SPREADSHEET_CREATION = "Authorize Doc Service for Spreadsheet Creation"; | ||
public static final String GOOGLE_DOC_EXPLANATION = "Create Google Doc Spreadsheet for Form: "; | ||
public static final String DOCS_PRE_KEY = "spreadsheet%3A"; | ||
|
||
/** | ||
* The name of the property that specifies the session key for the doc and spreadsheets services | ||
*/ | ||
*/ | ||
public static final String WORKSHEETS_FEED = SPREADSHEETS_SCOPE + "worksheets/"; | ||
public static final String DOCS_SCOPE = "http://docs.google.com/feeds/"; | ||
public static final String DOC_FEED = DOCS_SCOPE + "default" + FEED_PERMISSIONS; | ||
public static final String AUTHORIZE_SPREADSHEET_CREATION = "Authorize Doc Service for Spreadsheet Creation"; | ||
public static final String GOOGLE_DOC_EXPLANATION = "Create Google Doc Spreadsheet for Form: "; | ||
public static final String DOCS_PRE_KEY = "spreadsheet%3A"; | ||
|
||
/** | ||
* The name of the property that specifies the session key for the doc and | ||
* spreadsheets services | ||
*/ | ||
public static final String OAUTH_TOKEN = "oauthToken"; | ||
public static final String OAUTH_TOKEN_SECRET = "oauthTokenSecret"; | ||
|
||
public static final String OAUTH_TOKEN_SECRET = "oauthTokenSecret"; | ||
|
||
public static final int WORKSHEET_CREATION_DELAY = 15000; | ||
public static final String COMPLETED_AUTH = "Completed Authorization <br>"; | ||
|
||
public static final String UNSUPPORTED_CHAR_CLASS = "[*:]"; | ||
public static final String REPLACEMENT_CHAR = "-"; | ||
} | ||
|
||
/** | ||
* Characters which cause problems in Google Spreadsheet headers. Removed in | ||
* the GoogleSpreadsheetHeaderFormatter. | ||
*/ | ||
public static final String UNSAFE_CHAR_CLASS = "[\\*\\:\\-\\_]"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.