Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Arreglado el bug de John

  • Loading branch information...
commit 1ff4fd6491681f8c33f7d66458b9d9d104d61ceb 1 parent d2aa14e
@alvivi authored
Showing with 11 additions and 2 deletions.
  1. +1 −0  main.py
  2. +10 −2 views.py
View
1  main.py
@@ -39,6 +39,7 @@ def main():
('/profile/club/disable', ProfileDisableClubsView),
('/profile/club/disabledcontent', ProfileDisabledClubContentView),
('/profile/club/edit', ProfileEditClubView),
+ ('/profile/club/events/new', ProfileClubEventsNew),
('/profile/club/new', ProfileNewClubView),
('/profile/club/view', ProfileDataClubView),
('/profile/copies', ProfileCopiesView),
View
12 views.py
@@ -693,6 +693,7 @@ def get_as_user(self,user,logoutUri,avatarImg):
def post_as_user(self, user, logoutUri, avatarImg):
action = self.request.get('action')
request = Request.get(self.request.get('requestKey'))
+
ownerUser = request.copy.user
selectedCopy = request.copy
@@ -775,9 +776,14 @@ def post_as_user(self, user, logoutUri, avatarImg):
Alert( user=ownerUser, type='Solicitud: Cancelada', date=Alert.setDate(), relatedApp='true', description='La solicitud por el libro %s ha sido cancelada por %s.' % (selectedCopy.book.title, user.email()) ).put()
HistoricalRequest(copy=selectedCopy, initialUser=ownerUser, appliant=user, state='Rechazada', initialOfferType=selectedCopy.offerType).put()
+ requests = []
+ requestsRaw = Request.allRequestsOf(user)
+ for r in requestsRaw:
+ requests.append({'req' : r, 'cmtCount' : RequestComment.notViewedCount(r, user)})
+ RequestComment.markAllAsViewed(request, user)
values = {
- 'requests' : Request.allRequestsOf(user),
+ 'requests' : requests,
'user' : user,
'avatar' : avatarImg,
'logoutUri' : users.create_logout_url('/')
@@ -1549,6 +1555,8 @@ def post_as_user(self, user, logoutUri, avatarImg):
Alert( user=selectedClub.owner, type='Club: Solicitud', date=Alert.setDate(), relatedClub=selectedClub, description='Usuario %s quiere unirse al club %s.' % ( user.email(), selectedClub.name ) ).put()
#self.redirect('/profile/club/disabledcontent?selectedClub=' + str(selectedClub.key()))
-
+class ProfileClubEventsNew(UserView):
+ def get_as_user(self, user, logoutUri, avatarImg):
+ pass
Please sign in to comment.
Something went wrong with that request. Please try again.