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
# You'd make one of these for sample.py and add zcml config for those, too | |
from archetypes.schemaextender.interfaces import IOrderableSchemaExtender | |
from archetypes.schemaextender.interfaces import ISchemaModifier | |
from bika.lims.interfaces import IAnalysisRequest | |
from zope.component import adapts | |
from zope.interface import implements | |
from Products.CMFCore import permissions | |
from bika.lims.browser.widgets import DateTimeWidget |
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
/* IMPORTANT NOTE | |
* Do not use margins, use padding instead | |
*/ | |
@page { | |
} | |
#report { | |
font: 8pt Arial, Verdana, serif; | |
} |
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 version prints TWO stickers side by side. It does this by calling | |
view.nextItem manually in the tal:define on the <tal:bothstickers> block. | |
To retrieve the item, use view.current_item, that will return an array like: | |
[analysis_request_object, sample_object, sample_partition_object] | |
Although sample_object (position 1 in the array) will never be None, | |
analysis_request_object can be None when |
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
Run the scripts like this: | |
$ bin/client_reserved -O <site_id> run <script>.py | |
# To login at the debug prompt, this: | |
user_name_or_id = 'admin' | |
from AccessControl.SecurityManagement import newSecurityManager | |
user = app.acl_users.getUser(user_name_or_id) | |
newSecurityManager(None, user.__of__(app.acl_users)) |
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/client1 -O Plone remove_transactional.py | |
user_name_or_id = 'admin' | |
from AccessControl.SecurityManagement import newSecurityManager | |
user = app.acl_users.getUser(user_name_or_id) | |
newSecurityManager(None, user.__of__(app.acl_users)) | |
bc = app.Plone.bika_catalog | |
pc = app.Plone.portal_catalog |
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
:10072B0000004C00002B3500000000000000000012 | |
:10073B00041F2BE31E141D00E400392C00E1E5001F | |
:10074B00004F00DF52000000E20000DE000000E678 | |
:10075B0000000000002A28000000000048E0000014 | |
:10076B0000000000000000001A3A4E3B4B291B15FD | |
:10077B00003C4C3D000000001620092518083606E9 | |
:10078B0007210A221317051911230F240D0B100E25 | |
:10079B002F3E283F2E31E35034402D41261C370C81 | |
:1007AB0038425143271233300044E0454A000000E1 | |
:1007BB0000004C00002F3000000000000000000083 |
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
bika2_export.py | |
=============== | |
Export bika2 data to CSV files. You can use any bika2 instance - only | |
standard python modules are required. | |
$ bin/instance run bika2_export.py sitename | |
This will create a folder called ./sitename-csv |