getting the max request id via the API

2009-04-07 Thread Kimon

I've been using the API to generate statistics. What I want to do is
traverse through all the reviews (no matter what state) and generate
my statistics.

I can pretty much do this with api/json/reviewrequests/id/ except
for determining what the max id is.
I wrote a function to do it using the following url:

api/json/reviewrequests/all/maxid/

Is this a good url for this api function?  Is it useful enough to
commit to the codebase?

Along the same lines what I really want is a query for all review
requests created in a given date range.  If I were to write such a
function, what would be an appropriate url?  Anything I should know
before I try?

Thanks,

Kimon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: getting the max request id via the API

2009-04-07 Thread Kimon

Is there a similar call that's already in the codebase I can use as an
example?

On Apr 7, 7:38 pm, Christian Hammond chip...@chipx86.com wrote:
 The date range handler would be good, but I'd rather not have the maxid.
 However, there's another way we can do that.

 Update the handler for api/json/reviewrequests/all/ and let it take optional
 start and end ranges that work like Python's lists. I'd have to think how I
 want this API to look, but maybe something like:

 api/json/reviewrequests/all/?start=start indexmax_results=number of
 resultsorder_by=comma-separated order criteria

 Then you could do:

 api/json/reviewrequests/all/?max_results=0order_by=-id

 And that would return the most recent public review request.

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.review-board.org
 VMware, Inc. -http://www.vmware.com

 On Tue, Apr 7, 2009 at 6:54 PM, Kimon kim...@gmail.com wrote:

  I've been using the API to generate statistics. What I want to do is
  traverse through all the reviews (no matter what state) and generate
  my statistics.

  I can pretty much do this with api/json/reviewrequests/id/ except
  for determining what the max id is.
  I wrote a function to do it using the following url:

  api/json/reviewrequests/all/maxid/

  Is this a good url for this api function?  Is it useful enough to
  commit to the codebase?

  Along the same lines what I really want is a query for all review
  requests created in a given date range.  If I were to write such a
  function, what would be an appropriate url?  Anything I should know
  before I try?

  Thanks,

  Kimon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



intermittent problems with svn diff viewer

2009-03-21 Thread Kimon

Hi,

When viewing diffs via the web interface we occasionally get the
following exception.  I have not been able to trace it down.  If I
restart apache, then it starts working again-- I'm not sure what the
trigger is.

We access our svn repository via certificates, not user/password
(which perhaps could be an issue based on the exception), but I don't
understand how restarting apache could remidy this problem if its an
respository access problem.

Any help would be appreciated.

Kimon

callback_ssl_client_cert_prompt required

Traceback (most recent call last):
  File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/diffviewer/views.py, line 145, in view_diff
interdiffset, highlighting, True)[0]
  File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/diffviewer/diffutils.py, line 619, in
get_diff_files
large_data=True)
  File /usr/local/lib64/python2.6/site-packages/Djblets-0.5alpha3-
py2.6.egg/djblets/util/misc.py, line 143, in cache_memoize
data = lookup_callable()
  File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/diffviewer/diffutils.py, line 618, in lambda
enable_syntax_highlighting),
  File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/diffviewer/diffutils.py, line 341, in
get_chunks
old = get_original_file(filediff)
  File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/diffviewer/diffutils.py, line 248, in
get_original_file
large_data=True)[0]
  File /usr/local/lib64/python2.6/site-packages/Djblets-0.5alpha3-
py2.6.egg/djblets/util/misc.py, line 143, in cache_memoize
data = lookup_callable()
  File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/diffviewer/diffutils.py, line 247, in lambda
data = cache_memoize(key, lambda: [fetch_file(file, revision)],
  File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/diffviewer/diffutils.py, line 227, in
fetch_file
data = tool.get_file(file, revision)
  File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/scmtools/svn.py, line 117, in get_file
raise SCMError(e)
SCMError: callback_ssl_client_cert_prompt required

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



port missing from email

2009-03-21 Thread Kimon

Our reviewboard sever is configured to run on port 8080.

When an email is sent, puts links back to the review, but those links
are missing the port.

I looked at the email template and it is as follows:

This is an automatically generated e-mail. To reply, visit:
{{domain_method}}://{{domain}}{{review_request.get_absolute_url}}

Should the port be included in the {domain} variable?  Do you think
this is a configuration problem, a problem with reviewboard, or a
problem with django?

Thanks,

Kimon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: port missing from email

2009-03-21 Thread Kimon

That fixed it, thanks Christian.

On Mar 21, 10:39 am, Christian Hammond chip...@chipx86.com wrote:
 Hi Kimon,

 You need to modify the Site entry for this in the admin UI and add the port
 to the domain name. All URLs should be correct from then on.

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.review-board.org
 VMware, Inc. -http://www.vmware.com

 On Sat, Mar 21, 2009 at 10:04 AM, Kimon kim...@gmail.com wrote:

  Our reviewboard sever is configured to run on port 8080.

  When an email is sent, puts links back to the review, but those links
  are missing the port.

  I looked at the email template and it is as follows:

  This is an automatically generated e-mail. To reply, visit:
  {{domain_method}}://{{domain}}{{review_request.get_absolute_url}}

  Should the port be included in the {domain} variable?  Do you think
  this is a configuration problem, a problem with reviewboard, or a
  problem with django?

  Thanks,

  Kimon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: exception after publishing review

2009-03-18 Thread Kimon

I believe I have found the problem:  @'s in the user name.

Our LDAP sever is setup in such a way that it has your primary email
address in the uid:  j...@foo.com, not just john.

@'s in user ids breaks reviewboard in more than one place, though such
a user is able to log in and create reviews.  But
as soon as you add such a user as a reviewer, the review breaks with
the exception above.

Also if you click on the users name in a review, that will break it.
Accessing the this url causes an exception: 
http://ilmwiki0.cup.hp.com:8080/users/f...@bar.com/

I was able to get around this by changing the LDAP filter to be (uid=
%...@mycompany.com).  This way the @domain name is not included in their
domain name.

But this is probably a bug that should be fixedshould I file it?

Regards,

Kimon

On Mar 16, 10:16 pm, Christian Hammond chip...@chipx86.com wrote:
 This is not an error you should encounter unless you had a very broken
 install or had modified the code. What system was this installed on, how did
 you install it, and can you show me your web server configuration?

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.review-board.org
 VMware, Inc. -http://www.vmware.com

 On Mon, Mar 16, 2009 at 5:20 PM, Kimon kim...@gmail.com wrote:

  (strange...did not seem to post the first time so I'm trying to post
  again)

  I've created a number of reviews with post-review and svn.  This
  seemed to work fine.  Then I added a review group and and additional
  reviewer and tried to post the review.  In at least one instance, it
  said it failed to post the review (no sure it happened both times).

  Anyway, now when I try to look at either review I get the following
  exception:

  Environment:

  Request Method: GET
  Request URL: http://hostname:8080/r/10/
  Django Version: 1.0.2 final
  Python Version: 2.6.0
  Installed Applications:
  ['django.contrib.admin',
   'django.contrib.auth',
   'django.contrib.contenttypes',
   'django.contrib.markup',
   'django.contrib.sites',
   'django.contrib.sessions',
   'djblets.datagrid',
   'djblets.feedview',
   'djblets.siteconfig',
   'djblets.util',
   'djblets.webapi',
   'reviewboard.accounts',
   'reviewboard.admin',
   'reviewboard.changedescs',
   'reviewboard.diffviewer',
   'reviewboard.iphone',
   'reviewboard.reports',
   'reviewboard.reviews',
   'reviewboard.scmtools',
   'reviewboard.webapi',
   'django_evolution']
  Installed Middleware:
  ('django.middleware.gzip.GZipMiddleware',
   'django.middleware.common.CommonMiddleware',
   'django.middleware.doc.XViewMiddleware',
   'django.middleware.http.ConditionalGetMiddleware',
   'django.middleware.locale.LocaleMiddleware',
   'django.contrib.sessions.middleware.SessionMiddleware',
   'django.contrib.auth.middleware.AuthenticationMiddleware',
   'djblets.siteconfig.middleware.SettingsMiddleware',
   'reviewboard.admin.middleware.LoadSettingsMiddleware',
   'djblets.log.middleware.LoggingMiddleware',
   'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware')

  Template error:
  In template /usr/local/lib64/python2.6/site-packages/
  ReviewBoard-1.0alpha4-py2.6.egg/reviewboard/templates/reviews/
  review_request_box.html, error at line 47
    Caught an exception while rendering: Reverse for 'reviewboard.user'
  with arguments '(User: kimonp,)' and keyword arguments '{}' not
  found.
    37 :   /tr

    38 :   tr

    39 :    td class=labellabel for=bugs_closed{% trans Bugs
  %}:/label/td

    40 :    td class=valuespan id=bugs_closed class=editable
  comma-editable{% spaceless %}

    41 : {%  for bug in review_request_details.get_bug_list %}

    42 : {%   if review_request.repository.bug_tracker %}a href={{bug|
  bug_url:review_request}}{{bug}}/a{% else %}{{bug}}{% endif %}{% if
  not forloop.last %}, {% endif %}

    43 : {%  endfor %}

    44 : {% endspaceless %}/span/td

    45 :    td class=indented labellabel for=target_people{%
  trans People %}:/label/td

    46 :    td class=valuespan id=target_people class=editable
  comma-editable{% spaceless %}

    47 :  {%  for person in review_request_details.target_people.all
  %}

    48 : a href={% url user person %}{% if not person.is_active %}
  class=inactive{% endif %}{{person}}/a{% if not forloop.last %},
  {% endif %}

    49 : {%  endfor %}

    50 : {% endspaceless %}/span/td

    51 :   /tr

    52 :   tr

    53 :    td class=labellabel for=changenum{% trans Change
  Number %}:/label/td

    54 :    td class=valuespan id=changenum
  {{review_request.changenum}}/span/td

    55 :    td class=labellabel for=repository{% trans
  Repository %}:/label/td

    56 :    td class=valuespan id=repository
  {{review_request.repository}}/span/td

    57 :   /tr

  Traceback:
  File /usr/local/lib64/python2.6/site-packages/django/core/handlers/
  base.py in get_response
   86.                 response = callback(request, *callback_args,
  **callback_kwargs)
  File /usr/local/lib64/python2.6/site-packages/ReviewBoard

Re: exception after publishing review

2009-03-17 Thread Kimon

Hi Cristian,

Server version: Apache/2.2.10 (Linux/SUSE)
Server built:   Dec  3 2008 13:33:50

After a few fits and starts, the install was pretty straightforward.
Almost by the book I think.  At first I was trying to put reviewboard
in a subdirectory, but I backed off of that and ran rb-site install
from scratch (after dropping and re-creating the database).

I did three things out of the ordinary that I know of:

1.  I have it running on port 8080.  I'm running on a test system
right now and I did not want to get an additional IP, so I just put it
on a different port.
2.  I modified pysvn/__init__.py to recognize python 2.6
3.  I modified accounts/backends.py to support our LDAP Schema (minor
change: changed the scope from one level to subtree)

I'll attach my apache conf files, but I did not modify them much at
all.

Request Method: GET
Request URL:http://host:8080/r/2/
Exception Type: TemplateSyntaxError
Exception Value:

Caught an exception while rendering: Reverse for 'reviewboard.user'
with arguments '(User: kimonp,)' and keyword arguments '{}' not
found.

Exception Location: /usr/local/lib64/python2.6/site-packages/django/
template/debug.py in render_node, line 81
Python Executable:  /usr/bin/python
Python Version: 2.6.0
Python Path:['/srv/www/reviews/conf', '/usr/local/lib64/python2.6/
site-packages/ReviewBoard-1.0alpha4-py2.6.egg', '/usr/local/lib64/
python2.6/site-packages/flup-1.0.1-py2.6.egg', '/usr/local/lib64/
python2.6/site-packages/Djblets-0.5alpha3-py2.6.egg', '/usr/local/
lib64/python2.6/site-packages/django_evolution-0.0.0-py2.6.egg', '/usr/
local/lib64/python2.6/site-packages/python_memcached-1.43-py2.6.egg',
'/usr/local/lib64/python2.6/site-packages/Pygments-1.0-py2.6.egg', '/
usr/local/lib64/python2.6/site-packages/simplejson-2.0.9-py2.6-linux-
x86_64.egg', '/usr/lib/python26.zip', '/usr/lib64/python2.6', '/usr/
lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/
lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/
lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/
Numeric', '/usr/local/lib64/python2.6/site-packages', '/usr/local/
lib64/python2.6/site-packages/PIL', '/usr/lib64/python2.6/site-
packages/gtk-2.0']

On Mar 16, 10:16 pm, Christian Hammond chip...@chipx86.com wrote:
 This is not an error you should encounter unless you had a very broken
 install or had modified the code. What system was this installed on, how did
 you install it, and can you show me your web server configuration?

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.review-board.org
 VMware, Inc. -http://www.vmware.com

 On Mon, Mar 16, 2009 at 5:20 PM, Kimon kim...@gmail.com wrote:

  (strange...did not seem to post the first time so I'm trying to post
  again)

  I've created a number of reviews with post-review and svn.  This
  seemed to work fine.  Then I added a review group and and additional
  reviewer and tried to post the review.  In at least one instance, it
  said it failed to post the review (no sure it happened both times).

  Anyway, now when I try to look at either review I get the following
  exception:

  Environment:

  Request Method: GET
  Request URL: http://hostname:8080/r/10/
  Django Version: 1.0.2 final
  Python Version: 2.6.0
  Installed Applications:
  ['django.contrib.admin',
   'django.contrib.auth',
   'django.contrib.contenttypes',
   'django.contrib.markup',
   'django.contrib.sites',
   'django.contrib.sessions',
   'djblets.datagrid',
   'djblets.feedview',
   'djblets.siteconfig',
   'djblets.util',
   'djblets.webapi',
   'reviewboard.accounts',
   'reviewboard.admin',
   'reviewboard.changedescs',
   'reviewboard.diffviewer',
   'reviewboard.iphone',
   'reviewboard.reports',
   'reviewboard.reviews',
   'reviewboard.scmtools',
   'reviewboard.webapi',
   'django_evolution']
  Installed Middleware:
  ('django.middleware.gzip.GZipMiddleware',
   'django.middleware.common.CommonMiddleware',
   'django.middleware.doc.XViewMiddleware',
   'django.middleware.http.ConditionalGetMiddleware',
   'django.middleware.locale.LocaleMiddleware',
   'django.contrib.sessions.middleware.SessionMiddleware',
   'django.contrib.auth.middleware.AuthenticationMiddleware',
   'djblets.siteconfig.middleware.SettingsMiddleware',
   'reviewboard.admin.middleware.LoadSettingsMiddleware',
   'djblets.log.middleware.LoggingMiddleware',
   'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware')

  Template error:
  In template /usr/local/lib64/python2.6/site-packages/
  ReviewBoard-1.0alpha4-py2.6.egg/reviewboard/templates/reviews/
  review_request_box.html, error at line 47
    Caught an exception while rendering: Reverse for 'reviewboard.user'
  with arguments '(User: kimonp,)' and keyword arguments '{}' not
  found.
    37 :   /tr

    38 :   tr

    39 :    td class=labellabel for=bugs_closed{% trans Bugs
  %}:/label/td

    40 :    td class=valuespan id=bugs_closed

Re: exception after publishing review

2009-03-17 Thread Kimon

Here is my reviewboard.conf file.  The only modification that I know
if is that its running on port 8080.  Let me know if there is another
configuration file that would illuminating.

VirtualHost *:8080
ServerName ilmwiki0.cup.hp.com
DocumentRoot /srv/www/reviews/htdocs

# Error handlers
ErrorDocument 500 /errordocs/500.html

# Serve django pages
Location /
PythonPath ['/srv/www/reviews/conf'] + sys.path
SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
SetEnv PYTHON_EGG_CACHE /srv/www/reviews/tmp/egg_cache
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonAutoReload Off
PythonDebug Off
# Used to run multiple mod_python sites in the same
apache
PythonInterpreter reviewboard_reviews
/Location

# Serve static media without running it through mod_python
# (overrides the above)
Location /media
SetHandler None
/Location
Location /errordocs
SetHandler None
/Location

Directory /srv/www/reviews/htdocs
AllowOverride All
/Directory

# Alias static media requests to filesystem
Alias /media /srv/www/reviews/htdocs/media
Alias /errordocs /srv/www/reviews/htdocs/errordocs
/VirtualHost

On Mar 17, 9:16 am, Kimon kim...@gmail.com wrote:
 Hi Cristian,

 Server version: Apache/2.2.10 (Linux/SUSE)
 Server built:   Dec  3 2008 13:33:50

 After a few fits and starts, the install was pretty straightforward.
 Almost by the book I think.  At first I was trying to put reviewboard
 in a subdirectory, but I backed off of that and ran rb-site install
 from scratch (after dropping and re-creating the database).

 I did three things out of the ordinary that I know of:

 1.  I have it running on port 8080.  I'm running on a test system
 right now and I did not want to get an additional IP, so I just put it
 on a different port.
 2.  I modified pysvn/__init__.py to recognize python 2.6
 3.  I modified accounts/backends.py to support our LDAP Schema (minor
 change: changed the scope from one level to subtree)

 I'll attach my apache conf files, but I did not modify them much at
 all.

 Request Method:         GET
 Request URL:    http://host:8080/r/2/
 Exception Type:         TemplateSyntaxError
 Exception Value:

 Caught an exception while rendering: Reverse for 'reviewboard.user'
 with arguments '(User: kimonp,)' and keyword arguments '{}' not
 found.

 Exception Location:     /usr/local/lib64/python2.6/site-packages/django/
 template/debug.py in render_node, line 81
 Python Executable:      /usr/bin/python
 Python Version:         2.6.0
 Python Path:    ['/srv/www/reviews/conf', '/usr/local/lib64/python2.6/
 site-packages/ReviewBoard-1.0alpha4-py2.6.egg', '/usr/local/lib64/
 python2.6/site-packages/flup-1.0.1-py2.6.egg', '/usr/local/lib64/
 python2.6/site-packages/Djblets-0.5alpha3-py2.6.egg', '/usr/local/
 lib64/python2.6/site-packages/django_evolution-0.0.0-py2.6.egg', '/usr/
 local/lib64/python2.6/site-packages/python_memcached-1.43-py2.6.egg',
 '/usr/local/lib64/python2.6/site-packages/Pygments-1.0-py2.6.egg', '/
 usr/local/lib64/python2.6/site-packages/simplejson-2.0.9-py2.6-linux-
 x86_64.egg', '/usr/lib/python26.zip', '/usr/lib64/python2.6', '/usr/
 lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/
 lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/
 lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/
 Numeric', '/usr/local/lib64/python2.6/site-packages', '/usr/local/
 lib64/python2.6/site-packages/PIL', '/usr/lib64/python2.6/site-
 packages/gtk-2.0']

 On Mar 16, 10:16 pm, Christian Hammond chip...@chipx86.com wrote:

  This is not an error you should encounter unless you had a very broken
  install or had modified the code. What system was this installed on, how did
  you install it, and can you show me your web server configuration?

  Christian

  --
  Christian Hammond - chip...@chipx86.com
  Review Board -http://www.review-board.org
  VMware, Inc. -http://www.vmware.com

  On Mon, Mar 16, 2009 at 5:20 PM, Kimon kim...@gmail.com wrote:

   (strange...did not seem to post the first time so I'm trying to post
   again)

   I've created a number of reviews with post-review and svn.  This
   seemed to work fine.  Then I added a review group and and additional
   reviewer and tried to post the review.  In at least one instance, it
   said it failed to post the review (no sure it happened both times).

   Anyway, now when I try to look at either review I get the following
   exception:

   Environment:

   Request Method: GET
   Request URL: http://hostname:8080/r/10/
   Django Version: 1.0.2 final
   Python Version: 2.6.0
   Installed Applications:
   ['django.contrib.admin',
    'django.contrib.auth

exception after publishing review

2009-03-16 Thread Kimon

I've created a number of reviews with post-review and svn.  This
seemed to work fine.  Then I added a review group and and additional
reviewer and tried to post the review.  In at least one instance, it
said it failed to post the review (no sure it happened both times).

Anyway, now when I try to look at either review I get the following
exception:

Environment:

Request Method: GET
Request URL: http://hostname:8080/r/10/
Django Version: 1.0.2 final
Python Version: 2.6.0
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.markup',
 'django.contrib.sites',
 'django.contrib.sessions',
 'djblets.datagrid',
 'djblets.feedview',
 'djblets.siteconfig',
 'djblets.util',
 'djblets.webapi',
 'reviewboard.accounts',
 'reviewboard.admin',
 'reviewboard.changedescs',
 'reviewboard.diffviewer',
 'reviewboard.iphone',
 'reviewboard.reports',
 'reviewboard.reviews',
 'reviewboard.scmtools',
 'reviewboard.webapi',
 'django_evolution']
Installed Middleware:
('django.middleware.gzip.GZipMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.http.ConditionalGetMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'djblets.siteconfig.middleware.SettingsMiddleware',
 'reviewboard.admin.middleware.LoadSettingsMiddleware',
 'djblets.log.middleware.LoggingMiddleware',
 'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware')


Template error:
In template /usr/local/lib64/python2.6/site-packages/
ReviewBoard-1.0alpha4-py2.6.egg/reviewboard/templates/reviews/
review_request_box.html, error at line 47
   Caught an exception while rendering: Reverse for 'reviewboard.user'
with arguments '(User: kimonp,)' and keyword arguments '{}' not
found.
   37 :   /tr


   38 :   tr


   39 :td class=labellabel for=bugs_closed{% trans Bugs
%}:/label/td


   40 :td class=valuespan id=bugs_closed class=editable
comma-editable{% spaceless %}


   41 : {%  for bug in review_request_details.get_bug_list %}


   42 : {%   if review_request.repository.bug_tracker %}a href={{bug|
bug_url:review_request}}{{bug}}/a{% else %}{{bug}}{% endif %}{% if
not forloop.last %}, {% endif %}


   43 : {%  endfor %}


   44 : {% endspaceless %}/span/td


   45 :td class=indented labellabel for=target_people{%
trans People %}:/label/td


   46 :td class=valuespan id=target_people class=editable
comma-editable{% spaceless %}


   47 :  {%  for person in review_request_details.target_people.all
%}


   48 : a href={% url user person %}{% if not person.is_active %}
class=inactive{% endif %}{{person}}/a{% if not forloop.last %},
{% endif %}


   49 : {%  endfor %}


   50 : {% endspaceless %}/span/td


   51 :   /tr


   52 :   tr


   53 :td class=labellabel for=changenum{% trans Change
Number %}:/label/td


   54 :td class=valuespan id=changenum
{{review_request.changenum}}/span/td


   55 :td class=labellabel for=repository{% trans
Repository %}:/label/td


   56 :td class=valuespan id=repository
{{review_request.repository}}/span/td


   57 :   /tr


Traceback:
File /usr/local/lib64/python2.6/site-packages/django/core/handlers/
base.py in get_response
  86. response = callback(request, *callback_args,
**callback_kwargs)
File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/accounts/decorators.py in _check
  27. return view_func(*args, **kwargs)
File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/reviews/views.py in review_detail
  200. 'PRE_CREATION': PRE_CREATION,
File /usr/local/lib64/python2.6/site-packages/django/shortcuts/
__init__.py in render_to_response
  18. return HttpResponse(loader.render_to_string(*args,
**kwargs), **httpresponse_kwargs)
File /usr/local/lib64/python2.6/site-packages/django/template/
loader.py in render_to_string
  107. return t.render(context_instance)
File /usr/local/lib64/python2.6/site-packages/django/template/
__init__.py in render
  176. return self.nodelist.render(context)
File /usr/local/lib64/python2.6/site-packages/django/template/
__init__.py in render
  768. bits.append(self.render_node(node, context))
File /usr/local/lib64/python2.6/site-packages/django/template/
debug.py in render_node
  71. result = node.render(context)
File /usr/local/lib64/python2.6/site-packages/django/template/
loader_tags.py in render
  97. return compiled_parent.render(context)
File /usr/local/lib64/python2.6/site-packages/django/template/
__init__.py in render
  176. return self.nodelist.render(context)
File /usr/local/lib64/python2.6/site-packages/django/template/
__init__.py in render
  768. bits.append(self.render_node(node, context))
File 

exception after publishing review

2009-03-16 Thread Kimon

(strange...did not seem to post the first time so I'm trying to post
again)

I've created a number of reviews with post-review and svn.  This
seemed to work fine.  Then I added a review group and and additional
reviewer and tried to post the review.  In at least one instance, it
said it failed to post the review (no sure it happened both times).

Anyway, now when I try to look at either review I get the following
exception:

Environment:

Request Method: GET
Request URL: http://hostname:8080/r/10/
Django Version: 1.0.2 final
Python Version: 2.6.0
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.markup',
 'django.contrib.sites',
 'django.contrib.sessions',
 'djblets.datagrid',
 'djblets.feedview',
 'djblets.siteconfig',
 'djblets.util',
 'djblets.webapi',
 'reviewboard.accounts',
 'reviewboard.admin',
 'reviewboard.changedescs',
 'reviewboard.diffviewer',
 'reviewboard.iphone',
 'reviewboard.reports',
 'reviewboard.reviews',
 'reviewboard.scmtools',
 'reviewboard.webapi',
 'django_evolution']
Installed Middleware:
('django.middleware.gzip.GZipMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.http.ConditionalGetMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'djblets.siteconfig.middleware.SettingsMiddleware',
 'reviewboard.admin.middleware.LoadSettingsMiddleware',
 'djblets.log.middleware.LoggingMiddleware',
 'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware')


Template error:
In template /usr/local/lib64/python2.6/site-packages/
ReviewBoard-1.0alpha4-py2.6.egg/reviewboard/templates/reviews/
review_request_box.html, error at line 47
   Caught an exception while rendering: Reverse for 'reviewboard.user'
with arguments '(User: kimonp,)' and keyword arguments '{}' not
found.
   37 :   /tr


   38 :   tr


   39 :td class=labellabel for=bugs_closed{% trans Bugs
%}:/label/td


   40 :td class=valuespan id=bugs_closed class=editable
comma-editable{% spaceless %}


   41 : {%  for bug in review_request_details.get_bug_list %}


   42 : {%   if review_request.repository.bug_tracker %}a href={{bug|
bug_url:review_request}}{{bug}}/a{% else %}{{bug}}{% endif %}{% if
not forloop.last %}, {% endif %}


   43 : {%  endfor %}


   44 : {% endspaceless %}/span/td


   45 :td class=indented labellabel for=target_people{%
trans People %}:/label/td


   46 :td class=valuespan id=target_people class=editable
comma-editable{% spaceless %}


   47 :  {%  for person in review_request_details.target_people.all
%}


   48 : a href={% url user person %}{% if not person.is_active %}
class=inactive{% endif %}{{person}}/a{% if not forloop.last %},
{% endif %}


   49 : {%  endfor %}


   50 : {% endspaceless %}/span/td


   51 :   /tr


   52 :   tr


   53 :td class=labellabel for=changenum{% trans Change
Number %}:/label/td


   54 :td class=valuespan id=changenum
{{review_request.changenum}}/span/td


   55 :td class=labellabel for=repository{% trans
Repository %}:/label/td


   56 :td class=valuespan id=repository
{{review_request.repository}}/span/td


   57 :   /tr


Traceback:
File /usr/local/lib64/python2.6/site-packages/django/core/handlers/
base.py in get_response
  86. response = callback(request, *callback_args,
**callback_kwargs)
File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/accounts/decorators.py in _check
  27. return view_func(*args, **kwargs)
File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/reviews/views.py in review_detail
  200. 'PRE_CREATION': PRE_CREATION,
File /usr/local/lib64/python2.6/site-packages/django/shortcuts/
__init__.py in render_to_response
  18. return HttpResponse(loader.render_to_string(*args,
**kwargs), **httpresponse_kwargs)
File /usr/local/lib64/python2.6/site-packages/django/template/
loader.py in render_to_string
  107. return t.render(context_instance)
File /usr/local/lib64/python2.6/site-packages/django/template/
__init__.py in render
  176. return self.nodelist.render(context)
File /usr/local/lib64/python2.6/site-packages/django/template/
__init__.py in render
  768. bits.append(self.render_node(node, context))
File /usr/local/lib64/python2.6/site-packages/django/template/
debug.py in render_node
  71. result = node.render(context)
File /usr/local/lib64/python2.6/site-packages/django/template/
loader_tags.py in render
  97. return compiled_parent.render(context)
File /usr/local/lib64/python2.6/site-packages/django/template/
__init__.py in render
  176. return self.nodelist.render(context)
File /usr/local/lib64/python2.6/site-packages/django/template/
__init__.py in render
  768. 

crash on clicking New Review Request

2009-03-14 Thread Kimon

I just got RB set up, and I created a repository and a test account.
It's a very slick looking tool and I can't wait to put it through its
paces.

But when I click New Review Request it crashes:

Something broke! (Error 500)

It appears something broke when you tried to go to here. This is
either a bug in Review Board or a server
configuration error. Please report this to your administrator.

I've installed all the pre-reqs, including mem-cached pretty much
standard.  Everything else seems to be working (except for search
since I have not installed PyLucene yet).

My system is openSUSE/apache2/mod_python.

What might cause this to happen?  There don't seem to be any clues as
what could be wrong (either review board logs, or apache logs).  Any
way I can debug this?

Thanks for any help,

Kimon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: crash on clicking New Review Request

2009-03-14 Thread Kimon

Looks like a problem with pysvn and pythin 2.6: the pysvn/__init__.py
did not explicitly support python 2.6, only up to python 2.5.  I'm
going to assume there are no changes necessary in the package itself
for and so I added the 2.6 lines as follows:

elif maj_min == (2,5):
import _pysvn_2_5
_pysvn = _pysvn_2_5
elif maj_min == (2,6):
import _pysvn_2_6
_pysvn = _pysvn_2_6
else:
raise ImportError( 'Fix pysvn/__init__.py to support python %d.
%d' % tuple(maj_min) )

This got me to the next page successfully.

Thanks!

Kimon

Environment:

Traceback:
File /usr/local/lib64/python2.6/site-packages/django/core/handlers/
base.py in get_response
  86. response = callback(request, *callback_args,
**callback_kwargs)
File /usr/local/lib64/python2.6/site-packages/Djblets-0.5alpha3-
py2.6.egg/djblets/auth/util.py in _checklogin
  45. return view_func(request, *args, **kwargs)
File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/reviews/views.py in new_review_request
  81. fields[repo.id] = repo.get_scmtool().get_fields()
File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/scmtools/models.py in get_scmtool
  40. return cls(self)
File /usr/local/lib64/python2.6/site-packages/ReviewBoard-1.0alpha4-
py2.6.egg/reviewboard/scmtools/svn.py in __init__
  47. import pysvn
File /usr/lib64/python2.6/site-packages/pysvn/__init__.py in
module
  107. raise ImportError( 'Fix pysvn/__init__.py to support
python %d.%d' % tuple(maj_min) )

Exception Type: ImportError at /r/new/
Exception Value: Fix pysvn/__init__.py to support python 2.6


On Mar 14, 12:02 am, Christian Hammond chip...@chipx86.com wrote:
 Hi,

 Edit your {sitedir}/conf/settings_local.py file and change DEBUG to True,
 then restart Apache. Go back to that page and see what error information you
 get. It should tell us more.

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.review-board.org
 VMware, Inc. -http://www.vmware.com

 On Fri, Mar 13, 2009 at 11:31 PM, Kimon kim...@gmail.com wrote:

  I just got RB set up, and I created a repository and a test account.
  It's a very slick looking tool and I can't wait to put it through its
  paces.

  But when I click New Review Request it crashes:

     Something broke! (Error 500)

     It appears something broke when you tried to go to here. This is
  either a bug in Review Board or a server
     configuration error. Please report this to your administrator.

  I've installed all the pre-reqs, including mem-cached pretty much
  standard.  Everything else seems to be working (except for search
  since I have not installed PyLucene yet).

  My system is openSUSE/apache2/mod_python.

  What might cause this to happen?  There don't seem to be any clues as
  what could be wrong (either review board logs, or apache logs).  Any
  way I can debug this?

  Thanks for any help,

  Kimon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: trouble installing on openSUSE

2009-03-13 Thread Kimon

Thanks for the help!  The tip about mod_env was right. mod_env was not
being loaded.

This was easy to fix by editing  /etc/sysconfig/apache and restarting
the server.

Now apache restarts with no errors.  However, something is still
somewhat amiss.  I go to http://myhost/reviewboard/ and I get a: 404
page does not exist.

It does however give me a default review board screen of some sort,
which I'll paste in ascii below.
I've chowned the htdocs/media directory as per the documentation.

---

* Log in
* - Register
* - Bugs
* - Report bug

Review Board
beta

* All review requests
* Groups
* Submitters

The page you were looking for does not exist.

If you're pretty sure this page does exist, try logging in and trying
again.

---

Thanks,

Kimon

On Mar 13, 12:50 am, Christian Hammond chip...@chipx86.com wrote:
 The generated Apache config file is pretty much just a sample config file.
 You can certainly set it up in other ways. In your case, you want to make
 sure to set the domain name in 'rb-site install' to your myhost and set
 the site root directory to /reviewboard/.

 Usually with Apache, you have a VirtualHost that defines your main host, and
 every other host you host if you have others. You can merge the definition
 of the generated Apache config file into your main one, if you have one. You
 may have to play around with it a bit. We'll help where we can, but it's
 kinda a custom config.

 As for the SetEnv errors, it's possible you'll need to load in the mod_env
 module. Normally this is built-in, I think, but maybe not on OpenSUSE. Can
 you show the errors?

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.review-board.org
 VMware, Inc. -http://www.vmware.com

 On Thu, Mar 12, 2009 at 7:37 PM, Kimon kim...@gmail.com wrote:

  Hi,

  I've installed all the prereqs and run rb-site install successfully,
  but I'm a bit of an apache newbie and I'm not quite sure what to do
  with apache-modpython.conf

  I tried to simply load it from http.conf, but it complains about the
  SetEnv directives as syntax errors.

  Also, I'm unclear as to whether I really want to use the VirtualHost
  option... I'd rather just place it under

   http://myhost/reviewboard

  I don't seem to have sites-available or sites-enabled directories ad
  indicated in the doc.

  Any pointers would be appreciated...

  I'm running Apache/2.2.10 (Linux/SUSE) mod_python/3.3.1

  Thanks,

  Kimon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: trouble installing on openSUSE

2009-03-13 Thread Kimon

Ok, I had all sorts of problems because I wanted it to run under
http://host/reviewboard instead of http://host

I wanted this because I did not have another ip address configured on
the machine.  When I set it up this way it had all sorts of problems
finding the css files and so on-- it worked, but it was ugly.  I'm
sure if I was an apache expert, I could have worked it out with the
conf files, but I'm not :(.

Then I realized I could have apache listen on another port as well as
80 (Using the Listen directive), and the virtual host could just sit
on that port and leave the rest of the system undisturbed.

That worked straight away.

Kimon

On Mar 13, 9:42 am, Kimon kim...@gmail.com wrote:
 Thanks for the help!  The tip about mod_env was right. mod_env was not
 being loaded.

 This was easy to fix by editing  /etc/sysconfig/apache and restarting
 the server.

 Now apache restarts with no errors.  However, something is still
 somewhat amiss.  I go to http://myhost/reviewboard/ and I get a: 404
 page does not exist.

 It does however give me a default review board screen of some sort,
 which I'll paste in ascii below.
 I've chowned the htdocs/media directory as per the documentation.

 ---

     * Log in
     * - Register
     * - Bugs
     * - Report bug

 Review Board
 beta

     * All review requests
     * Groups
     * Submitters

 The page you were looking for does not exist.

 If you're pretty sure this page does exist, try logging in and trying
 again.

 ---

 Thanks,

 Kimon

 On Mar 13, 12:50 am, Christian Hammond chip...@chipx86.com wrote:

  The generated Apache config file is pretty much just a sample config file.
  You can certainly set it up in other ways. In your case, you want to make
  sure to set the domain name in 'rb-site install' to your myhost and set
  the site root directory to /reviewboard/.

  Usually with Apache, you have a VirtualHost that defines your main host, and
  every other host you host if you have others. You can merge the definition
  of the generated Apache config file into your main one, if you have one. You
  may have to play around with it a bit. We'll help where we can, but it's
  kinda a custom config.

  As for the SetEnv errors, it's possible you'll need to load in the mod_env
  module. Normally this is built-in, I think, but maybe not on OpenSUSE. Can
  you show the errors?

  Christian

  --
  Christian Hammond - chip...@chipx86.com
  Review Board -http://www.review-board.org
  VMware, Inc. -http://www.vmware.com

  On Thu, Mar 12, 2009 at 7:37 PM, Kimon kim...@gmail.com wrote:

   Hi,

   I've installed all the prereqs and run rb-site install successfully,
   but I'm a bit of an apache newbie and I'm not quite sure what to do
   with apache-modpython.conf

   I tried to simply load it from http.conf, but it complains about the
   SetEnv directives as syntax errors.

   Also, I'm unclear as to whether I really want to use the VirtualHost
   option... I'd rather just place it under

    http://myhost/reviewboard

   I don't seem to have sites-available or sites-enabled directories ad
   indicated in the doc.

   Any pointers would be appreciated...

   I'm running Apache/2.2.10 (Linux/SUSE) mod_python/3.3.1

   Thanks,

   Kimon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



trouble installing on openSUSE

2009-03-12 Thread Kimon

Hi,

I've installed all the prereqs and run rb-site install successfully,
but I'm a bit of an apache newbie and I'm not quite sure what to do
with apache-modpython.conf

I tried to simply load it from http.conf, but it complains about the
SetEnv directives as syntax errors.

Also, I'm unclear as to whether I really want to use the VirtualHost
option... I'd rather just place it under

  http://myhost/reviewboard

I don't seem to have sites-available or sites-enabled directories ad
indicated in the doc.

Any pointers would be appreciated...

I'm running Apache/2.2.10 (Linux/SUSE) mod_python/3.3.1

Thanks,

Kimon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---