Beispiel #1
0
 def writeContent(self):
     wr = self.writeln
     clickusername = self.request().cookies().get('username')
     accesslist = get_journal_access()
     if clickusername in accesslist:
         redir = wiley_auth()
         if redir:
             self.response().sendRedirect(redir)
     else:
         wr('<h2>Sorry, but you do not have access to the Veterinary Anaesthesia and Analgesia journal.</h2>')
Beispiel #2
0
 def writeContent(self):
     wr = self.writeln
     clickusername = self.request().cookies().get('username')
     accesslist = get_journal_access()
     if clickusername in accesslist:
         redir = wiley_auth()
         if redir:
             self.response().sendRedirect(redir)
     else:
         wr('<h2>Sorry, but you do not have access to the Veterinary Anaesthesia and Analgesia journal.</h2>'
            )
Beispiel #3
0
    def writeContent(self):
        wr = self.writeln
        wr('<h1>%s</h1>' % (self.title()))
        form = self.request().fields()

        if self.request()._environ.get('REQUEST_METHOD') == 'POST':
            set_journal_access(form)
            self.response().sendRedirect('UM_Journal?saved=1')

        else:
            if form.get('saved'):
                self.render_special_msg('Journal access settings saved.')
            JOURNALIST = get_journal_access()
            if not JOURNALIST:
                JOURNALIST = []
            all = get_all_users()
            aks = all.keys()
            aks = sorted(aks,
                         key=lambda x: (x.isdigit() and float(x)) or x.lower())

            wr('<form action="UM_Journal" method="POST">')
            wr('<table>')
            wr('<tr>')
            wr('<th>Name')
            wr('<th colspan="2">Allow Journal Access')

            count = 0
            for ak in aks:
                count += 1
                ud = all[ak]
                username = ud.get('username')
                wr('<tr class="c"')
                if not count % 3:
                    wr('style="background-color: #E0E0E0;"')
                wr('>')

                wr('<td class="t12">%s, %s' % (ud.get('sn'), ud.get('fn')))
                wr('<td>')
                wr('<label for="%s_journal_yes"><input type="radio" name="%s" id="%s_journal_yes" value="yes"'
                   % (username, username, username))
                if username in JOURNALIST:
                    wr(' checked="checked"')
                wr('> Yes</label>')
                wr('<td>')
                wr('<label for="%s_journal_no"><input type="radio" name="%s" id="%s_journal_no" value="no"'
                   % (username, username, username))
                if username not in JOURNALIST:
                    wr(' checked="checked"')
                wr('> No</label>')
            wr('<tr><td colspan="3" style="text-align: center;">')
            wr('%s' % (submit('Save Journal Access Settings')))
            wr('</table>')
            wr('</form>')
Beispiel #4
0
    def writeContent(self):
        wr = self.writeln
        wr('<h1>%s</h1>' % (self.title()))
        form = self.request().fields()

        if self.request()._environ.get('REQUEST_METHOD') == 'POST':
            set_journal_access(form)
            self.response().sendRedirect('UM_Journal?saved=1')

        else:
            if form.get('saved'):
                self.render_special_msg('Journal access settings saved.')
            JOURNALIST = get_journal_access()
            if not JOURNALIST:
                JOURNALIST = []
            all = get_all_users()
            aks = all.keys()
            aks = sorted(aks, key=lambda x: (x.isdigit() and float(x)) or x.lower())

            wr('<form action="UM_Journal" method="POST">')
            wr('<table>')
            wr('<tr>')
            wr('<th>Name')
            wr('<th colspan="2">Allow Journal Access')

            count = 0
            for ak in aks:
                count += 1
                ud = all[ak]
                username = ud.get('username')
                wr('<tr class="c"')
                if not count % 3:
                    wr('style="background-color: #E0E0E0;"')
                wr('>')

                wr('<td class="t12">%s, %s' % ( ud.get('sn'), ud.get('fn') ))
                wr('<td>')
                wr('<label for="%s_journal_yes"><input type="radio" name="%s" id="%s_journal_yes" value="yes"' % (username, username, username))
                if username in JOURNALIST:
                    wr(' checked="checked"')
                wr('> Yes</label>')
                wr('<td>')
                wr('<label for="%s_journal_no"><input type="radio" name="%s" id="%s_journal_no" value="no"' % (username, username, username))
                if username not in JOURNALIST:
                    wr(' checked="checked"')
                wr('> No</label>')
            wr('<tr><td colspan="3" style="text-align: center;">')
            wr('%s' % (submit('Save Journal Access Settings')))
            wr('</table>')
            wr('</form>')
Beispiel #5
0
    def writeContent(self):
        wr = self.writeln
        rolestr = self.request().cookies().get('role', '')
        IS_RES = rolestr == RESDSTR
        IS_DIP = rolestr == DIPLSTR

        wr('<P class="t14serif">The American College of Veterinary Anesthesia and Analgesia was founded in 1975 to promote the advancement of veterinary anesthesiology and to assist the veterinary profession in providing exceptional service to all animals.</P>')

        wr('<P>The ACVAA is currently composed of over 220 members who practice veterinary anesthesia across the globe.</P>')

        wr('<P>The goals of the ACVAA include establishing, evaluating and maintaining the highest standards in the practice of veterinary anesthesiology by promoting the establishment of educational facilities and clinical and research training in veterinary anesthesiology. Additionally, the ACVAA establishes the criteria of fitness for the designation of a specialist in the practice of veterinary anesthesiology.</P>')

        wr('<P>The ACVAA is an AVMA-Recognized Veterinary Specialty Organization. To learn more about specialization in veterinary medicine, see the American Board of Veterinary Specialties of the American Veterinary Medical Association <a href="https://www.avma.org/professionaldevelopment/education/specialties/pages/default.aspx">website</a>.')
        
        wr('''<div style="padding: 25px; border-top: 2px solid #324150; border-bottom: 2px solid #324150;">
<h2>ACVAA Position Statement on Certificate Programs</h2>
<P>The American College of Veterinary Anesthesia and Analgesia (ACVAA) Diplomate is the only recognized credential in North America acknowledging individual expertise and specialization in veterinary anesthesia and peri-operative analgesia. The ACVAA is organized under the authority of the American Board of Veterinary Specialists (ABVS) and the American Veterinary Medical Association (AVMA). All ACVAA Diplomates have undergone multi-year dedicated residency training under the supervision of ACVAA Diplomates, to achieve a high level of knowledge, skill, and competency in providing anesthesia and analgesia care in multiple species. Diplomate status in Anesthesia and Analgesia is granted following a rigorous examination process.</P>
<P>
The ACVAA promotes anesthesia and analgesia continuing education and training programs designed to advance the knowledge and competency of all veterinary care providers. <a href="/CPE/Index">Endorsement of Certificate granting programs</a> can be accomplished by meeting or exceeding minimal ACVAA guidelines. <a href="/CPE/Guidelines">These guidelines</a> are designed to inform the profession and the public by requiring accurate Certificate program description of content, structure, knowledge and the skill level attained by the anesthesia and analgesia care provider. <a href="/CPE/Programs">ACVAA approved Certificate granting programs</a> are identified and listed on the ACVAA website.
</P>
</div>
''')

        wr('<P style="clear: both; margin-top: 25px; ">')

        wr('<span style="margin-right: 40px;">')

        clickusername = self.request().cookies().get('username')
        accesslist = get_journal_access()
        if clickusername in accesslist:
            wr('<a href="Journal" title="Journal"><img src="/g/journal.jpg" width="200" height="169" alt="Journal" border="0" /></a>')
        else:
            wr('<a href="Foundation" title="The ACVAA Foundation"><img src="/g/foundation.jpg" width="200" height="169" alt="The ACVAA Foundation" border="0" /></a>')
        wr('</span>')

        wr('<span style="margin-right: 40px;">')
        wr('<a href="/Annual" title="2011 Annual Meeting"><img src="/g/annual_mtg.jpg" width="200" height="169" alt="2011 Annual Meeting" border="0" /></a>')
        wr('</span>')

        wr('<span style="">')
        wr('<a href="/News" title="ACVAA News"><img src="/g/news.jpg" width="200" height="169" alt="ACVAA News" border="0" /></a>')
        wr('</span>')

        wr('<P>')

        incl_restricted = False
        if IS_RES or IS_DIP:
            incl_restricted = True
        next_event = get_next_event(incl_restricted)

        if next_event:
            wr('<div style="clear: both;">')
            wr('<h1>Upcoming Events</h1>')
            wr('<div>')
            wr('<table align="right"><tr><td class="event_date">')
            wr('<div class="event_dayofweek">%s</div>' % (next_event.get('dayofweek')))
            wr('<div class="event_month">%s</div>' % (next_event.get('month')))
            wr('<div class="t18b">%s</div>' % (next_event.get('day')))
            wr('<div class="event_year">%s</div>' % (next_event.get('year')))
            wr('</table>')
            wr('<h2>%s</h2>' % (next_event.get('title')))
            wr('<P>')
            wr(next_event.get('display_date'))
            wr('</P>')
            wr('<P>')
            wr(next_event.get('description').replace('\r\n', '<br />'))
            wr('</P>')
            if next_event.get('link_url'):
                wr('<P class="t12">')
                if next_event.get('link_text'):
                    wr('<a href="%s">%s</a>' % (next_event.get('link_url'), next_event.get('link_text')))
                else:
                    wr('<a href="%s">%s</a>' % (next_event.get('link_url'), next_event.get('link_url')))
                wr('</P>')
            if next_event.get('local_doc_link'):
                wr('<P class="t12">See document: ')
                if next_event.get('local_doc_text'):
                    wr('<a href="%s">%s</a>' % (next_event.get('local_doc_link'), next_event.get('local_doc_text')))
                else:
                    wr('<a href="%s">%s</a>' % (next_event.get('local_doc_link'), next_event.get('local_doc_link')))
                wr('</P>')

            wr('<a href="Calendar">Full Events Calendar &raquo;</a>')

            wr('</div>')
            wr('</div>')