This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 *-* | |
import os | |
import urlparse | |
import logging | |
from selenium import webdriver | |
# This is necessary for all installed apps to be recognized, for some reason. | |
os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings' | |
def before_all(context): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyModel extends CActiveRecord | |
{ | |
public function rules() | |
{ | |
return array( | |
array('attr_a', 'compositeUnique', 'other' => 'attr_b'), | |
); | |
} | |
public function compositeUnique($attribute,$params) |