Index: /WAeUP_SRP/base/skins/cps_custom/main_template_popup.pt
===================================================================
--- /WAeUP_SRP/base/skins/cps_custom/main_template_popup.pt	(revision 2918)
+++ /WAeUP_SRP/base/skins/cps_custom/main_template_popup.pt	(revision 2918)
@@ -0,0 +1,48 @@
+<metal:block define-macro="master" tal:define="
+  showthirdcol showthirdcol|python:1;
+  emptybody emptybody|request/emptybody|nothing;
+  utool nocall:here/portal_url;
+  atool here/portal_actions;
+  mtool here/portal_membership;
+  ttool here/portal_trees;
+  wtool here/portal_workflow;
+  context_url python:here.getContextUrl(utool=utool);
+  base_url python:utool.getBaseUrl();
+  
+  static_dir here/portal_properties/static_dir;
+  static_base_url string:${here/getBaseUrl}${static_dir};
+  
+  
+  here_url python:here.absolute_url();
+  member mtool/getAuthenticatedMember;
+  isAnon mtool/isAnonymousUser;
+  actions python:atool.listFilteredActionsFor(here);
+  wf_state python:wtool.getInfoFor(here,'review_state','');
+  uname python:isAnon and 'Guest' or member.getUserName();
+  checkPerm nocall:mtool/checkPermission;
+  cpsmcat nocall:here/translation_service;
+  locale here/translation_service/getSelectedLanguage;
+  in_ws here/isInWorkspace;
+  "><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+  tal:attributes="lang locale; xml:lang locale">
+<head>
+<metal:block use-macro="here/header_lib_header/macros/header">
+  <metal:block fill-slot="base"><metal:block define-slot="base"><base
+    href="" tal:attributes="href string:${here_url}/"
+    /></metal:block></metal:block>
+  <metal:block fill-slot="head_slot"><metal:block define-slot="head_slot"
+    /></metal:block>
+  <metal:block fill-slot="style_slot"><metal:block define-slot="style_slot"
+    /></metal:block>
+  <metal:block fill-slot="javascript_head_slot"><metal:block
+    define-slot="javascript_head_slot"
+    /></metal:block>
+</metal:block>
+</head>
+<body OnLoad="setFocus()" tal:condition="emptybody">
+  <metal:block define-slot="body" />
+  <metal:block define-slot="main" />
+</body>
+</html>
+</metal:block>
Index: /WAeUP_SRP/base/skins/waeup_epayment/upgradePayments.py
===================================================================
--- /WAeUP_SRP/base/skins/waeup_epayment/upgradePayments.py	(revision 2917)
+++ /WAeUP_SRP/base/skins/waeup_epayment/upgradePayments.py	(revision 2918)
@@ -50,10 +50,11 @@
 logger.info("found %d payments" % total)
 sid = "xxx"
-count = 1
+count = 0
 commit_after = 5
-commit_count = 0
+#commit_count = 0
 
 student_id = ''
 for payment_brain in payments:
+    count += 1
     payment = payment_brain.getObject()
     if payment_brain.getPath().split('/')[-3] != student_id:
@@ -62,9 +63,8 @@
     payment['updatePayment'](student_record)
     logger.info('upgraded student %s payment %s' % (student_record.id,payment.getId()))
-    if not count % commit_after:
-        logger.info("committing %d total %d" % (commit_after,count))
+    #if not count % commit_after:
+    #    logger.info("committing %d total %d" % (commit_after,count))
         #commit_count += 1
         #if not commit_count % 2:
         #    break
-    count += 1
 logger.info("%d of %d upgraded" % (count,total))
