This file contains hidden or 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
from lxml import etree | |
stuff = { | |
"aaa": "bbb", | |
"ccc": "ddd" | |
} | |
# create XML | |
root = etree.Element('processingMCP') | |
choices = etree.Element('preconfiguredChoices') |
This file contains hidden or 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
# get transfer info | |
transfer = models.Transfer.objects.get(uuid=transfer_uuid) | |
transfer_path = transfer.currentlocation.replace( | |
'%sharedPath%', | |
helpers.get_server_config_value('sharedDirectory') | |
) | |
# extra transfer name | |
transfer_directory_name = os.path.basename(transfer_path[:-1]) | |
transfer_name = transfer_directory_name[:-37] |
This file contains hidden or 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
demo@archivematicaDev:~$ ls -l /usr/share/elasticsearch/ | |
total 36 | |
drwxrwxr-x 2 demo demo 4096 Apr 22 14:42 bin | |
drwxrwxr-x 2 demo demo 4096 Apr 22 14:42 config | |
drwxrwxr-x 3 demo demo 4096 Apr 22 14:42 lib | |
-rw-r--r-- 1 demo demo 11358 Oct 13 2012 LICENSE.txt | |
-rw-r--r-- 1 demo demo 165 Oct 13 2012 NOTICE.txt | |
-rw-r--r-- 1 demo demo 7935 Mar 25 02:39 README.textile |
This file contains hidden or 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
demo@archivematicaDev:~$ ls -l /usr/share/elasticsearch/bin/ | |
total 16 | |
-rwxr-xr-x 1 demo demo 5511 Mar 25 04:24 elasticsearch | |
-rwxr-xr-x 1 demo demo 2099 Mar 25 04:24 elasticsearch.in.sh | |
-rwxr-xr-x 1 demo demo 740 Mar 25 04:24 plugin | |
demo@archivematicaDev:~$ ls -l /usr/share/elasticsearch/lib | |
total 16360 | |
-rw-r--r-- 1 demo demo 10653931 Mar 25 04:24 elasticsearch-0.20.6.jar | |
-rw-r--r-- 1 demo demo 865400 Oct 13 2012 jna-3.3.0.jar | |
-rw-r--r-- 1 demo demo 770462 Oct 13 2012 jts-1.12.jar |
This file contains hidden or 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
try: | |
conn.create_index(index) | |
except: | |
pass | |
conn.put_mapping(doc_type=doc_type, mapping={'widget': {'date_detection': False}}, indices=[index]) | |
docData = { | |
'text': 'hey now', | |
'date': '2000-03-01' |
This file contains hidden or 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
mike@mike-VirtualBox:~/archivematica/src/archivematicaCommon/lib/utilities$ ./linktool insertafter 8a0bc7c6-f7c2-4656-a690-976660c66a8a | |
Creating new standard task config entry SQL... | |
Command? | |
elasticSearchIndex_v0.0 | |
Arguments? | |
\"%SIPDirectory%\" \"%SIPUUID%\" | |
Creating new task entry SQL... | |
Task type UUID? | |
36b2e239-4a57-4aa5-8ebc-7a29139baca6 | |
Description? |
This file contains hidden or 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
************************************************** | |
Django template: | |
************************************************** | |
<form id='group_selector_form'> | |
<select id='group_selector'> | |
{{ for group in groups }} | |
<option value='{{ group.id }}'>{{ group.name }}</option> | |
{{ endfor }} | |
</select> |
This file contains hidden or 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
No uuid for file: " %SIPDirectory%objects/submissionDocumentation/transfer-BBBBBBB-7c4c07c9-b90c-4e30-bc94-e80724208dcf/METS.xml " |
This file contains hidden or 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
SELECT Related.originalLocation AS 'derivedFromOriginalLocation', | |
Current.originalLocation, Current.sipUUID | |
FROM Files AS Current | |
LEFT OUTER JOIN Derivations ON Current.fileUUID = Derivations.derivedFileUUID | |
LEFT OUTER JOIN Files AS Related ON Derivations.sourceFileUUID = Related.fileUUID | |
WHERE Current.removedTime = 0 | |
AND Current.currentLocation like '%transfer-AAAA%'; |
This file contains hidden or 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
vagrant@atom ~/atom-moma (qa/devel) $ sudo ./symfony tools:gearman-workerFailed loading opcache.so: opcache.so: cannot open shared object file: No such file or directory | |
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/xsl.so' - /usr/lib/php5/20090626/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0 | |
PHP Fatal error: require(): Failed opening required '/home/vagrant/atom-moma/plugins/arElasticSearchPlugin/lib/vendor/Elastica/lib/Elastica/Transport/Memcache.php' (include_path='/home/vagrant/atom-moma:/home/vagrant/atom-moma/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor:/home/vagrant/atom-moma/vendor/symfony/lib/plugins/sfPropelPlugin/lib/task:/usr/share/php:/usr/share/pear') in /home/vagrant/atom-moma/vendor/symfony/lib/autoload/sfSimpleAutoload.class.php on line 123 | |
Fatal error: require(): Failed opening required '/home/vagrant/atom-moma/plugins/arElasticSearchPlugin/lib/vendor/Elastica/lib/Elastica/Transport/Memcache.php' (includ |