View Single Post
Old 11-21-2014, 01:31 AM   #1
jbacelar
Interested in the matter
jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.
 
jbacelar's Avatar
 
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
Unhappy Error in function mode in editor S&R

To renumber notes
Using:

def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):
section_number = '%d' % number
return match.group(1) + section_number

With the find expression:
(\[)(\d+)

Result:

calibre, version 2.11.0
ERROR: Excepción no considerada: <b>AttributeError</b>:'NoneType' object has no attribute 'getvalue'

calibre 2.11 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.8
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM && Prince PDF
Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\boss.py", line 811, in search
File "site-packages\calibre\gui2\tweak_book\search.py", line 1343, in run_search
File "site-packages\calibre\gui2\tweak_book\search.py", line 1319, in do_all
File "site-packages\calibre\gui2\tweak_book\search.py", line 1190, in show_function_debug_output
AttributeError: 'NoneType' object has no attribute 'getvalue'
jbacelar is offline   Reply With Quote