[Trac] Re: Numerous problems with Spam Filter plugin (v1.0)

2018-06-10 Thread RjOllos


On Sunday, June 10, 2018 at 1:53:56 PM UTC-7, Nicolas MARTIN wrote:
>
> Hello Trac community, 
>
>
> I installed the plugin from the last revision of the branch restricted 
> to Trac 1.0.x releases. 
>
> First I got my usual installation issues with our outdated release 
> 1.0.1: 'from trac.util.html import tag' => 'from trac.util.html import 
> html as tag' (all changes are in the attached file). 
>

Committed in r16632.
https://trac.edgewall.org/changeset/16632
 

> Then 2 admin pages crash: 'Monitoring' (/admin/spamfilter/monitor) and 
> 'Reports' (/admin/spamfilter/report). But the log refers to 
> WikiAutoCompletePlugin 
>
> 2018-06-10 20:57:39,539 Trac[main] ERROR: Internal Server Error: 
> Traceback (most recent call last): 
>File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 497, 
> in _dispatch_request 
>  dispatcher.dispatch(req) 
>File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 224, 
> in dispatch 
>  self._post_process_request(req, *resp) 
>File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 338, 
> in _post_process_request 
>  resp = f.post_process_request(req, *resp) 
>File "build/bdist.linux-x86_64/egg/wikiautocomplete/web_ui.py", line 
> 60, in post_process_request 
>  if context_or_page and context_or_page.resource: 
> AttributeError: 'int' object has no attribute 'resource' 
>
> Finally I tried to delete an unused account from 'Users' with 'Remove' 
> button: Trac seems to proceed but ends in a page from the webserver 
> outside of our Trac. 
> If I goes back the account about to be removed is still there, 
> AccountManager plugin is in version 0.5. 
>

Which external site?

- Ryan

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Migrating repository from svn to git: how to update links?

2018-06-10 Thread Dmitry Mikhin
Dima, thanks for the suggestion. Yes, it is an option #4 but with a catch
or two. In fact, we used this approach for some time and generally it
worked fine, but:

- it was pretty easy for a git-aware person to forget that they are
actually using svn and start elaborate branching / merging while away

- given git superiority in merging, it was tempting and proved to be very
easy to break the svn repository in a major way by performing a big merge
in git and dcommit-ting the result without specifying mergeinfo manually
(--mergeinfo option of git svn). As I mentioned in the original post, we're
now "happy with svn-to-git part". Well, the happiness was achieved by
re-assembling svn repo from incremental dumps edited manually to fix
mergeinfo for all the branches found it lacking (i.e., merged in git svn
without mergeinfo), 3-4 branches and tens of commits to be edited. Now,
once I've repaired it all, all I can say it is doable but not enjoyable in
the slightest. Now the problem is known and would be easier to prevent, but
the experience put a big question mark over using git-svn and dcommits.

It remains viable if used with care, but I'm trying to see if there are
better ways for a (more) complete migration.

Cheers,
Dmitry

On 11 June 2018 at 02:44, Dimitri Maziuk  wrote:

> On 6/10/2018 12:36 AM, Dmitry Mikhin wrote:
>
> So far, I have thought about 3 possible approaches:
>>
> ...
>
> 4. Leave svn be, tell all devs to use
> git svn clone
> ...
> git commit
> git svn dcommit
>
> I've sometimes ran into errors trying to "squash" multiple git commits
> into a single dcommit, and with multiple forks, but for simple workflows
> this works fine. YMMV and all that of course.
>
> Dima
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to trac-users+unsubscr...@googlegroups.com.
> To post to this group, send email to trac-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/trac-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Numerous problems with Spam Filter plugin (v1.0)

2018-06-10 Thread Peter Suter

Hello

On 10.06.2018 22:53, Nicolas MARTIN wrote:

Hello Trac community,


I installed the plugin from the last revision of the branch restricted 
to Trac 1.0.x releases.


First I got my usual installation issues with our outdated release 
1.0.1: 'from trac.util.html import tag' => 'from trac.util.html import 
html as tag' (all changes are in the attached file).


Then 2 admin pages crash: 'Monitoring' (/admin/spamfilter/monitor) and 
'Reports' (/admin/spamfilter/report). But the log refers to 
WikiAutoCompletePlugin


2018-06-10 20:57:39,539 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 497, 
in _dispatch_request

    dispatcher.dispatch(req)
  File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 224, 
in dispatch

    self._post_process_request(req, *resp)
  File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 338, 
in _post_process_request

    resp = f.post_process_request(req, *resp)
  File "build/bdist.linux-x86_64/egg/wikiautocomplete/web_ui.py", line 
60, in post_process_request

    if context_or_page and context_or_page.resource:
AttributeError: 'int' object has no attribute 'resource'

I created https://trac-hacks.org/ticket/13439 for this, thanks.

Finally I tried to delete an unused account from 'Users' with 'Remove' 
button: Trac seems to proceed but ends in a page from the webserver 
outside of our Trac.
If I goes back the account about to be removed is still there, 
AccountManager plugin is in version 0.5.



Regards,
Nicolas


--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Numerous problems with Spam Filter plugin (v1.0)

2018-06-10 Thread Nicolas MARTIN

Hello Trac community,


I installed the plugin from the last revision of the branch restricted 
to Trac 1.0.x releases.


First I got my usual installation issues with our outdated release 
1.0.1: 'from trac.util.html import tag' => 'from trac.util.html import 
html as tag' (all changes are in the attached file).


Then 2 admin pages crash: 'Monitoring' (/admin/spamfilter/monitor) and 
'Reports' (/admin/spamfilter/report). But the log refers to 
WikiAutoCompletePlugin


2018-06-10 20:57:39,539 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 497, 
in _dispatch_request

    dispatcher.dispatch(req)
  File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 224, 
in dispatch

    self._post_process_request(req, *resp)
  File "/usr/lib/python2.7/site-packages/trac/web/main.py", line 338, 
in _post_process_request

    resp = f.post_process_request(req, *resp)
  File "build/bdist.linux-x86_64/egg/wikiautocomplete/web_ui.py", line 
60, in post_process_request

    if context_or_page and context_or_page.resource:
AttributeError: 'int' object has no attribute 'resource'

Finally I tried to delete an unused account from 'Users' with 'Remove' 
button: Trac seems to proceed but ends in a page from the webserver 
outside of our Trac.
If I goes back the account about to be removed is still there, 
AccountManager plugin is in version 0.5.



Regards,
Nicolas

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
Index: ../../spam-filter/tracspamfilter/accountadapter.py
===
--- ../../spam-filter/tracspamfilter/accountadapter.py	(révision 16631)
+++ ../../spam-filter/tracspamfilter/accountadapter.py	(copie de travail)
@@ -13,7 +13,7 @@
 
 from acct_mgr.register import IAccountRegistrationInspector
 from trac.core import Component, implements
-from trac.util.html import tag
+from trac.util.html import html as tag
 from trac.util.translation import cleandoc_
 
 from tracspamfilter.api import _
Index: ../../spam-filter/tracspamfilter/captcha/admin.py
===
--- ../../spam-filter/tracspamfilter/captcha/admin.py	(révision 16631)
+++ ../../spam-filter/tracspamfilter/captcha/admin.py	(copie de travail)
@@ -17,7 +17,7 @@
 from trac.admin import IAdminPanelProvider
 from trac.core import Component, ExtensionPoint, TracError, implements
 from trac.util import as_int
-from trac.util.html import tag
+from trac.util.html import html as tag
 from trac.util.translation import tag_
 from trac.web.chrome import (
 ITemplateProvider, add_link, add_script, add_script_data,
Index: ../../spam-filter/tracspamfilter/captcha/keycaptcha.py
===
--- ../../spam-filter/tracspamfilter/captcha/keycaptcha.py	(révision 16631)
+++ ../../spam-filter/tracspamfilter/captcha/keycaptcha.py	(copie de travail)
@@ -19,7 +19,7 @@
 from trac import __version__ as TRAC_VERSION
 from trac.config import Option
 from trac.core import Component, implements
-from trac.util.html import tag
+from trac.util.html import html as tag
 
 from tracspamfilter.captcha import ICaptchaMethod
 
Index: ../../spam-filter/tracspamfilter/captcha/recaptcha.py
===
--- ../../spam-filter/tracspamfilter/captcha/recaptcha.py	(révision 16631)
+++ ../../spam-filter/tracspamfilter/captcha/recaptcha.py	(copie de travail)
@@ -18,7 +18,7 @@
 from trac import __version__ as TRAC_VERSION
 from trac.config import Option
 from trac.core import Component, implements
-from trac.util.html import tag
+from trac.util.html import html as tag
 
 from tracspamfilter.api import _
 from tracspamfilter.captcha import ICaptchaMethod
Index: ../../spam-filter/tracspamfilter/captcha/recaptcha2.py
===
--- ../../spam-filter/tracspamfilter/captcha/recaptcha2.py	(révision 16631)
+++ ../../spam-filter/tracspamfilter/captcha/recaptcha2.py	(copie de travail)
@@ -22,7 +22,7 @@
 from trac import __version__ as TRAC_VERSION
 from trac.config import Option
 from trac.core import Component, implements
-from trac.util.html import tag
+from trac.util.html import html as tag
 from trac.web.chrome import add_script
 
 from tracspamfilter.api import _
Index: ../../spam-filter/tracspamfilter/filters/regex.py
===
--- ../../spam-filter/tracspamfilter/filters/regex.py	(révision 16631)
+++ 

Re: [Trac] Migrating repository from svn to git: how to update links?

2018-06-10 Thread Dimitri Maziuk

On 6/10/2018 12:36 AM, Dmitry Mikhin wrote:


So far, I have thought about 3 possible approaches:

...

4. Leave svn be, tell all devs to use
git svn clone
...
git commit
git svn dcommit

I've sometimes ran into errors trying to "squash" multiple git commits 
into a single dcommit, and with multiple forks, but for simple workflows 
this works fine. YMMV and all that of course.


Dima

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.