{ "id": "65798", "key": "TIMOB-5717", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-06-07T05:57:20.000+0000", "created": "2011-05-26T05:54:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T18:55:23.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "They are done by compiler.py using simple substitution - it doesn't care about context, quotes, escaping and so on.\r\nInstead start using variables passed into titanium.js\r\n{code}\r\n\t\tfile_contents = file_contents.replace('__PROJECT_NAME__',self.project_name)\r\n\t\tfile_contents = file_contents.replace('__PROJECT_ID__',self.appid)\r\n\t\tfile_contents = file_contents.replace('__DEPLOYTYPE__',deploytype)\r\n\t\tfile_contents = file_contents.replace('__APP_ID__',self.appid)\r\n\t\tfile_contents = file_contents.replace('__APP_ANALYTICS__',ti.properties['analytics'])\r\n\t\tfile_contents = file_contents.replace('__APP_PUBLISHER__',ti.properties['publisher'])\r\n\t\tfile_contents = file_contents.replace('__APP_URL__',ti.properties['url'])\r\n\t\tfile_contents = file_contents.replace('__APP_NAME__',ti.properties['name'])\r\n\t\tfile_contents = file_contents.replace('__APP_VERSION__',ti.properties['version'])\r\n\t\tfile_contents = file_contents.replace('__APP_DESCRIPTION__',ti.properties['description'])\r\n\t\tfile_contents = file_contents.replace('__APP_COPYRIGHT__',ti.properties['copyright'])\r\n\t\tfile_contents = file_contents.replace('__APP_GUID__',ti.properties['guid'])\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: remove __VARIABLE__ like syntax from project", "creator": { "name": "akulinich", "key": "akulinich", "displayName": "Andrew Kulinich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "147033", "author": { "name": "akulinich", "key": "akulinich", "displayName": "Andrew Kulinich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "They are useful for substituting into HTML pages, for example", "updateAuthor": { "name": "akulinich", "key": "akulinich", "displayName": "Andrew Kulinich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-07T05:57:20.000+0000", "updated": "2011-06-07T05:57:20.000+0000" }, { "id": "411272", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T18:55:23.000+0000", "updated": "2017-03-10T18:55:23.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }