=====================
to use (with caution), suppose that you are using bottle and beaker::
from smartClient import SessionManager
@app.route('/')
def root():
# get the client session
clientSession = request.environ.get('beaker.session')
# get the session manager
sm = SessionManager(clientSession, clientInfo=clientInfo)
# get the HTML page
page = sm.getPage()
# clear session
page.clearSession()
# build the page
page.addComponent(getLoginPage(page))
# build the response body
response.body = page.getMainPage()
# update the client sesssion
page.updateSession()
clientSession.save()
return response
from smartClient import VerticalLayout, HorizontalLayout, KeyboardManager, ReplyClick, ActionUrl, Validator
from smartClient import Label, DateField, EditField, CheckBox, RadioGroup, SelectField, PasswordField, Button, Link
from smartClient import TextArea, Header, Spacer, RichEditor, ListGrid, DataSource, FileUpload, Window, ViewLoader
from smartClient import SectionStack, MainMenu, MenuLink, HTMLPane, Canvas
def getLoginPage(page):
login = Label()
login.setProperty('contents','login')
login.setProperty('height',40)
user = EditField()
user.setProperty('title','user','fields')
user.setProperty('value','','fields')
user.setProperty('autoFocus','true')
user.setProperty('autoFocus','true','fields')
user.transformValue = 'function(form, item, value, oldValue) {return value.toUpperCase()}'
password = PasswordField()
password.setProperty('title','password','fields')
password.setProperty('value','','fields')
v = Validator()
v.setCondition("return value == 'xxx';")
password.addValidator(v)
spacer = Spacer()
spacer.setProperty('width', '*')
spacer0 = Spacer()
spacer0.setProperty('width', '*')
spacer1 = Spacer()
spacer1.setProperty('width', '5%')
spacer2 = Spacer()
spacer2.setProperty('height', '5%')
actionURL = ActionUrl()
actionURL.setEvent('click')
actionURL.setOperation('verifyPassword')
strObj = '{"object":"User"}'
actionURL.setObject(strObj)
actionURL.setParams('{"user":%s.getValue("%s"),"password":%s.getValue("%s")}', user, user, password, password)
check = Button(actionUrl=actionURL)
check.setProperty('title', 'login')
check.setProperty('width', 100)
check.setProperty('height', 40)
#check.setProperty('saveOnEnter', 'true')
keyboardManager = page.keyboardManager
keyboardManager.addEventList2Component(check, ['%s.setFocus(true);', '%s.click();'])
v1 = VerticalLayout()
h0 = HorizontalLayout()
h1 = HorizontalLayout()
v1.setProperty('width', 400)
v1.setProperty('membersMargin', 5)
v1.setProperty('layoutMargin', 20)
v1.addComponent(spacer2)
v1.addComponent(login)
v1.addComponent(user)
v1.addComponent(password)
#v1.addComponent(spacer2)
v1.addComponent(h1)
h1.addComponent(spacer)
h1.addComponent(check)
h0.addComponent(spacer0)
h0.addComponent(v1)
h0.addComponent(spacer1)
return h0
Metadata
Release files for pychartjs 0.8.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pychartjs-0.8.7.tar.gz | 204.4 kB | Without provenance | Details for pychartjs-0.8.7.tar.gz |
Release files / pychartjs-0.8.7.tar.gz
| Download URL | pychartjs-0.8.7.tar.gz |
|---|---|
| Size | 204.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aeac4f25a106819759295325095108564c12b6cbe2b8f7bc9f804a9d9b385773
|
|
BLAKE2b-256 checksum How to use checksums |
1d41aba25a9375f286a3f3ea98302d045535880cd18efed2edff409c08ee3041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pychartjs 0.8.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.