Skip to content

Commit

Permalink
release v3.1.9, fix issue #71
Browse files Browse the repository at this point in the history
  • Loading branch information
xjsender committed Aug 26, 2015
1 parent 6bebae2 commit 50e0b7e
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 20 deletions.
7 changes: 7 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Release History

---------------

Release 3.1.9 (2015-08-26)
++++++++++++++++++
* Fix issue #71, export workbooks by user input
* Fix bug for visibility problem of ``Retrieve Package.xml``
* Add bootstrap3 support for styleClass attribute of salesforce standard components


Release 3.1.8 (2015-08-08)
++++++++++++++++++
* Bug Fix:
Expand Down
3 changes: 3 additions & 0 deletions aura.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def preview_app(self):
def is_enabled(self):
self.settings = context.get_settings()
metadata = util.get_described_metadata(self.settings)
if not metadata:
return False

self.namespace = metadata["organizationNamespace"]
if not self.namespace:
return False
Expand Down
4 changes: 2 additions & 2 deletions completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def on_query_completions(self, view, prefix, locations):
sobjects_describe = {}
if metadata and "sobjects" in metadata:
sobjects_describe = metadata["sobjects"]

completion_list = []
if ch in ["<", ":"]:
# Check whether tag has ending, for example,
Expand Down Expand Up @@ -603,7 +603,7 @@ def on_query_completions(self, view, prefix, locations):
for mr in matched_attribute_regions:
if not mr.contains(pt): continue
className = view.substr(mr).split("=")[0]
if className.lower() == "class":
if className.lower() in ["styleclass", "class"]:
for className in bootstrap.classes:
completion_list.append(("%s\tBootstrap3" % className, className))
break
Expand Down
2 changes: 1 addition & 1 deletion config/menus/Side bar.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{"caption": "-"},

{
"caption": "Retrieve Package.xml", "command": "retrieve_package_xml",
"caption": "Retrieve Package.xml", "command": "retrieve_package_xml_from_server",
"args": {"files": []}
},

Expand Down
9 changes: 9 additions & 0 deletions config/messages/3.1.9.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Build 3.1.9
-----------
Release Date: 26 Aug 2015

* Fix issue #71, export workbooks by user input
* Fix bug for visibility problem of ``Retrieve Package.xml``
* Add bootstrap3 support for styleClass attribute of salesforce standard components

* Restart your sublime when new version is installed
2 changes: 1 addition & 1 deletion config/mousemap/Default (OSX).sublime-mousemap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"press_command": "view_debug_log_detail"
},

// Press alt and Click Left Mouse for twice will quick view the code coverage
// Press alt and Click Left Mouse for twice will quickly view the code coverage
{
"button": "button1", "count": 3, "modifiers": ["alt"],
"press_command": "view_selected_code_coverage"
Expand Down
2 changes: 1 addition & 1 deletion config/settings/package.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "HaoIDE",
"version": "3.1.8",
"version": "3.1.9",
"description": "HaoIDE is a Sublime Text 3 plugin for Salesforce and used for swift development on Force.com",
"author": "Hao Liu",
"email": "[email protected]",
Expand Down
1 change: 1 addition & 0 deletions messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"3.1.6": "config/messages/3.1.6.md",
"3.1.7": "config/messages/3.1.7.md",
"3.1.8": "config/messages/3.1.8.md",
"3.1.9": "config/messages/3.1.9.md",
"install": "config/messages/install.txt"
}
20 changes: 6 additions & 14 deletions processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1167,23 +1167,15 @@ def handle_new_view_thread(thread, timeout):
handle_new_view_thread(thread, timeout)

def handle_export_specified_workbooks(sobjects, timeout=120):
# settings = context.get_settings()
# api = ToolingApi(settings)
# threads = []

# mcc = settings["maximum_concurrent_connections"]
# chunked_sobjects = util.list_chunks(sobjects, math.ceil(len(sobjects) / mcc))

# for cs in chunked_sobjects:
# thread = threading.Thread(target=api.generate_workbook, args=(cs, ))
# threads.append(thread)
# thread.start()

settings = context.get_settings()
api = ToolingApi(settings)
threads = []
for sobject in sobjects:
thread = threading.Thread(target=api.generate_workbook, args=(sobject, ))

mcc = settings["maximum_concurrent_connections"]
chunked_sobjects = util.list_chunks(sobjects, math.ceil(len(sobjects) / mcc))

for cs in chunked_sobjects:
thread = threading.Thread(target=api.generate_workbook, args=(cs, ))
threads.append(thread)
thread.start()

Expand Down
1 change: 0 additions & 1 deletion salesforce/api/tooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,6 @@ def generate_workbook(self, sobjects):
* sobject -- sobject name
"""

for sobject in sobjects:
result = self.describe_sobject(sobject)

Expand Down

0 comments on commit 50e0b7e

Please sign in to comment.