-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accepted pull request that handles enums.
Accepted pull request that makes query extendable. Accepted pull request that fixes query encoding. Made the mako templates respect python formatting a bit better, makes the files bigger but the IDEs shouldn't complain as much. Made the service work with URLs that do not end in / Changelog: added
Showing
5 changed files
with
15 additions
and
8 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
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
|
||
|
||
<%page args="name, entity"/>\ | ||
<% short_name = name.split(".")[-1] %>\ | ||
${short_name} = Enum("${short_name}", {\ | ||
%for prop in entity: | ||
"${prop.name}" : "${prop.value}",\ | ||
"${prop.name}": "${prop.value}", \ | ||
%endfor | ||
}) |
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
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
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