Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97981989
Pages.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jan 8, 06:00
Size
292 B
Mime Type
text/x-python
Expires
Fri, Jan 10, 06:00 (2 d)
Engine
blob
Format
Raw Data
Handle
23471178
Attached To
R3596 pybliographer
Pages.py
View Options
import
re
from
Pyblio.Format.DSL
import
lazy
def
_pagesLong
(
record
,
pages
):
pages
=
pages
(
record
)
if
pages
.
find
(
'-'
)
==
-
1
:
# no dash, a single page then
return
u'page
\xa0
'
+
pages
else
:
return
u'pages
\xa0
'
+
pages
pagesLong
=
lazy
(
_pagesLong
)
Event Timeline
Log In to Comment