- Complete all metadata fields in specification, added to models.
- Respective model, form classes updated accordingly.
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
#!/bin/bash | |
PROJPATH=/Users/sean/projects | |
SRCPATH=$PROJPATH/plotqi/build | |
PKGPATH=$PROJPATH/dev43/app/src/uu.chart | |
DESTPATH=$PKGPATH/uu/chart/browser/resources/plotqi | |
# copy assets from plotqi build to uu.chart resource directory: | |
cp $SRCPATH/plotqi.*s* $DESTPATH |
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
/*jshint browser: true, nomen: false, eqnull: true, es5:true, trailing:true,undef:true */ | |
/*global jQuery, console, QUnit, COREMODELNS, window, alert */ | |
var parsedate = (function (ns, moment) { | |
/** sensible date-parsing of human-entered date strings, using moment | |
* ALL TIMES UTC for sanity! | |
*/ | |
"use strict"; | |
var m = moment.utc, |
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
patterns.pat.select2: Failed while initializing 'select2' pattern. TypeError: self.$el.select2 is not a function | |
Stack trace: | |
Select2<.initializeSelect2@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:20677:7 | |
Select2<.init@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:20756:7 | |
Base@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:15944:9 | |
Base.extend/child@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:15979:34 | |
initBasePattern@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:15932:27 | |
registry.initPattern@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:15771:25 | |
executeBound@http://localhost:28080/policy3/portal_javascripts/Sunburst%20Theme/++resource++plone.app.widgets.js:13198:56 | |
_.partial/bound@http://l |
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
#!/bin/bash | |
PROJPATH=/Users/sean/projects | |
SRCPATH=$PROJPATH/plotqi/build | |
PKGPATH=$PROJPATH/dev43/app/src/uu.chart | |
DESTPATH=$PKGPATH/uu/chart/browser/resources/plotqi | |
# copy assets from plotqi build to uu.chart resource directory: | |
cp $SRCPATH/plotqi.*s* $DESTPATH |
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
# monkey patch autoform to exempt schemaeditor from considering | |
# omitted fields | |
from plone.autoform import utils | |
from plone.autoform.interfaces import OMITTED_KEY | |
orig_mergedTaggedValuesForForm = utils.mergedTaggedValuesForForm | |
def mergedTaggedValuesForForm(schema, name, form): | |
if form.__class__.__name__ == 'SchemaListing' and name == OMITTED_KEY: |
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
if &t_Co > 1 | |
syntax enable | |
endif | |
set ts=4 et ruler number | |
set sw=4 | |
set softtabstop=4 " insert/delete 4 spaces when hitting a TAB/BACKSPACE | |
set shiftround " round indent to multiple of 'shiftwidth' | |
set t_Co=256 | |
highlight NonText ctermfg=234 | |
call pathogen#infect() |
There is no need to define a service for resource_types, because hyrax already has one, and it reads the config/authorities/resource_types.yml file from one's app. There are a few gotchas with this:
- There is no caching of local vocabularies. Qa/Hyrax is going to hit disk and load a file for every field, every time you load a form. This could be a performance concern in any system that made use of forms more than trivial (ideally, there should be some kind of in-memory memoization of terms).
- There is no i18n at all for local vocabulary terms, generally. For our project, at this moment, this is YAGNI, but something to consider at some future date?
- Qa gem is supposed to allow for setting an active boolean on each term in the YML, which I was hoping to use to hide default hyrax terms. As this was not doing what I expected, I took the simpler route and just removed them.
Plan
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
{ | |
"terms": ["all", "terms"], | |
"coordinates": { | |
"all": [ | |
{ | |
"page": "1", | |
"x": 300, | |
"y": 78, | |
"width": 34, | |
"height": 18 |
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
# make a work | |
work = Work.new | |
work.title = ['Here, there, everywhere'] | |
user = User.new | |
# make an ability with a user: | |
user.id = 'me123' | |
user.email = 'me@example.com' | |
user.password = 'another' | |
ability = Ability.new(user) | |
# have some attributes for changes to apply |