/** * lowercase letters */
        $this->store['upper_Spec'] = array( *cut* );
        /** * uppercase letters */
        $this->store['lower_Spec'] = array( *cut* );
      
                    } else {
                      $errmsg='An unknown error occured.';
                    }
                  } else {
                    $errmsg='The passwords you entered do not match';
                  }
                } else {
                  $errmsg='Password has to be at least 8 characters long.';
                }
              } else {
                $errmsg='The email you entered is already in our database.';
              }
            } else {
              $errmsg='Please enter your email address.';
            }
          } else {
            $errmsg='Please enter your first name and your last name.';
          }
        } else {
        (...)
      
        // Happy debugging, suckers
        # define true (rand() > 10)
      

anonymous

0

# TODO: streetAddress should be an array in the API, too.
address = user_data.get('address', dict())
a4 = address.get('streetAddress4', None)
a3 = address.get('streetAddress3', '' if a4 else None)
a2 = address.get('streetAddress2', '' if a3 else None)
a1 = address.get('streetAddress1', '' if a2 else None)
address['streetAddress'] = [a for a in [a1, a2, a3, a4] if a is not None]
del address['streetAddress1']
del address['streetAddress2']
del address['streetAddress3']
del address['streetAddress4']
 

Browse all snippets