-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Mustache Refactor!!! #128
Comments
How do I access inphosite.controller functions from inpho models? As for rewriting the json_struct() methods. |
There should be no json_struct() in the inpho.models anymore - we'll just On Fri, Nov 22, 2013 at 2:03 PM, alefrost [email protected] wrote:
|
Here are some details on tackling different issues with converting the Mako Templates:
For breadcrumbs:
For login/authorization (admin and evaluations are the only panels that change)
For title and headtitle:
For any function calls to python functions in mako templates:
|
Little bit of confusion on the birth and death date information for thinkers. The mako templates use lists named 'birth_dates' & 'death_dates' but if I look at the json file for Kant it has 'birth', 'birth_string', 'death', and 'death_string', but not the lists referenced in the mako file. How do we want to go about displaying that information? |
I have a question on the I'm assuming the line with: This code has almost completely been converted to mustache, but needs this last thing. <div class="actb">
{{#label}}
<label for="{{id}}">{{label}}</label>
{{/label}}
<div class="form-search"
<% q = request.params.get(param,'') if param else value %>
<input class="input-medium search-query" type="text" id="{{id}}" name="{{id}}" ${'value="'+q+'"' if q else ''} data-provide="typeahead" autocomplete="off>
</div>
</div>
<script>inpho.actb.init('#{{id}}', '{{source}}');</script> |
There are three functions in the page.py controller file that I don't what url to use, or if they are even used any more. Can someone let me know? amt_taxonomy() |
These functions are used to: amt_taxonomy - issue a redirect to Both of the later 2 are like the owl file archives. On Tue, Apr 22, 2014 at 5:06 PM, alefrost [email protected] wrote:
|
Jaimie On Tue, Apr 22, 2014 at 5:04 PM, alefrost [email protected] wrote:
|
For the json and graph renders, both of them end up giving 404 errors on the live version of InPhO, is that supposed to happen? |
Jumbled thoughts from the past few days Also, entity.py throws an error saying c.entity.wiki doesn't exist when I try to add it to the struct to pass to the renderer. Where does the wiki field come from? http://inphodev.cogs.indiana.edu:8087/idea/1747 related terms won't 'show more'... try passing ID in a json to partialDelegate in order to populate templates that need input like the breadcrumbs |
So after some testing, it seems to be the case that firing an AJAX post method with jquery requires the user to be logged in. If I try posting to any controller it always returns the html for the sign-in page. There was never a problem with this last time I created post methods for the unit test pages because you always have to be logged in already to use them. Is there a workaround we can implement that can allow calls to certain files? I don't know where that block comes from |
Final things to be done with templates:
|
OK, so InPho will finally be growing some facial hair as we migrate from Mako to Mustache.js! Here is a preliminary list of items to accomplish along this migration to a more maintainable code base:
The text was updated successfully, but these errors were encountered: