Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(946)

Issue 4675066: creation Item object

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by Michael Mayorov
Modified:
13 years, 4 months ago
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Now using MoinMoin.converter.moinwiki_out #

Total comments: 4

Patch Set 3 : Problem on line 397 #

Total comments: 4

Patch Set 4 : Commented several lines in moinwiki_out.py and converting working #

Total comments: 1

Patch Set 5 : temporary fix for IRI convertion #

Total comments: 8

Patch Set 6 : Adding content to whoosh indexes #

Patch Set 7 : Improvements in show_index(), content now may be added using script #

Patch Set 8 : Changes in convertion funcs #

Patch Set 9 : Update and rebuild indexes with content, fix in move_index #

Total comments: 5

Patch Set 10 : specified exception #

Total comments: 2

Patch Set 11 : app.py reverted #

Total comments: 9

Patch Set 12 : using test_request_context for clock timers #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -38 lines) Patch
M MoinMoin/converter/moinwiki_out.py View 1 2 3 4 5 10 3 chunks +9 lines, -1 line 0 comments Download
M MoinMoin/items/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -2 lines 2 comments Download
M MoinMoin/script/maint/index.py View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +49 lines, -30 lines 0 comments Download
M MoinMoin/storage/backends/indexing.py View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +15 lines, -5 lines 1 comment Download

Messages

Total messages: 16
Michael Mayorov
http://codereview.appspot.com/4675066/diff/2001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4675066/diff/2001/MoinMoin/storage/backends/indexing.py#newcode399 MoinMoin/storage/backends/indexing.py:399: print converter(doc_DOM) # XXX: It isn't content! Output: 2011-07-09 ...
13 years, 4 months ago (2011-07-08 19:04:08 UTC) #1
ThomasWaldmann
http://codereview.appspot.com/4675066/diff/2001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4675066/diff/2001/MoinMoin/storage/backends/indexing.py#newcode396 MoinMoin/storage/backends/indexing.py:396: item.create(name=name, contenttype=contenttype, rev_no=revno) please just check how this is ...
13 years, 4 months ago (2011-07-08 19:29:08 UTC) #2
Michael Mayorov
http://codereview.appspot.com/4675066/diff/2001/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4675066/diff/2001/MoinMoin/storage/backends/indexing.py#newcode396 MoinMoin/storage/backends/indexing.py:396: item.create(name=name, contenttype=contenttype, rev_no=revno) On 2011/07/08 19:29:08, ThomasWaldmann wrote: > ...
13 years, 4 months ago (2011-07-08 19:51:11 UTC) #3
ThomasWaldmann
http://codereview.appspot.com/4675066/diff/4/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4675066/diff/4/MoinMoin/storage/backends/indexing.py#newcode396 MoinMoin/storage/backends/indexing.py:396: convert = MoinConv() converter http://codereview.appspot.com/4675066/diff/4/MoinMoin/storage/backends/indexing.py#newcode397 MoinMoin/storage/backends/indexing.py:397: data_converted = convert(dom) ...
13 years, 4 months ago (2011-07-09 09:50:36 UTC) #4
Michael Mayorov
http://codereview.appspot.com/4675066/diff/4/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4675066/diff/4/MoinMoin/storage/backends/indexing.py#newcode397 MoinMoin/storage/backends/indexing.py:397: data_converted = convert(dom) On 2011/07/09 09:50:36, ThomasWaldmann wrote: > ...
13 years, 4 months ago (2011-07-09 09:58:04 UTC) #5
ThomasWaldmann
http://codereview.appspot.com/4675066/diff/4/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4675066/diff/4/MoinMoin/storage/backends/indexing.py#newcode397 MoinMoin/storage/backends/indexing.py:397: data_converted = convert(dom) On 2011/07/09 09:58:05, Michael Mayorov wrote: ...
13 years, 4 months ago (2011-07-09 10:04:50 UTC) #6
ThomasWaldmann
http://codereview.appspot.com/4675066/diff/12002/MoinMoin/converter/moinwiki_out.py File MoinMoin/converter/moinwiki_out.py (right): http://codereview.appspot.com/4675066/diff/12002/MoinMoin/converter/moinwiki_out.py#newcode179 MoinMoin/converter/moinwiki_out.py:179: href = u'' try href = unicode(href) http://codereview.appspot.com/4675066/diff/12002/MoinMoin/converter/moinwiki_out.py#newcode187 MoinMoin/converter/moinwiki_out.py:187: ...
13 years, 4 months ago (2011-07-09 14:11:07 UTC) #7
Michael Mayorov
http://codereview.appspot.com/4675066/diff/12002/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4675066/diff/12002/MoinMoin/storage/backends/indexing.py#newcode395 MoinMoin/storage/backends/indexing.py:395: item = Item.create(name=name, rev_no=revno, contenttype=contenttype) On 2011/07/09 14:11:08, ThomasWaldmann ...
13 years, 4 months ago (2011-07-09 14:23:04 UTC) #8
Reimar Bauer
some comments http://codereview.appspot.com/4675066/diff/21001/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/4675066/diff/21001/MoinMoin/items/__init__.py#newcode230 MoinMoin/items/__init__.py:230: except: at least exact exception http://codereview.appspot.com/4675066/diff/21001/MoinMoin/items/__init__.py#newcode269 MoinMoin/items/__init__.py:269: ...
13 years, 4 months ago (2011-07-09 22:27:55 UTC) #9
Michael Mayorov
http://codereview.appspot.com/4675066/diff/21001/MoinMoin/script/maint/index.py File MoinMoin/script/maint/index.py (right): http://codereview.appspot.com/4675066/diff/21001/MoinMoin/script/maint/index.py#newcode145 MoinMoin/script/maint/index.py:145: Note: before move new indexes this script erasing previous, ...
13 years, 4 months ago (2011-07-09 22:32:13 UTC) #10
Michael Mayorov
http://codereview.appspot.com/4675066/diff/21001/MoinMoin/script/maint/index.py File MoinMoin/script/maint/index.py (right): http://codereview.appspot.com/4675066/diff/21001/MoinMoin/script/maint/index.py#newcode145 MoinMoin/script/maint/index.py:145: Note: before move new indexes this script erasing previous, ...
13 years, 4 months ago (2011-07-09 22:33:17 UTC) #11
ThomasWaldmann
http://codereview.appspot.com/4675066/diff/5/MoinMoin/items/__init__.py File MoinMoin/items/__init__.py (right): http://codereview.appspot.com/4675066/diff/5/MoinMoin/items/__init__.py#newcode229 MoinMoin/items/__init__.py:229: flaskg.clock.start('conv_in_dom') flaskg only works at request-time from where do ...
13 years, 4 months ago (2011-07-09 22:43:56 UTC) #12
ThomasWaldmann
http://codereview.appspot.com/4675066/diff/24002/MoinMoin/script/maint/index.py File MoinMoin/script/maint/index.py (right): http://codereview.appspot.com/4675066/diff/24002/MoinMoin/script/maint/index.py#newcode62 MoinMoin/script/maint/index.py:62: clean_index(indexnames_schemas) we already talked about that a farm index ...
13 years, 4 months ago (2011-07-10 11:22:57 UTC) #13
Michael Mayorov
http://codereview.appspot.com/4675066/diff/24002/MoinMoin/script/maint/index.py File MoinMoin/script/maint/index.py (right): http://codereview.appspot.com/4675066/diff/24002/MoinMoin/script/maint/index.py#newcode62 MoinMoin/script/maint/index.py:62: clean_index(indexnames_schemas) On 2011/07/10 11:22:57, ThomasWaldmann wrote: > we already ...
13 years, 4 months ago (2011-07-10 16:08:56 UTC) #14
Michael Mayorov
http://codereview.appspot.com/4675066/diff/24002/MoinMoin/storage/backends/indexing.py File MoinMoin/storage/backends/indexing.py (right): http://codereview.appspot.com/4675066/diff/24002/MoinMoin/storage/backends/indexing.py#newcode552 MoinMoin/storage/backends/indexing.py:552: return converter(dom) On 2011/07/10 16:08:56, Michael Mayorov wrote: > ...
13 years, 4 months ago (2011-07-11 04:46:55 UTC) #15
ThomasWaldmann
13 years, 4 months ago (2011-07-11 09:25:22 UTC) #16
http://codereview.appspot.com/4675066/diff/24002/MoinMoin/storage/backends/in...
File MoinMoin/storage/backends/indexing.py (right):

http://codereview.appspot.com/4675066/diff/24002/MoinMoin/storage/backends/in...
MoinMoin/storage/backends/indexing.py:552: return converter(dom)
On 2011/07/11 04:46:55, Michael Mayorov wrote:
> On 2011/07/10 16:08:56, Michael Mayorov wrote:
> > On 2011/07/10 11:22:57, ThomasWaldmann wrote:
> > > what is the returned python data type?
> > 
> > str
> oops,
> s/str/unicode/

Was this a guess or did you check?

http://codereview.appspot.com/4675066/diff/6/MoinMoin/items/__init__.py
File MoinMoin/items/__init__.py (right):

http://codereview.appspot.com/4675066/diff/6/MoinMoin/items/__init__.py#newco...
MoinMoin/items/__init__.py:231: flaskg.clock.start('conv_in_dom')
no, that's nonsense

i pointed you at the flask test_request_context() docs recently and they
describe what you need to do.

http://flask.pocoo.org/docs/testing/#other-testing-tricks

read them again, maybe you read an older version.

http://codereview.appspot.com/4675066/diff/6/MoinMoin/items/__init__.py#newco...
MoinMoin/items/__init__.py:269: flaskg.clock.stop('conv_in_dom')
see above

http://codereview.appspot.com/4675066/diff/6/MoinMoin/storage/backends/indexi...
File MoinMoin/storage/backends/indexing.py (right):

http://codereview.appspot.com/4675066/diff/6/MoinMoin/storage/backends/indexi...
MoinMoin/storage/backends/indexing.py:548: def convert_data(self, name, rev_no):
you have that function duplicated in 2 modules?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b