{ "id": "84035", "key": "TIMOB-6749", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12091", "description": "", "name": "Sprint 2011-51", "archived": true, "released": true, "releaseDate": "2011-12-26" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-12-19T13:49:58.000+0000", "created": "2011-12-19T07:09:26.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_module", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-02T13:25:26.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": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "In the [wiki documentation|https://wiki.appcelerator.org/display/guides/iOS+Module+Development+Guide#iOSModuleDevelopmentGuide-PackagingyourModule] for developing iOS modules, it notes that it is necessary to install the [python module 'markdown'|https://github.com/trentm/python-markdown2] to package your module. In TiStudio 1.0.7, this can now be done from the wizard. Unfortunately, the build.py script for packaging the module references this library as *markdown* when it now needs to be referenced as *markdown2*. Module packaging will end in error.\r\n\r\nThe area in build.py that would need to change is (starting at line 54)\r\n\r\n{code}\r\nimport markdown\r\ndocumentation = []\r\nfor file in os.listdir(docdir):\r\n\tif file in ignoreFiles or os.path.isdir(os.path.join(docdir, file)):\r\n\t\tcontinue\r\n\tmd = open(os.path.join(docdir,file)).read()\r\n\thtml = markdown.markdown(md)\r\n\tdocumentation.append({file:html})\r\n{code}\r\n\r\nand it needs to be changed to the following to support the markdown2 import\r\n\r\n{code}\r\nimport markdown2\r\ndocumentation = []\r\nfor file in os.listdir(docdir):\r\n\tif file in ignoreFiles or os.path.isdir(os.path.join(docdir, file)):\r\n\t\tcontinue\r\n\tmd = open(os.path.join(docdir,file)).read()\r\n\thtml = markdown2.markdown(md)\r\n\tdocumentation.append({file:html})\r\n{code}\r\n\r\nThis, though, would create a failure in backwards compatibility. I'll leave that solution to someone better versed in python scripting.", "attachment": [], "flagged": false, "summary": "iOS: 'markdown' is now 'markdown2' in python module for build.py", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Host System: Mac OSX 10.7.2\r\nTiStudio: 1.0.7.201112132151", "comment": { "comments": [ { "id": "176475", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Assigning to Marshall as per his request.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-19T09:13:39.000+0000", "updated": "2011-12-19T09:13:39.000+0000" }, { "id": "176479", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Sent in a pull request for this: https://github.com/appcelerator/titanium_mobile/pull/1046", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-12-19T09:24:55.000+0000", "updated": "2011-12-19T09:24:55.000+0000" }, { "id": "176528", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Sent pull request for 1_8_X as well: https://github.com/appcelerator/titanium_mobile/pull/1052", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-12-19T11:44:23.000+0000", "updated": "2011-12-19T11:44:23.000+0000" }, { "id": "179229", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio 1.0.8.201201101928\r\nTi Mob SDK 1.9.0.v20120111233134\r\nOSX Lion\r\n\r\nExpected behavior of markdown2 being updated in build.py is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-13T12:51:47.000+0000", "updated": "2012-01-13T12:51:47.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }